Skip to content

Commit a23bc26

Browse files
Docs: Methodology section (#10417)
* Scissor out methodology and best practice sections * Small edits to structure --------- Co-authored-by: Eric Holscher <[email protected]>
1 parent 2c6a064 commit a23bc26

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.

docs/user/explanation/methodology.rst

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Methodology and best practice
2+
=============================
3+
4+
In this section,
5+
we are covering important methods and best practices that will make your documentation better.
6+
7+
.. seealso::
8+
9+
`Write the Docs: Topic Archive <https://www.writethedocs.org/topics/>`__
10+
A collection of conference talks and articles,
11+
indexed by topic (eg. ``Metrics and analytics`` or ``Information architecture``)
12+
13+
You can familiarize yourself with these topics before or after writing documentation.
14+
We encourage that you read this at any time,
15+
as this content is applicable to many stages of the documentation process.
16+
17+
⏩️ :doc:`The Diátaxis Methodology <documentation-structure>`
18+
We introduce the Diátaxis methodology which is also used for the documentation you are now reading.
19+
20+
⏩️ :doc:`Creating reproducible builds </guides/reproducible-builds>`
21+
Every documentation project has dependencies that are required to build it.
22+
Using an unspecified versions of these dependencies means that your project can start breaking.
23+
In this guide,
24+
learn how to protect your project against breaking randomly.
25+
**This is one of our most popular guides!**
26+
27+
⏩️ :doc:`Search engine optimization (SEO) for documentation projects </guides/technical-docs-seo-guide>`
28+
This article explains how documentation can be optimized to appear in search results,
29+
increasing traffic to your docs.
30+
31+
32+
.. toctree::
33+
:maxdepth: 2
34+
:hidden:
35+
36+
documentation-structure
37+
/guides/best-practice/index

docs/user/index.rst

+5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ Read the Docs: documentation simplified
2020

2121
/choosing-a-site
2222
/integrations
23+
/downloadable-documentation
24+
/environment-variables
25+
/subprojects
26+
/localization
2327
/explanation/advanced
28+
/explanation/methodology
2429

2530
.. toctree::
2631
:maxdepth: 2

0 commit comments

Comments
 (0)