2016-03-17 16:48:30 +03:00
|
|
|
============================
|
|
|
|
Add-ons Server Documentation
|
|
|
|
============================
|
2013-12-09 08:41:03 +04:00
|
|
|
|
2016-03-17 16:48:30 +03:00
|
|
|
This is the documentation for the use of the addons-server and its services.
|
|
|
|
All documentation is in plain text files using
|
2013-12-09 08:41:03 +04:00
|
|
|
`reStructuredText <http://docutils.sourceforge.net/rst.html>`_ and
|
|
|
|
`Sphinx <http://sphinx-doc.org/>`_.
|
|
|
|
|
2016-03-17 16:48:30 +03:00
|
|
|
To build the documentation, you need the dependencies from
|
2014-10-15 18:57:08 +04:00
|
|
|
``requirements/docs.txt``. Those are automatically installed together with
|
2016-06-14 18:20:55 +03:00
|
|
|
``make update_deps``, so if you've installed that already (following the
|
2016-03-17 16:48:30 +03:00
|
|
|
:ref:`installation` page), you're all set.
|
2013-12-09 08:41:03 +04:00
|
|
|
|
2016-03-17 16:48:30 +03:00
|
|
|
If you're unsure, activate your ``virtualenv`` and run::
|
2013-12-09 08:41:03 +04:00
|
|
|
|
2014-10-15 18:57:08 +04:00
|
|
|
make update_deps
|
2013-12-09 08:41:03 +04:00
|
|
|
|
2016-04-28 12:47:07 +03:00
|
|
|
The documentation is viewable at http://addons-server.readthedocs.io/, and
|
2016-03-17 16:48:30 +03:00
|
|
|
covers development using Add-ons Server, the source code for `Add-ons
|
2014-10-15 18:57:08 +04:00
|
|
|
<https://addons.mozilla.org/>`_.
|
|
|
|
|
|
|
|
Its source location is in the `/docs
|
2016-02-06 02:46:11 +03:00
|
|
|
<https://github.com/mozilla/addons-server/tree/master/docs>`_ folder.
|
2014-10-15 18:57:08 +04:00
|
|
|
|
2016-02-06 02:46:11 +03:00
|
|
|
Note: this project was once called *olympia*, this documentation often uses
|
|
|
|
that term.
|
2014-10-15 18:57:08 +04:00
|
|
|
|
|
|
|
Build the documentation
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
This is as simple as running::
|
|
|
|
|
|
|
|
make docs
|
|
|
|
|
2016-03-17 16:48:30 +03:00
|
|
|
This is the same as ``cd``'ing to the ``docs`` folder, and running ``make
|
2014-10-15 18:57:08 +04:00
|
|
|
html`` from there.
|
|
|
|
|
2016-03-17 16:48:30 +03:00
|
|
|
We include a daemon that can watch and regenerate the built HTML when
|
|
|
|
documentation source files change. To use it, go to the ``docs`` folder
|
2014-10-15 18:57:08 +04:00
|
|
|
and run::
|
|
|
|
|
|
|
|
python watcher.py 'make html' $(find . -name '*.rst')
|
|
|
|
|
|
|
|
Once done, check the result by opening the following file in your browser:
|
|
|
|
|
|
|
|
/path/to/olympia/docs/_build/html/index.html
|