Build Documentation
This manual can be built locally using mkdocs. To do so, a python environment must be created.
Tools
git shall be available to clone the repository. Otherwise, you may want to manually download the archive.
python shall be available to build the documentation.
If doxygen generated documentation is required, doxygen shall be available. It also uses graphviz to generate the graph, install it according to the instructions.
Steps
Please follow the instructions below to create a local editing environment.
Clone the Repository
Clone the repository using the following command:
git clone https://github.com/TLCFEM/suanPan-manual.git
cd suanPan-manualCreate a Python Environment
Within the suanPan-manual directory, create a new virtual environment using whatever tools you have available. Here the plain python virtual environment is used.
python3 -m venv venv
source venv/bin/activateInstall Requirements
Now that the virtual environment is created, install the requirements using the following command:
python -m pip install -r requirements.txtAlternatively, if the doxygen documentation is required, the following command can be used:
python -m pip install -e .Note doxygen and git are required to be available. This also installs a custom mkdocs plugin to overwrite inline math expressions to properly render them.
Build and Run
The following command builds and runs the server on localhost:8000.
mkdocs serveMake Changes
The server monitors changes in real time. Now you can make changes to the manual and check the changes in the browser.
Last updated