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

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