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 44
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-shell
feature to templatehelp
andhelp <command>
outputs. -
help-commands-adoc.stg
simply outputs a list of commands to get documented. -
help-command-adoc.stg
outputs asciidoc which we can pipe to antora tree. - We need fatjar so that it's possible to replace templates using
application.properties
.* Everything underdocs/modules/ROOT/pages/commands
is generated so don't modify those manually and when command set is modified you need to delete content before recreating docs.