mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 19:09:56 +03:00
docs/index: update local deploy example with pmb.ci
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2599
This commit is contained in:
parent
a61fd50d6f
commit
383266a7a8
1 changed files with 12 additions and 7 deletions
|
@ -38,20 +38,24 @@ Indices and tables
|
||||||
Deploying locally
|
Deploying locally
|
||||||
=================
|
=================
|
||||||
|
|
||||||
To deploy with python virtual environment and sphinx-autobuild:
|
To deploy with :doc:`pmbootstrap ci <api/pmb.ci>` command (see also: `Pmbootstrap_CI`_ wiki article):
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
cd /path/to/pmbootstrap
|
cd /path/to/pmbootstrap
|
||||||
python -m venv build-sphinx-env
|
pmbootstrap ci docs
|
||||||
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
|
.. code-block:: text
|
||||||
|
|
||||||
[sphinx-autobuild] Serving on http://127.0.0.1:8000
|
build succeeded.
|
||||||
[sphinx-autobuild] Waiting to detect changes...
|
The HTML pages are in public.
|
||||||
|
Copy CI artifacts to ./ci-artifacts/docs
|
||||||
|
|
||||||
|
After this, you should be able to host results with ``darkhttpd`` or Python's built-in server:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
python -m http.server -d ./ci-artifacts/docs/public
|
||||||
|
|
||||||
*Note:* This documentation is currently a work-in-progress, your feedback and contributions are very welcome!
|
*Note:* This documentation is currently a work-in-progress, your feedback and contributions are very welcome!
|
||||||
|
|
||||||
|
@ -59,3 +63,4 @@ To deploy with python virtual environment and sphinx-autobuild:
|
||||||
.. _issue-tracker: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues
|
.. _issue-tracker: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues
|
||||||
.. _repository: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/
|
.. _repository: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/
|
||||||
.. _Installation: https://wiki.postmarketos.org/wiki/Installation
|
.. _Installation: https://wiki.postmarketos.org/wiki/Installation
|
||||||
|
.. _Pmbootstrap_CI: https://wiki.postmarketos.org/wiki/Pmbootstrap_CI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue