-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconf.py
36 lines (27 loc) · 1.21 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from crate.theme.rtd.conf.theme import *
# Mimic some bits of the RTD context being propagated to its Sphinx builder.
# https://github.com/readthedocs/readthedocs.org/blob/main/readthedocs/doc_builder/backends/sphinx.py
html_context.update({
# Generic settings.
"conf_py_path": "/docs/",
"source_suffix": source_suffix,
# Enable version chooser.
"display_version": True,
"current_version": "foobar",
"versions": [("foobar", None), ("bazqux", None)],
# Enable feedback widget and source/edit links.
"display_github": True,
"github_user": "crate",
"github_repo": "crate-docs-theme",
"github_version": "main",
})
# `html_context_custom` will be applied to the HTML context after the RTD
# builder was initialized.
# This snippet disables the GitHub feedback area for demonstration purposes.
# It can be used on individual projects where this is needed.
html_context_custom.update({
#"display_github": False,
})
intersphinx_mapping["myst"] = ("https://myst-parser.readthedocs.io/en/latest/", None)
intersphinx_mapping["sd"] = ("https://sphinx-design.readthedocs.io/en/latest/", None)
intersphinx_mapping["sde"] = ("https://sphinx-design-elements.readthedocs.io/en/latest/", None)