0.0
No commit activity in last 3 years
No release in over 3 years
This plugin is a group of Asciidoctor extensions that perform directory walking, resolving the location of titles and anchors in all adoc files so that inter-document cross-references in a Jekyll project are resolved automatically. Also included are some custom macros and blocks that are useful for techinical writing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.15.4
>= 12.1.0
>= 3.2.6

Runtime

>= 1.5.0
 Project Readme

Jekyll Aspec

Gem Version Build Status

A selection of Asciidoctor extensions for use with Jekyll and jekyll-asciidoc.

These extensions add custom blocks for Requirements and attempts to smartly handle inter-document auto-linking functionality.

Motivation

Jekyll is a very flexible and speedy tool for generating static HTML pages. The jekyll-asciidoc gem adds Asciidoctor functionality but it lacks a few features due to the way it handles multiple source files. As each .adoc file is consumed individually, we lose the ability to automatically format inter-document cross-references. This plugin is a group of extensions that performs some directory walking, stores the location of titles and anchors so that cross references in a Jekyll project are resolved automatically.

Additional features are

  • Custom block for TODOs
  • Requirements Block with versioning
  • Requirements block macro that creates an appendix-style Table of Contents for Requirements
  • Inline Callout macro to arbitrarily add callouts
  • Inline Task macro to link to Jira tickets or Github Issues
  • Inline Repo Macro to link to specific files or lines on GitHub
  • A HTML postprocessor to correct some minor fixes and invalid tags created by Asciidoctor

When these custom extensions are combined with other recommended gems such as asciidoctor-bibtex and asciidoctor-latex, you can achieve quite high quality, speedy HTML documentation for technical projects with the benefits of a Jekyll build. It's recommended to use the html-proofer gem which will validate all links created with these extensions.

Installation

Add jekyll_aspec to your Jekyll Gemfile:

group :jekyll_plugins do
  gem 'jekyll-asciidoc'
  gem 'jekyll_aspec'
end

Or install it yourself as:

$ gem install jekyll_aspec

Docs

Yard documentation is generation automatically at RubyDoc.info

Contributing

This gem is under heavy initial development and there are still many kinks to work out. The areas to be improved upon include performance enhancements, proper handling of file IO / directory walking and, of course, documentation. Bug reports and pull requests are welcome on GitHub.

License

The gem is available as open source under the terms of the MIT License.