@@ -82,8 +82,61 @@ Translation currently takes place on :ref:`transifex <translation>`.
82Documentation
82Documentation
83=============
83=============
85−.. admonition:: ToDo
85+.. _Sphinx: http://www.sphinx-doc.org
86+.. _reST: http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
87− docs are no longer in gh-branch
88+.. sidebar:: The reST sources
89− Update this chapter and document the /docs workflow!!
90+ has been moved from ``gh-branch`` into ``master`` (:origin:`docs`).
92+The documentation is built using Sphinx_. So in order to be able to generate
93+the required files, you have to install it on your system. Much easier, use
96+Here is an example which makes complete rebuild:
100+ $ make docs-clean docs
102+ The HTML pages are in dist/docs.
108+Live build is like WYSIWYG, If you want to edit the documentation, its
109+recommended to use. The Makefile target ``docs-live`` builds the docs, opens URL
110+in your favorite browser and rebuilds every time a reST file has been changed.
114+ $ make docs-clean docs-clean
116+ The HTML pages are in dist/docs.
117+ ... Serving on http://0.0.0.0:8080
118+ ... Start watching changes
125+To deploy documentation at :docs:`github.io <.>` use Makefile target
126+``gh-pages``, which will builds the documentation, clones searx into a sub
127+folder ``gh-pages``, cleans it, copies the doc build into and runs all the
128+needed git add, commit and push:
134+ SPHINX docs --> file://<...>/dist/docs
135+ The HTML pages are in dist/docs.
137+ Cloning into 'gh-pages' ...
139+ cd gh-pages; git checkout gh-pages >/dev/null
140+ Switched to a new branch 'gh-pages'
142+ doc available at --> https://asciimoo.github.io/searx