Skip to content

Docs: Navigation reorder (Diátaxis) #10026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
release = version
exclude_patterns = ["_build", "shared", "_includes"]
default_role = "obj"
intersphinx_cache_limit = 14 # cache for 2 weeks
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

intersphinx_timeout = 3 # 3 seconds timeout
intersphinx_mapping = {
"python": ("https://docs.python.org/3.10/", None),
Expand Down
1 change: 1 addition & 0 deletions docs/user/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ from Read the Docs.

v3
v2
/server-side-search/api
2 changes: 1 addition & 1 deletion docs/user/build-default-versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Default versions of dependencies

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

In particular, if you don't specify the dependencies of your project,
Expand Down
4 changes: 2 additions & 2 deletions docs/user/commercial/sharing.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Sharing
=======
Private Documentation Sharing
=============================
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯


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

Expand Down
4 changes: 2 additions & 2 deletions docs/user/connected-accounts.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Connecting your Git repository
==============================
How to connect your Git repository
==================================
Comment on lines +1 to +2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was intended as an explanation since there isn't anything actionable. I can guess at several reasons that a user should read the article, and since some of them are also how-to oriented, I don't see anything bad with the refactor.

We can call it a how-to, that can work as well 👍


In this article, we explain how connecting your Read the Docs account to one of the supported Git providers
automatically configures your Git repository and your Read the Docs project.
Expand Down
91 changes: 0 additions & 91 deletions docs/user/features.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/user/guides/administrators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ have a look at our :doc:`/tutorial/index`.
:maxdepth: 1

Connect your git repository <git-integrations>
/connected-accounts
Connect your Read the Docs account to your Git repository <connecting-git-account>
Manage Custom Domains <custom-domains>
Enable Canonical URLs <canonical-urls>
Expand Down
3 changes: 3 additions & 0 deletions docs/user/guides/authors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ and :doc:`/intro/getting-started-with-mkdocs`.
cross-referencing-with-sphinx
Link to external projects (Intersphinx) <intersphinx>
jupyter
/guides/technical-docs-seo-guide
Migrate from rST to MyST <migrate-rest-myst>
enable-offline-formats
Using search analytics <search-analytics>
/automatic-redirects
/science
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahaha, this page will keep moving around because it's such a hack.

BUT it's noted for later 👍

Copy link
Member

@ericholscher ericholscher Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I mostly just hid it away since it doesn't need to be in the top nav. I think it could live under a top-level Tutorials page like Specific use cases or something?

4 changes: 2 additions & 2 deletions docs/user/guides/troubleshooting/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Troubleshooting guides
----------------------
Guides for troubleshooting problems
-----------------------------------

In the following guides,
you can learn how to fix common problems using Read the Docs.
Expand Down
48 changes: 20 additions & 28 deletions docs/user/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ Read the Docs: Documentation Simplified
/intro/getting-started-with-sphinx
/intro/getting-started-with-mkdocs
/intro/import-guide

.. toctree::
:maxdepth: 2
:hidden:
:caption: How-to guides 🪄

/guides/authors
/guides/administrators
/guides/developers
Troubleshooting </guides/troubleshooting/index>
/examples
/faq

.. toctree::
:maxdepth: 2
Expand All @@ -30,32 +19,36 @@ Read the Docs: Documentation Simplified

/choosing-a-site
/integrations
/pull-requests
/science
/automatic-redirects
/guides/technical-docs-seo-guide
/localization
/build-notifications
/custom-domains
/connected-accounts
/builds
/downloadable-documentation
/subprojects
/single_version
/environment-variables
/subprojects
/localization

.. toctree::
:maxdepth: 2
:hidden:
:caption: How-to guides 🪄

/guides/authors
/guides/administrators
/guides/developers
/guides/troubleshooting/index

.. toctree::
:maxdepth: 2
:hidden:
:caption: Reference 📚

/reference/features
/about/index
/api/index
/server-side-search/api
/config-file/index
/build-customization
/server-side-search/syntax
/reference/environment-variables
changelog
/faq
/glossary
/api/index
/changelog
/about/index
Developer Documentation 🔗 <https://dev.readthedocs.io>

.. meta::
Expand Down Expand Up @@ -94,7 +87,7 @@ Open Source and User Focused |:heartbeat:|

.. _Read the docs: https://readthedocs.org/

You can find out more about our all the :doc:`/features` in these pages.
You can find out more about our all the :doc:`features </reference/features>` in these pages.

First steps
-----------
Expand All @@ -121,7 +114,6 @@ Learn more about configuring your automated documentation builds
and some of the core features of Read the Docs.

* **Overview of core features**:
:doc:`/features` |
:doc:`/custom-domains` |
:doc:`/versions` |
:doc:`/downloadable-documentation` |
Expand Down
2 changes: 1 addition & 1 deletion docs/user/integrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(Perhaps reuse this: https://about.readthedocs.com/images/homepage.png)


Building documentation on every Git commit
Integrations: building docs on each commit
==========================================

Read the Docs is a *Continuous Documentation Deployment* platform for your software project.
Expand Down
5 changes: 2 additions & 3 deletions docs/user/pull-requests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ Preview Documentation from Pull Requests
========================================

Your project can be configured to build and host documentation for every new
pull request. Previewing changes to your documentation during review makes it
easier to catch documentation formatting and display issues introduced in pull
requests.
pull request. Previewing changes during review makes it
easier to catch formatting and display issues before they go live.

Features
--------
Expand Down
53 changes: 28 additions & 25 deletions docs/user/reference/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Feature reference

.. TODO: Continue to add more features here.

Hosting features
----------------

⏩️ :doc:`/custom-domains`
Documentation projects can use their own domain name.
A project may define multiple domains,
Expand All @@ -20,38 +17,45 @@ Hosting features
If you only have 1 version and translation,
we also support :doc:`single version projects </single_version>` served at ``/``.

⏩️ :doc:`/pull-requests`
Your project can be configured to build and host documentation for every new pull request.
Previewing changes during review makes it easier to catch formatting and display issues.

⏩️ :doc:`/build-notifications`
Build notifications can alert you when your builds fail so you can take immediate action.

⏩️ :doc:`/reference/analytics`
Traffic and Search analytics are built into the platform.
This allows you to easily see what the most popular pages are,
and what people are searching for.

⏩️ :doc:`/user-defined-redirects`
Projects may define their own custom URL redirects,
with advanced functionality like folder redirects.

⏩️ :doc:`/commercial/sharing`
It is possible to host private and password protected documentation on Read the Docs for Business.

⏩️ :doc:`/reference/cdn`
Documentation projects are primarily static HTML pages along with media files.
This allows us to cache them with our CDN,
making them *load faster* for your users.


⏩️ :doc:`/reference/sitemaps`
Sitemaps are generated and hosted automatically,
improving search engine optimization.
This helps your users find content more effectively on your site.


⏩️ :doc:`/reference/404-not-found`
A 404 page is served when we can't find a page on your site.
We provide a default 404 page,
but you can also customize it.


⏩️ :doc:`/reference/robots`
`robots.txt` files allow you to customize how your documentation is indexed in search engines.
We provide a default robots.txt file,
but you can also customize it.


⏩️ :doc:`/commercial/sharing`
It is possible to host private and password protected documentation on Read the Docs for Business.

.. The TOC here will be refactored once we reorganize the files in docs/user/.
.. Probably, all feature reference should be in this directory!
.. In upcoming work, redirects will be added for old URL destinations.
Expand All @@ -60,31 +64,30 @@ Hosting features

.. toctree::
:maxdepth: 1
:glob:
:caption: Hosting features

../features
analytics
/server-side-search/index
/automation-rules
/custom-domains
/versions
/pull-requests
/build-notifications
/user-defined-redirects
/badges
/reference/analytics
/commercial/sharing
/reference/cdn
/reference/sitemaps
/reference/404-not-found
/reference/robots
/reference/sitemaps
/security-log

/config-file/index
/integrations
/versions
/server-side-search/index
/automation-rules
/badges
/security-log
/single_version

/builds
/build-customization
/environment-variables
/reference/environment-variables
/flyout-menu
/canonical-urls
/feature-flags
/commercial/organizations
/commercial/privacy-level
/commercial/sharing
/commercial/single-sign-on
2 changes: 1 addition & 1 deletion docs/user/science.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Documentation and technical writing are broad fields.
Their tools and practices have grown relevant to most scientific activities.
This includes building publications, books, educational resources, interactive data science, resources for data journalism and full-scale websites for research projects and courses.

Here's a brief overview of some :doc:`features <features>` that people in science and academic writing love about Read the Docs:
Here's a brief overview of some :doc:`features </reference/features>` that people in science and academic writing love about Read the Docs:

.. dropdown:: 🪄 Easy to use
:open:
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ Here you have some resources to continue learning about documentation
and Read the Docs:

- You can learn more about the functionality of the platform
by going over our :doc:`/features` page.
by going over our :doc:`features </reference/features>` page.
- To make the most of the documentation generators that are supported,
you can read the :doc:`Sphinx tutorial <sphinx:tutorial/index>`
or the `MkDocs User Guide <https://www.mkdocs.org/user-guide/>`_.
Expand Down