|
| 1 | +How to structure your documentation |
| 2 | +=================================== |
| 3 | + |
| 4 | +A documentation project's ultimate goal is to be read and understood by a reader. |
| 5 | +Readers need to be able to :term:`discover <discoverability>` the information that they need. |
| 6 | +Without an defined structure, |
| 7 | +readers either won't find information that they need or get frustrated on the way. |
| 8 | + |
| 9 | +One of the largest benefits of a good structure is that it removes questions that keep authors from writing documentation. |
| 10 | +Starting with a blank page is often the hardest part of documentation, |
| 11 | +so anything we can do to remove this problem is a win. |
| 12 | + |
| 13 | +Choosing a structure |
| 14 | +-------------------- |
| 15 | + |
| 16 | +Good news! |
| 17 | +You don't have to invent all of the structure yourself, |
| 18 | +since a lot of experience-based work has been done to come up with a universal documentation structure. |
| 19 | + |
| 20 | +In order to avoid starting with a blank page, |
| 21 | +we recommend a simple process: |
| 22 | + |
| 23 | +* Choose a structure for your documentation. We recommend `Diátaxis <https://diataxis.fr/>`_ for this. |
| 24 | +* Find a :doc:`example project </examples>` or template to start from. |
| 25 | +* Start writing by filling in the structure. |
| 26 | + |
| 27 | +This process helps you get started quickly, |
| 28 | +and helps keep things consistent for the reader of your documentation. |
| 29 | + |
| 30 | +.. _diataxis: |
| 31 | + |
| 32 | +Diátaxis Methodology |
| 33 | +-------------------- |
| 34 | + |
| 35 | +The documentation you're reading is written using the Diátaxis framework. |
| 36 | +It has four major parts as summarized by this image: |
| 37 | + |
| 38 | +.. image:: https://diataxis.fr/_images/diataxis.png |
| 39 | + |
| 40 | +We recommend that you read more about it in the `official Diátaxis documentation <https://diataxis.fr/>`_. |
| 41 | + |
| 42 | +Explaining the structure to your users |
| 43 | +-------------------------------------- |
| 44 | + |
| 45 | +One of the benefits of Diátaxis is that it's a well-known structure, |
| 46 | +and users might already be familiar with it. |
| 47 | +As long as you stick to the structure, |
| 48 | +your users should be able to use existing experience to navigate. |
| 49 | + |
| 50 | +Using the names that are defined (eg. Tutorials, Explanation) in a user-facing way also helps here. |
0 commit comments