You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: Split Subprojects in Explanation and How-to (Diátaxis) (#9785)
* Existing text refactored into howto and explanation
* Improve subproject explanation with some cases of when it's useful
* Apply suggestions from code review by @humitos
Co-authored-by: Manuel Kaufmann <[email protected]>
* Really spell out the alias of a subproject vs. its name
* Lowercase foo and bar
* Describe common searching as a main objective of using subprojects, add a subsection about Separate release cycles
* Update docs/user/subprojects.rst
Co-authored-by: Eric Holscher <[email protected]>
* Apply suggestions from code review @ericholscher
Co-authored-by: Eric Holscher <[email protected]>
* Update docs/user/guides/subprojects.rst
* Updates to Subprojects Explanation and How-to from @ericholscher feedback
* Update introduction, improvents pending...
* Adds another intro paragraph
* Also make *main website* emphasized
* Update docs/user/guides/subprojects.rst
Co-authored-by: Eric Holscher <[email protected]>
* Update docs/user/guides/subprojects.rst
Co-authored-by: Eric Holscher <[email protected]>
* Apply suggestions from code review @ericholscher
Co-authored-by: Eric Holscher <[email protected]>
* Add mentions of subprojects in Intersphinx how-to and vice versa
* Thanks PyCharm for the lovely emoji support 📝️📝️📝️
* Make it possible to see from the main example that example-project-plugin has a short alias
* Rename all occurrences of foo and bar to example-project and example-project-plugin
* Add precision to subproject create/edit form
* Apply suggestions from code review by @humitos 🎉 👍
Co-authored-by: Manuel Kaufmann <[email protected]>
* Update docs/user/subprojects.rst
Co-authored-by: Manuel Kaufmann <[email protected]>
Co-authored-by: Eric Holscher <[email protected]>
Copy file name to clipboardExpand all lines: docs/user/guides/intersphinx.rst
+7
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@ While you could just hyperlink directly, there is a better way.
14
14
That is, you could use the ``:ref:`` role to link to sections of other documentation projects.
15
15
Sphinx will ensure that your cross-references to the other project exist and will raise a warning if they are deleted or changed so you can keep your docs up to date.
16
16
17
+
If you are publishing several Sphinx projects together using Read the Docs' *subprojects* (see :doc:`/subprojects`),
18
+
you should use Intersphinx to reference your subprojects from other projects.
19
+
17
20
.. note::
18
21
19
22
You can also use Sphinx's ``linkcheck`` builder to check for broken links.
@@ -48,6 +51,10 @@ And use the ``intersphinx_mapping`` configuration to indicate the name and link
In the admin dashboard for your project, select "Subprojects" from the menu.
22
-
From this page you can add a subproject by typing in the project slug.
21
+
.. seealso::
23
22
24
-
Subproject aliases
25
-
~~~~~~~~~~~~~~~~~~
23
+
:doc:`/guides/subprojects`
24
+
Learn how to create and manage subprojects
25
+
26
+
:doc:`/guides/intersphinx`
27
+
Learn how to use references between different Sphinx projects, for instance between subprojects
26
28
27
-
You can use an alias for the subproject when it is created. This allows you to override the URL that is used to access it, giving more configurability to how you want to structure your projects.
28
29
29
30
Sharing a custom domain
30
31
-----------------------
31
32
32
-
Projects and subprojects can also be used to share a custom domain with a number
33
-
of projects. To configure this, one project should be established as the parent
34
-
project. This project will be configured with a custom domain. Projects can then
35
-
be added as subprojects to this parent project.
33
+
Projects and subprojects can be used to share a custom domain.
34
+
To configure this, one project should be established as the main project and configured with a custom domain.
35
+
Other projects are then added as subprojects to the main project.
36
+
37
+
If the example project ``example-project`` was set up with a custom domain,
38
+
``docs.example.com``, the URLs for projects ``example-project`` and ``example-project-plugin`` with alias ``plugin`` would
0 commit comments