2
0

documentation.rst 1.8 KB

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