From a61fd50d6fc9527571ff08aaeaa5d0e4d240d28d Mon Sep 17 00:00:00 2001 From: Alexey Andreyev Date: Tue, 13 May 2025 15:01:28 +0300 Subject: [PATCH] docs/index: introduce local deploy example Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2599 --- docs/index.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index 4f13a1d0..5c48e96d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -35,6 +35,23 @@ Indices and tables * :ref:`modindex` * :ref:`search` +Deploying locally +================= + +To deploy with python virtual environment and sphinx-autobuild: + +.. code-block:: sh + + cd /path/to/pmbootstrap + python -m venv build-sphinx-env + source ./build-sphinx-env/bin/activate + pip install sphinx-autobuild sphinx_rtd_theme myst-parser sphinxcontrib-autoprogram + sphinx-autobuild docs docs/_build/html + +.. code-block:: text + + [sphinx-autobuild] Serving on http://127.0.0.1:8000 + [sphinx-autobuild] Waiting to detect changes... *Note:* This documentation is currently a work-in-progress, your feedback and contributions are very welcome!