Build Manual
Docker
To avoid all the hassles, this manual can be viewed locally via docker.
Simply run the following command, the manual will be available at http://localhost:8000.
| Bash | |
|---|---|
Python
For development purposes, 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:
Create 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.
Install Requirements
Now that the virtual environment is created, install the requirements using the following command:
| Bash | |
|---|---|
Alternatively, if the doxygen documentation is required, the following command can be used:
| Bash | |
|---|---|
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.
| Bash | |
|---|---|
Make Changes
The server monitors changes in real time. Now you can make changes to the manual and check the changes in the browser.