You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

writing-documentation.rst 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. =====================
  2. Writing documentation
  3. =====================
  4. Directory Structure
  5. -------------------
  6. The docs are built by calling ``make docs`` from your Oscar directory.
  7. The ``make docs`` command currently uses `python3`,
  8. so make sure it links to one of these versions.
  9. They live in ``/docs/source``. This directory structure is a
  10. simplified version of what Django does.
  11. * ``internals/`` contains everything related to Oscar itself, e.g. contributing
  12. guidelines or design philosophies.
  13. * ``ref/`` is the reference documentation, esp. consisting of
  14. * ``ref/apps/`` which should be a guide to each Oscar core app, explaining it's
  15. function, the main models, how it relates to the other apps, etc.
  16. * ``topics/`` will contain "meta" articles, explaining how things tie together
  17. over several apps, or how Oscar can be combined with other solutions.
  18. * ``howto/`` contains tutorial-style descriptions on how to solve a certain
  19. problem.
  20. ``/index.rst`` is designed as the entry point, and diverges from above
  21. structure to make the documentation more approachable. Other ``index.rst``
  22. files should only be created if there's too many files to list them all.
  23. E.g. ``/index.rst`` directly links to all files in ``topics/`` and
  24. ``internals/``, but there's an ``index.rst`` both for the files in ``howto/``
  25. and ``ref/apps/``.
  26. Style guides
  27. ------------
  28. Oscar currently does not have it's own style guide for writing documentation.
  29. Please carefully review style guides for `Python`_ and `Django`_.
  30. Please use `gender-neutral language`_.
  31. .. _`Python`: http://docs.python.org/devguide/documenting.html#style-guide
  32. .. _`Django`: https://docs.djangoproject.com/en/stable/internals/contributing/writing-documentation/
  33. .. _`gender-neutral language`: https://alexgaynor.net/2013/nov/30/gender-neutral-language-faq/