cookiecutter-django/docs/document.rst

30 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2019-12-28 12:26:43 +03:00
.. _document:
Document
=========
This project uses Sphinx_ documentation generator.
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: ::
$ 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
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
.. _localhost: http://localhost:7000/
2019-12-28 12:26:43 +03:00
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
.. _develop locally: ./developing-locally.html
.. _develop locally with docker: ./developing-locally-docker.html