Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit dda8a31

Browse files
committed
Fix command docs generation
- In #174 we locked config to come from springcliapp.yml in a classpath thus application.properties for docs generation is not picked up automatically. - Move properties for help command templates to script itself as env variables.
1 parent 7c39829 commit dda8a31

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/application.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/generate-command-docs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ generate() {
6767
jarabsfile=$(get_abs_filename $_arg_jar)
6868
pushd $DOCS_DIR > /dev/null
6969
echo ".Commands" > modules/ROOT/nav-commands.adoc
70-
mapfile arr < <(java -jar $jarabsfile help 2>&1)
70+
mapfile arr < <(SPRING_SHELL_COMMAND_HELP_COMMANDS_TEMPLATE=file:help-commands-adoc.stg java -jar $jarabsfile help 2>&1)
7171
for path in "${arr[@]}"; do
7272
IFS=':' read -ra FIELDS <<< "$path"
7373
echo ${FIELDS[0]}
7474
for F in "${FIELDS[@]:1}"; do
7575
echo $F
7676
NAME="${F// /-}"
77-
java -jar $jarabsfile help $F &> modules/ROOT/pages/commands/$NAME.adoc
77+
SPRING_SHELL_COMMAND_HELP_COMMAND_TEMPLATE=file:help-command-adoc.stg java -jar $jarabsfile help $F &> modules/ROOT/pages/commands/$NAME.adoc
7878
echo "** xref:commands/$NAME.adoc[$F]" >> modules/ROOT/nav-commands.adoc
7979
done
8080
done

0 commit comments

Comments
 (0)