Skip to content

Commit 602f5de

Browse files
Docs: Navigation reorder (Diátaxis) (#10026)
* Put the toctrees at the top of index.rst content * Re-order explanation * Move how-to guides before explanation * Emojis in navigation * re-order reference items * Lots of TOC refactoring * A bit more futzing * Remove underscores from files, and do a bit more cleanup * Fix links * Single TOC for all --------- Co-authored-by: Eric Holscher <[email protected]>
1 parent 7634960 commit 602f5de

23 files changed

+135
-223
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
release = version
6262
exclude_patterns = ["_build", "shared", "_includes"]
6363
default_role = "obj"
64+
intersphinx_cache_limit = 14 # cache for 2 weeks
6465
intersphinx_timeout = 3 # 3 seconds timeout
6566
intersphinx_mapping = {
6667
"python": ("https://docs.python.org/3.10/", None),

docs/user/about/index.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
About Read the Docs
22
===================
33

4-
.. toctree::
5-
:hidden:
6-
7-
/commercial/index
8-
/reference/policies
9-
/advertising/index
10-
/story
11-
/sponsors
12-
/open-source-philosophy
13-
/team
14-
/support
15-
164
Read the Docs is a C Corporation registered in Oregon.
175
Our bootstrapped company is owned and fully controlled by the founders,
186
and fully funded by our customers and advertisers.
@@ -38,9 +26,6 @@ This allows us to give back to the communities and projects that we support and
3826
We are proud about the way we manage our company and products,
3927
and are glad to have you on board with us in this :doc:`great documentation journey </story>`.
4028

41-
Additional content
42-
-------------------------------
43-
4429
If you want to dive more into more specific information and our policies,
4530
we've brought most of the most important ones below.
4631

@@ -68,7 +53,23 @@ we've brought most of the most important ones below.
6853
:doc:`/support`
6954
Read this before asking for help: How to get support and where.
7055

56+
:doc:`/glossary`
57+
A useful index of terms used in our docs
58+
7159
.. seealso::
7260

7361
`Our website <https://about.readthedocs.com>`__
7462
Our primary website has general-purpose information about Read the Docs like pricing and feature overviews.
63+
64+
.. toctree::
65+
:hidden:
66+
67+
/commercial/index
68+
/reference/policies
69+
/advertising/index
70+
/story
71+
/sponsors
72+
/open-source-philosophy
73+
/team
74+
/support
75+
/glossary

docs/user/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ from Read the Docs.
1212

1313
v3
1414
v2
15+
/server-side-search/api

docs/user/build-default-versions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Default versions of dependencies
1212

1313
Read the Docs supports two tools to build your documentation:
1414
`Sphinx <https://www.sphinx-doc.org/>`__ and `MkDocs <https://www.mkdocs.org/>`__.
15-
In order to provide :doc:`several features </features>`,
15+
In order to provide :doc:`several features </reference/features>`,
1616
Read the Docs injects or modifies some content while building your docs.
1717

1818
In particular, if you don't specify the dependencies of your project,

docs/user/commercial/sharing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Sharing
2-
=======
1+
Private Documentation Sharing
2+
=============================
33

44
.. include:: /shared/admonition-rtd-business.rst
55

docs/user/connected-accounts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Connecting your Git repository
2-
==============================
1+
How to connect your Git repository
2+
==================================
33

44
In this article, we explain how connecting your Read the Docs account to one of the supported Git providers
55
automatically configures your Git repository and your Read the Docs project.

docs/user/features.rst

Lines changed: 0 additions & 91 deletions
This file was deleted.

docs/user/guides/administrators.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ have a look at our :doc:`/tutorial/index`.
1313
:maxdepth: 1
1414

1515
Connect your git repository <git-integrations>
16+
/connected-accounts
1617
Connect your Read the Docs account to your Git repository <connecting-git-account>
1718
Manage Custom Domains <custom-domains>
1819
Enable Canonical URLs <canonical-urls>

docs/user/guides/authors.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ and :doc:`/intro/getting-started-with-mkdocs`.
1616
cross-referencing-with-sphinx
1717
Link to external projects (Intersphinx) <intersphinx>
1818
jupyter
19+
/guides/technical-docs-seo-guide
1920
Migrate from rST to MyST <migrate-rest-myst>
2021
enable-offline-formats
2122
Using search analytics <search-analytics>
23+
/automatic-redirects
24+
/science

docs/user/guides/build-troubleshooting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Troubleshooting build errors
22
============================
33

4-
.. include:: /shared/contribute_to_troubleshooting.rst
4+
.. include:: /shared/contribute-to-troubleshooting.rst
55

66

77
Git errors

docs/user/guides/build-using-too-many-resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ this troubleshooting guide will help you resolve some of the most common issues
88
Build resources on Read the Docs are limited to make sure that users don't overwhelm our build systems.
99
The current build limits can be found on our :ref:`Build resources reference <builds:Build resources>`.
1010

11-
.. include:: /shared/contribute_to_troubleshooting.rst
11+
.. include:: /shared/contribute-to-troubleshooting.rst
1212

1313
Reduce formats you're building
1414
------------------------------

docs/user/guides/developers.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ or customize the documentation appearance.
1515
embedding-content
1616
conda
1717
remove-edit-buttons
18-
build-using-too-many-resources
1918
edit-source-links-sphinx
2019
Setup Build Notifications <build-notifications>
2120
Use traffic analytics </analytics>

docs/user/guides/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:orphan:
1+
:orphan:
22

33
Guides
44
======
@@ -7,10 +7,10 @@ These guides will help walk you through specific use cases
77
related to Read the Docs itself, documentation tools like Sphinx and MkDocs
88
and how to write successful documentation.
99

10-
1110
.. toctree::
1211
:maxdepth: 2
1312

1413
authors
1514
administrators
15+
build-troubleshooting
1616
developers
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Troubleshooting guides
2-
----------------------
1+
Guides for troubleshooting problems
2+
-----------------------------------
33

44
In the following guides,
55
you can learn how to fix common problems using Read the Docs.
@@ -10,5 +10,5 @@ you can learn how to fix common problems using Read the Docs.
1010
.. toctree::
1111
:maxdepth: 1
1212

13-
Build errors <../build-troubleshooting>
14-
Slow builds <../build-using-too-many-resources>
13+
../build-troubleshooting
14+
../build-using-too-many-resources

0 commit comments

Comments
 (0)