Skip to content

Commit 45557d8

Browse files
authored
Actually generate ditamaps
Oops :) Have to specify the toc=macro on the cli. Signed-off-by: Jason Porter <lightguard.jp@gmail.com>
1 parent d0c13fc commit 45557d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/convert-adoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
# location using the same structure. rsync makes this really easy and pretty quick.
5050
# However, we don't want any of the git files, github files, or other build related files included.
5151
- name: "Copy non-adoc files to output directory"
52-
run: rsync -zarv --exclude="*.adoc" --exclude=".git" --exclude=".github" --exclude "vendor" --exclude "vendor/*" --exclude "node_modules" --exclude "node_modules/*" --exclude "package.json" --exclude "package.lock" --exclude "Gemfile*" . generated-dita
52+
run: rsync -zarv --exclude="*.adoc" --exclude=".git" --exclude=".github" --exclude "vendor" --exclude "vendor/*" --exclude ".bundle" --exclude ".bundle/*" --exclude "node_modules" --exclude "node_modules/*" --exclude "package.json" --exclude "package.lock" --exclude "Gemfile*" . generated-dita
5353

5454
# The dita-topic converter was already downloaded and installed above.
5555
# Using the '-r' flag instructs asciidoctor to include it and the
5656
# '-b' flag tells asciidoctor to use it for the conversion. The '-D' flag
5757
# specifies an output directory.
5858
- name: "Convert adoc files to dita"
59-
run: find . -name '*.adoc' -print0 | xargs -0 bundle exec asciidoctor -r dita-topic -b dita-topic -R . -D temp-generation
59+
run: find . -name '*.adoc' -print0 | xargs -0 bundle exec asciidoctor -r dita-topic -b dita-topic -R . -D temp-generation -a 'toc=macro'
6060

6161
# Some of the converted DITA files are not valid files (nested sections currently, could be other reasons)
6262
# loop through all the .dita files and run them through the XSLT to fix them.

0 commit comments

Comments
 (0)