summaryrefslogtreecommitdiff
path: root/docs/dev/contribution_guide.rst
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-12-18 16:11:05 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-12-18 16:11:05 +0100
commitf09459b98ae877d7dfd40d85c0edf058c65913d5 (patch)
treeaba29f2e12b20a7c54687d8456869a6224820437 /docs/dev/contribution_guide.rst
parentda56bda26542de5697691ff80dac6df876fb366b (diff)
doc: describe Makefile targets
With the aim to simplify development cycles, started with PR #1756 a Makefile based boilerplate was added. This patch adds the missing developer documentation. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/dev/contribution_guide.rst')
-rw-r--r--docs/dev/contribution_guide.rst15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/dev/contribution_guide.rst b/docs/dev/contribution_guide.rst
index 064f28e63..6d8d3924d 100644
--- a/docs/dev/contribution_guide.rst
+++ b/docs/dev/contribution_guide.rst
@@ -79,6 +79,8 @@ Translation currently takes place on :ref:`transifex <translation>`.
Please, do not update translation files in the repo.
+.. _contrib docs:
+
Documentation
=============
@@ -91,7 +93,7 @@ Documentation
The documentation is built using Sphinx_. So in order to be able to generate
the required files, you have to install it on your system. Much easier, use
-Makefile our targets.
+our :ref:`makefile`.
Here is an example which makes a complete rebuild:
@@ -101,6 +103,7 @@ Here is an example which makes a complete rebuild:
...
The HTML pages are in dist/docs.
+.. _make docs-live:
live build
----------
@@ -110,9 +113,10 @@ live build
It is recommended to assert a complete rebuild before deploying (use
``docs-clean``).
-Live build is like WYSIWYG, If you want to edit the documentation, its
-recommended to use. The Makefile target ``docs-live`` builds the docs, opens URL
-in your favorite browser and rebuilds every time a reST file has been changed.
+Live build is like WYSIWYG. If you want to edit the documentation, its
+recommended to use. The Makefile target ``docs-live`` builds the docs, opens
+URL in your favorite browser and rebuilds every time a reST file has been
+changed.
.. code:: sh
@@ -123,12 +127,13 @@ in your favorite browser and rebuilds every time a reST file has been changed.
... Start watching changes
+.. _deploy on github.io:
deploy on github.io
-------------------
To deploy documentation at :docs:`github.io <.>` use Makefile target
-``gh-pages``, which will builds the documentation, clones searx into a sub
+:ref:`make gh-pages`, which will builds the documentation, clones searx into a sub
folder ``gh-pages``, cleans it, copies the doc build into and runs all the
needed git add, commit and push: