Build DepthAI Python documentation
mainYou can build the documentation website using either Docker or a native Linux setup.
Using Docker
This method uses Docker Compose to watch the docs/source directory and rebuild automatically.
cd docs
sudo docker-compose build
sudo docker-compose upAccess the docs at http://localhost:8000.
Using Linux (Native)
- Install dependencies and requirements:
python3 -m pip install -U pip python3 -m pip install -r docs/requirements.txt - Build the Sphinx documentation:
cmake -H. -Bbuild -D DEPTHAI_BUILD_DOCS=ON -D DEPTHAI_PYTHON_BUILD_DOCS=ON cmake --build build --target sphinx - Serve the documentation:
python3 -m http.server --bind 0.0.0.0 8000 --directory build/docs/sphinx - To update the website after making changes, run:
cmake --build build --target sphinx