2015-05-02 01:21:25 +02:00
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<div id="banner"><a href="https://github.com/jcbrand/converse.js/blob/master/docs/source/documentation.rst">Edit me on GitHub</a></div>
|
|
|
|
|
2014-12-07 01:19:01 +01:00
|
|
|
=====================
|
|
|
|
Writing Documentation
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. note:: Contributions to the documentation are much appreciated.
|
|
|
|
|
2016-10-21 16:33:47 +02:00
|
|
|
What is used to write the documentation?
|
|
|
|
========================================
|
2014-12-07 01:19:01 +01:00
|
|
|
|
|
|
|
This documentation is written in `Sphinx <http://sphinx-doc.org/>`_, a
|
|
|
|
documentation generator written in `Python <http://python.org>`_.
|
|
|
|
|
|
|
|
The documentation is written in `reStructuredText (reST) <http://sphinx-doc.org/rest.html>`_,
|
|
|
|
a very easy to write plain text format, relatively similar to Markdown.
|
|
|
|
|
|
|
|
So see what the source looks like, click the **Source** link in the footer of
|
|
|
|
this page.
|
|
|
|
|
2016-10-21 16:33:47 +02:00
|
|
|
Where is the documentation?
|
|
|
|
===========================
|
2014-12-07 01:19:01 +01:00
|
|
|
|
|
|
|
The reST documentation files are located in the
|
|
|
|
`converse.js code repository <https://github.com/jcbrand/converse.js/tree/master/docs/source>`_
|
|
|
|
under ``docs/source``.
|
|
|
|
|
2016-10-21 16:33:47 +02:00
|
|
|
How to generate HTML from the source files?
|
|
|
|
===========================================
|
2014-12-07 01:19:01 +01:00
|
|
|
|
|
|
|
Generate the HTML
|
|
|
|
-----------------
|
|
|
|
|
2018-12-19 11:01:25 +01:00
|
|
|
After installing the dependencies, you can generate the HTML by running::
|
2014-12-07 01:19:01 +01:00
|
|
|
|
|
|
|
make html
|
|
|
|
|
|
|
|
The HTMl files will be located in ``./docs/html``
|
|
|
|
|
2018-12-19 11:01:25 +01:00
|
|
|
What ``make html`` does for you is it installs `zc.buildout <http://www.buildout.org/en/latest/>`_
|
|
|
|
which is used to install Sphinx and all its dependencies.
|
|
|
|
|
|
|
|
You'll need to have Python and `Virtualenv <https://virtualenv.pypa.io/en/latest/>`_ available on your computer.
|
|
|
|
|
2014-12-07 01:19:01 +01:00
|
|
|
.. warning:: When contributing, please don't commit any generated html files.
|
2018-12-17 10:36:51 +01:00
|
|
|
|
|
|
|
Serving the documentation
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
To view the generated docs, you can run ``make serve`` and then open
|
|
|
|
http://localhost:8000/docs/html/index.html in your browser.
|
|
|
|
|
|
|
|
|