This is a walkthrough of the SPHINX workflow. It is intended to be a quick reference guide. The python work used in this repository is based on a different repository and the credits for the code go to the original authors. The original repository can be found here
The workflow is divided into 3 steps:
- Generate Markdowns for the python directory
# Preprocessing: Generate markdown files from the original scripts
# In root directory,
bash scripts/generate_markdown.sh doc/pages
- To embed the code into markdown files, run the following command:
npm i -g markdown-autodocs
markdown-autodocs -c code-block -o doc/pages/*
The package is also available as github action. The action can be found here.
- To setup sphinx, run the following commands:
# In Ubuntu 20.04
sudo apt-get install texlive texlive-latex-extra pandoc
python3 -m pip install -r requirements.txt
cd doc
make html