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
Stop moving the Read the Docs version switcher into the sidebar (#2034)
Read the Docs recently rolled out its new "addons" project. This broke
assumptions made by code in our theme.
In particular, it means that all of the code that tries to move the Read
the Docs version switcher into the sidebar no longer works, so this pull
request removes all of that code and updates the docs.
I also removed the check for Read the Docs in the Ethical Ads template
because as far as I understand, that template is opt-in anyway, meaning
that sites that use our theme do not have that template included by
default.
Fixes#1794 and
possibly #1238.
This pull request does not address
#1933, which is
about providing a better integration with Read the Docs. The only goal
of this pull request is to remove code that is broken as a result of the
addons rollout.
Copy file name to clipboardExpand all lines: docs/user_guide/readthedocs.md
+20-8
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,26 @@ This theme comes with support for {{ rtd }}, a popular service for hosting docum
4
4
5
5
## Version switcher
6
6
7
-
Projects hosted on {{ rtd }} can use the {{ rtd }} supplied version switcher instead of the [version switcher that this theme provides](version-dropdown.rst).
8
-
Its presence will be automatically detected by this theme, and placed in the `rtd-footer-container` node inside the primary sidebar.
9
-
10
-
```{warning}
11
-
The {{ rtd }} version switcher will be hidden any time the primary sidebar is hidden (see [this section](layout-sidebar-primary) for discussion of when the primary sidebar might get hidden automatically and how to hide it purposely).
12
-
We intend to make {{ rtd }} switcher placement more flexible; you can track progress toward that in [this issue](https://github.com/pydata/pydata-sphinx-theme/issues/705). This problem doesn't apply to the version switcher provided by
13
-
the [flyout add-on](https://docs.readthedocs.io/en/stable/addons.html) which can be enabled through your project's settings.
14
-
```
7
+
Read the Docs provides a version switcher by default to projects as part of a
8
+
[flyout menu](https://docs.readthedocs.io/en/stable/flyout-menu.html) that can
9
+
be disabled.
10
+
11
+
This means that you have one of three options if you are hosting a PyData
12
+
Sphinx Theme-enabled site on Read the Docs:
13
+
14
+
1. Use only the Read the Docs version switcher. You must disable the [version
15
+
switcher that this theme provides](version-dropdown.rst) if you previously
16
+
enabled it.
17
+
2. Use only this theme's version switcher. You must disable the Read the Docs
18
+
version switcher by going to your project's [Read the Docs
19
+
dashboard](https://app.readthedocs.org/dashboard/). Then go to
20
+
`Settings > Addons > Flyout menu` and uncheck the "Flyout enabled" box.
21
+
3. Not recommended: use both version switchers.
22
+
23
+
Be aware that the two version switchers are not feature equivalent. For example,
24
+
the Read the Docs flyout provides a translation switcher in addition to a
25
+
version switcher. On the other hand, the Read the Docs switcher is not styled to
26
+
match the look and feel of this theme. And there are other differences.
0 commit comments