2019-12-28 12:26:43 +03:00
|
|
|
.. _document:
|
|
|
|
|
|
|
|
Document
|
|
|
|
=========
|
|
|
|
|
|
|
|
This project uses Sphinx_ documentation generator.
|
|
|
|
|
2020-04-24 17:23:41 +03:00
|
|
|
After you have set up to `develop locally`_, run the following command from the project directory to build and serve HTML documentation: ::
|
|
|
|
|
|
|
|
$ make -C docs livehtml
|
2019-12-28 12:26:43 +03:00
|
|
|
|
|
|
|
If you set up your project to `develop locally with docker`_, run the following command: ::
|
|
|
|
|
2020-04-24 17:23:41 +03:00
|
|
|
$ docker-compose -f local.yml up docs
|
|
|
|
|
|
|
|
Navigate to port 7000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
2019-12-28 12:26:43 +03:00
|
|
|
|
|
|
|
Generate API documentation
|
|
|
|
----------------------------
|
|
|
|
|
2020-07-25 16:39:04 +03:00
|
|
|
Edit the ``docs/_source`` files and project application docstrings to create your documentation.
|
2019-12-28 12:26:43 +03:00
|
|
|
|
2020-04-24 17:23:41 +03:00
|
|
|
Sphinx can automatically include class and function signatures and docstrings in generated documentation.
|
|
|
|
See the generated project documentation for more examples.
|
2019-12-28 12:26:43 +03:00
|
|
|
|
2020-04-24 17:23:41 +03:00
|
|
|
.. _localhost: http://localhost:7000/
|
2019-12-28 12:26:43 +03:00
|
|
|
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
|
2020-01-23 21:39:38 +03:00
|
|
|
.. _develop locally: ./developing-locally.html
|
|
|
|
.. _develop locally with docker: ./developing-locally-docker.html
|