Build Documentation
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.
docker run --rm -d -p 8000:8000/tcp ghcr.io/tlcfem/suanpan-manual:latest
# or via docker hub
# docker run --rm -d -p 8000:8000/tcp tlcfem/suanpan-manual:latestPython
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:
Alternatively, if the doxygen documentation is required, the following command can be used:
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.
Make 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