| 1 |
# Read the Docs functionality |
| 2 |
|
| 3 |
This theme comes with support for {{ rtd }}, a popular service for hosting documentation in the scientific Python community. |
| 4 |
|
| 5 |
## Version switcher |
| 6 |
|
| 7 |
Read the Docs provides a version switcher by default to projects as part of a |
| 8 |
[flyout menu](https://docs.readthedocs.com/platform/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. |
| 27 |
|
| 28 |
## Add ethical advertisements to your sidebar |
| 29 |
|
| 30 |
If you're hosting your documentation on ReadTheDocs, you should consider |
| 31 |
adding an explicit placement for their **ethical advertisements**. These are |
| 32 |
non-tracking advertisements from ethical companies, and they help ReadTheDocs |
| 33 |
sustain themselves and their free service. |
| 34 |
|
| 35 |
Ethical advertisements are added to your sidebar by default. To ensure they are |
| 36 |
there if you manually update your sidebar, ensure that the `sidebar-ethical-ads.html` |
| 37 |
template is added to your list. For example: |
| 38 |
|
| 39 |
```python |
| 40 |
html_sidebars = { |
| 41 |
"**": ["search-field.html", "sidebar-nav-bs.html", "sidebar-ethical-ads.html"] |
| 42 |
} |
| 43 |
``` |