This repository was archived by the owner on May 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Antora
Janne Valkealahti edited this page Jul 21, 2022
·
4 revisions
Notes about antora and docs.
Command docs can be created using generate-command-docs script. It needs jar option to a fatjar.
docs/generate-command-docs --jar build/libs/spring-cli-0.0.1-SNAPSHOT.jar
- Uses
spring-shellfeature to templatehelpandhelp <command>outputs. -
help-commands-adoc.stgsimply outputs a list of commands to get documented. -
help-command-adoc.stgoutputs asciidoc which we can pipe to antora tree. - We need fatjar so that it's possible to replace templates using
application.properties. - Everything under
docs/modules/ROOT/pages/commandsis generated so don't modify those manually and when command set is modified you need to delete content before recreating docs.