asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
617 stars 172 forks source link

Incorporating Jamal macro into the documentation #1229

Open verhas opened 1 year ago

verhas commented 1 year ago

Documentation maintenance enhancement adding Jamal to the documentation toolset

Description

Goal

Adding this change to the build process, the documentation will automatically fetch and use the latest release. Later the tool use can be gradually extended to reduce documentation and code redundancy, automatically pulling information from the documented source code into the documentation.

The pull request

An alternative way could be to write some specific test that updates the documentation, but Jamal does it, and it is a powerful framework for the very purpose. I do not know any professional alternative. It is also possible to keep editing the pure Asciidoc without macros and invest the manual effort to keep the version numbers and other features in the documentation up to date, which was unsuccessful.

Adding this pull request will require document editors to know a bit of Jamal, which complicates the markup being a hyper markup above the Asciidoc markup.

Release notes

Documentation processing is extended using Jamal.