4. Generate Documentation#
Before generating the Sphinx documentation, you should compile the package.
Get the source code from the GitHub repository.
git clone https://github.com/ameli/restoreio.git
cd restoreio
4.1. Generate Sphinx Documentation#
Install Pandoc by
sudo apt install pandoc -y
sudo yum install pandoc -y
sudo dnf install pandoc -y
sudo brew install pandoc -y
scoop install pandoc
Install the requirements for the Sphinx documentation by
python -m pip install -r docs/requirements.txt
The above command installs the required packages in Python’s path directory. Make sure python’s directory is on the PATH, for instance, by
PYTHON_PATH=`python -c "import os, sys; print(os.path.dirname(sys.executable))"`
export PATH=${PYTHON_PATH}:$PATH
$PYTHON_PATH = (python -c "import os, sys; print(os.path.dirname(sys.executable))")
$env:Path += ";$PYTHON_PATH"
Now, build the documentation:
make clean html --directory=docs
cd docs
make.bat clean html
The main page of the documentation can be found in /docs/build/html/index.html
.