2
0

documentation.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. =====================
  2. Writing Documentation
  3. =====================
  4. .. contents:: Table of Contents
  5. :depth: 2
  6. :local:
  7. .. note:: Contributions to the documentation are much appreciated.
  8. What is used to write the documentation
  9. =======================================
  10. This documentation is written in `Sphinx <http://sphinx-doc.org/>`_, a
  11. documentation generator written in `Python <http://python.org>`_.
  12. The documentation is written in `reStructuredText (reST) <http://sphinx-doc.org/rest.html>`_,
  13. a very easy to write plain text format, relatively similar to Markdown.
  14. So see what the source looks like, click the **Source** link in the footer of
  15. this page.
  16. Where is the documentation
  17. ==========================
  18. The reST documentation files are located in the
  19. `converse.js code repository <https://github.com/jcbrand/converse.js/tree/master/docs/source>`_
  20. under ``docs/source``.
  21. How to generate HTML from the source files
  22. ==========================================
  23. Install Dependencies
  24. --------------------
  25. In order to generate HTML from the source files, you need to have Sphinx and
  26. the `Sphinx Bootstrap Theme <http://ryan-roemer.github.io/sphinx-bootstrap-theme>`_
  27. installed.
  28. We use `zc.buildout <http://www.buildout.org/en/latest/>`_ to install Sphinx
  29. and the theme.
  30. To install Sphinx, do the following::
  31. python bootstrap.py
  32. ./bin/buildout
  33. Generate the HTML
  34. -----------------
  35. After installing the dependencies, you can generate the HTML by simply
  36. running::
  37. make html
  38. The HTMl files will be located in ``./docs/html``
  39. .. warning:: When contributing, please don't commit any generated html files.