Debian Codegraph @

cmake/tribits/doc/sphinx/build_sphinx_docs.sh

raw
1 #!/bin/bash -e
2 #
3 # Build all of the TriBITS-related Sphinx documentation
4 #
5 # To build this documentation, from any directory, run:
6 #
7 # <this-dir>/build_sphinx_docs.sh
8 #
9 # WARNING: This has to remove any prior-created Sphinx-build documentation at
10 # the beginning using 'git clean -xdf -- .' Therefore, before running this
11 # script make sure and commit your work (or modify previously tracked files)
12 # to make sure that you don't loose it!
13 #
14
15 ABS_FILE_PATH=`readlink -f $0`
16 SPHINX_DOC_BASE_DIR=`dirname $ABS_FILE_PATH`
17
18 cd $SPHINX_DOC_BASE_DIR
19
20 git clean -xdf -- .
21
22 python3 sphinx_rst_generator.py --copy-base-dir=../../..