@@ -9,30 +9,34 @@ Additionally, an author guide is generated as PDF document.
99The author guide is a concatenation of the usage documentation files compiled into an accessible PDF document.
1010To generate this document the following steps are necessary:
1111
12- * Merge the usage documentation files (` *-usage.en.md ` ) using the script ` md_merge.py ` .
12+ * Merge the usage documentation files (` *-usage.en.md ` ) using the
13+ [ md_merge.py] ( https://github.com/secvisogram/secvisogram-documentation/blob/main/scripts/md_merge.py ) script.
1314
14- ` python docs /md_merge.py --input docs/ user --lang en --output docs --name author_guide.md `
15+ ` python scripts /md_merge.py --input user --lang en --output . --name author_guide.md `
1516
1617 This script allows for selecting a specific language, see the ` --lang ` flag.
1718 See [ below] ( #translating-the-documentation ) for details on how to translate the documentation.
1819
1920* Convert the resulting markdown file into docx format.
2021
21- ` pandoc docs/ author_guide.md -f markdown -t docx -o docs/ author_guide.docx -V block-headings --table-of-contents -- lua-filter=docs /filters.lua --defaults=docs /defaults.yaml `
22+ ` pandoc author_guide.md -f markdown -t docx -o author_guide.docx -- lua-filter=etc /filters.lua --defaults=etc /defaults.yaml `
2223
2324* Populate the documents' table of contents with a custom macro.
2425
2526 ` libreoffice --headless --invisible "macro:///Standard.customModule.UpdateIndexes(/absolute/path/to/author_guide.docx)" `
2627
27- This requires the [ custom macro] ( https://github.com/secvisogram/secvisogram-documentation/blob/main/customModule.xba ) to be available in libreoffice.
28+ This requires the absolute path to the generated docx file and the
29+ [ custom macro] ( https://github.com/secvisogram/secvisogram-documentation/blob/main/etc/customModule.xba ) to be
30+ available in libreoffice.
2831
2932* Convert the docx file into an accessible PDF with libreoffice.
3033
31- ` libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir docs docs/ author_guide.docx `
34+ ` libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir . author_guide.docx `
3235
3336 To generate an accessible PDF this requires Universal Access Compliance to be enabled in libreoffice.
3437
35- The title and author of the resulting document can be changed in ` defaults.yaml ` .
38+ The title and author of the resulting document can be changed in
39+ [ etc/defaults.yaml] ( https://github.com/secvisogram/secvisogram-documentation/blob/main/etc/defaults.yaml ) .
3640
3741A GitHub action is used to automate these steps and publish the English author guide as an artifact.
3842See the [ generate-author-guide.yml] ( https://github.com/secvisogram/secvisogram-documentation/blob/main/.github/workflows/generate-author-guide.yml ) workflow.
0 commit comments