Skip to content

Commit 32ad910

Browse files
authored
Docs: use the sphinx-rtd-theme with support for addons integration (#11279)
* Docs: use the `sphinx-rtd-theme` with support for addons integration Installs a version of our theme from a pull request that has support for the Addons integration using the `CustomEvent`. Related: readthedocs/sphinx_rtd_theme#1526 Requires: #11205 * Disable fail on warning temporary * Delete doc-diff since it's included in addons now
1 parent 791643f commit 32ad910

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.readthedocs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ formats:
66

77
sphinx:
88
configuration: docs/conf.py
9-
fail_on_warning: true
9+
10+
# Disabled due to temporary issue with Django docs
11+
fail_on_warning: false
1012

1113
python:
1214
install:
@@ -31,6 +33,12 @@ build:
3133
exit 183;
3234
fi
3335
36+
# Install our Sphinx Theme version that uses the Addons CustomEvent to generate the integrated flyout
37+
# TODO: this custom installation once a new release has been done
38+
post_install:
39+
- pip uninstall --yes sphinx-rtd-theme
40+
- pip install git+https://github.com/readthedocs/sphinx_rtd_theme.git@humitos/addons-flyout#egg=sphinx-rtd-theme
41+
3442
search:
3543
ranking:
3644
# Deprecated content

docs/_static/js/readthedocs-doc-diff.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@
160160
html_css_files = ["css/custom.css", "css/sphinx_prompt_css.css"]
161161
html_js_files = ["js/expand_tabs.js"]
162162

163-
if os.environ.get("READTHEDOCS_VERSION_TYPE") == "external":
164-
html_js_files.append("js/readthedocs-doc-diff.js")
165-
166163
html_logo = "img/logo.svg"
167164
html_theme_options = {
168165
"logo_only": True,

0 commit comments

Comments
 (0)