Table of Contents generated with DocToc
- Build docker images or install dependencies
- Generate the documentation
- Add a new document
- Generate change tracking document
docker build . -t deside-deliverables
or
gem install asciidoctor asciidoctor-diagram asciidoctor-pdf asciidoctor-lists coderay
The following command:
docker run --rm -it -v $PWD/:/opt/documents/ deside-deliverables bash /opt/documents/bin/generate-docs.sh
or
bin/generate-docs.sh
generates the HTML and PDF versions of each of the documents and places the result
files with a directory index.html
in the output
folder. The env-variable
BUILD_DOCS
controls which documents (in each sub-directory) are to be built.
Copy the template-doc
directory and name it to the document name of your choice.
Add your document name to the list of documents in the BUILD_DOCS
environment
variable (and the defaults in the bin/generate-docs.sh
script).
Working directory must be clean for git to switch between commits and generate docx documents with change tracking enabled.
Following command create a zipped archive (update -e
env variables accordingly) for each doc
in target directory output/doc/changes/
between GIT_HASH_FROM
and GIT_HASH_TO
.
# run in current directory (root of repo)
docker run --rm -it -e BUILD_DOCS="SRS" -e GIT_HASH_FROM=11ec4912f141cd9e6cd870bd6f9f394b6857fe8c -e GIT_HASH_TO=main -v $PWD/:/opt/documents/ deside-deliverables bash /opt/documents/bin/changetrack.sh