addons-server/docs
Christopher Grebs a34a0b5630
Revamp draft comments API. (#11808)
* Completely revamp draft comments API.

Revamp how draft comments work, store multiple comments per version and
paginate them.

This also implement PATCH to update a comment, updates DELETE, GET
and POST endpoints properly and updates the documentation accordingly.

Fixes #11380
Fixes #11379
Fixes #11378
Fixes #11374

* Fix statuscode in docs

* Fix docs, use regular VersionSerializer

* Allow filename and lineno to be optional.

* Add note about lineno should be specific to the version, not the parent.

* Fix test to use regular VersionSerializer

* Fix test to test that the 'id' is set properly now

* Add more details to pagination, add detail endpoint for comments.

* Use user_factory
2019-07-12 16:58:31 +02:00
..
_intersphinx django_nose cleanup: we're using py.test 2014-12-22 15:52:49 +01:00
_static use .gitkeep instead of .gitignore; bug 687408 2013-09-19 07:56:17 -07:00
_templates use .gitkeep instead of .gitignore; bug 687408 2013-09-19 07:56:17 -07:00
extensions Fix codestyle and docs jobs (#10683) 2019-02-13 16:21:05 +01:00
screenshots Update docker Makefile commands and docs 2015-10-22 12:53:16 -05:00
settings Fixes #5379: Remove footer field from theme submission form (#7718) 2018-03-21 15:01:39 +01:00
topics Revamp draft comments API. (#11808) 2019-07-12 16:58:31 +02:00
Makefile Build docs on make loop 2015-09-17 14:30:32 +01:00
README.rst Update requirements/docs.txt, install it explicitly to be self-containing. (#2891) 2016-06-14 17:20:55 +02:00
__init__.py Split off API docs (bug 854942) 2013-04-15 13:54:46 -05:00
build-github.zsh rm everything in gh-pages so old pages aren't left around + typo & pushd 2010-02-02 21:55:50 -08:00
conf.py Fix codestyle and docs jobs (#10683) 2019-02-13 16:21:05 +01:00
index.rst Copy v3 docs into v3_legacy folder for better archiving. 2018-10-01 09:59:04 +02:00
watcher.py script to watch a bunch of files and run a command if any changes are detected. 2009-11-06 22:32:35 -08:00

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