addons-server/docs
Andrew Williamson cc2fadf6b3
Allow default_locale to be set/changed via the API (#19290)
* Allow default_locale to be set/changed via the API

* rewrite some of the test comments to make it clearer what's going on
2022-05-27 13:05:40 +01:00
..
_intersphinx Replace 'jinja2.contextfunction' with 'jinja2.pass_context' (#17466) 2021-07-13 13:36:20 +02:00
_static
_templates
extensions
screenshots
settings
topics Allow default_locale to be set/changed via the API (#19290) 2022-05-27 13:05:40 +01:00
Makefile
README.rst
__init__.py
build-github.zsh
conf.py Remove obsolete version information from docs (#18435) 2021-12-01 15:10:22 +01:00
index.rst change api docs to make v5 the default (#16303) 2021-01-12 16:20:18 +00:00
watcher.py

README.rst

============================
Add-ons Server Documentation
============================

This is the documentation for the use of the addons-server and its services.
All documentation is in plain text files using
`reStructuredText <http://docutils.sourceforge.net/rst.html>`_ and
`Sphinx <http://sphinx-doc.org/>`_.

To build the documentation, you need the dependencies from
``requirements/docs.txt``.  Those are automatically installed together with
``make update_deps``, so if you've installed that already (following the
:ref:`installation` page), you're all set.

If you're unsure, activate your ``virtualenv`` and run::

    make update_deps

The documentation is viewable at http://addons-server.readthedocs.io/, and
covers development using Add-ons Server, the source code for `Add-ons
<https://addons.mozilla.org/>`_.

Its source location is in the `/docs
<https://github.com/mozilla/addons-server/tree/master/docs>`_ folder.

Note: this project was once called *olympia*, this documentation often uses
that term.

Build the documentation
-----------------------

This is as simple as running::

    make docs

This is the same as ``cd``'ing to the ``docs`` folder, and running ``make
html`` from there.

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
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