| 1 |
Website and documentation |
| 2 |
========================= |
| 3 |
|
| 4 |
Errbot's website and documentation are built using `Sphinx`_. Useful |
| 5 |
references when contributing to the docs are the `reStructuredText Primer`_ |
| 6 |
and `Inline markup`_ documents. |
| 7 |
|
| 8 |
|
| 9 |
Requirements |
| 10 |
------------ |
| 11 |
|
| 12 |
Documentation *must* be built using Python 3. Additionally, extra requirements |
| 13 |
must be installed, which may be done through `pip install -r docs/requirements.txt` |
| 14 |
(note: you must run this from the root of the repository). |
| 15 |
|
| 16 |
You must also have make installed in order to use the supplied Makefile. |
| 17 |
|
| 18 |
|
| 19 |
Building and viewing locally |
| 20 |
---------------------------- |
| 21 |
|
| 22 |
With the necessary requirements installed, the documentation can be built using |
| 23 |
the command `make html`. Once generated, the resulting pages can be viewed by |
| 24 |
opening `_build/html/index.html` in your webbrowser of choice. |
| 25 |
|
| 26 |
|
| 27 |
Publishing to Read the Docs |
| 28 |
--------------------------- |
| 29 |
|
| 30 |
*Note: This is only relevant to project maintainers* |
| 31 |
|
| 32 |
Read the Docs should rebuild the site automatically when new commits are pushed. |
| 33 |
When new project releases are made, it may be necessary to add the new version |
| 34 |
and remove older versions (to prevent clutter in the version drop-down). |
| 35 |
This can be done at https://readthedocs.org/projects/errbot/versions/. |
| 36 |
|
| 37 |
|
| 38 |
.. _Sphinx: http://sphinx-doc.org/ |
| 39 |
.. _reStructuredText Primer: http://sphinx-doc.org/rest.html |
| 40 |
.. _Inline markup: http://sphinx-doc.org/markup/inline.html |