Skip to content

Commit b05da14

Browse files
committed
updated sphinx config
1 parent 9ae4259 commit b05da14

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Diff for: docs/conf.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
import os
1414
import sys
1515

16+
# Define the canonical URL if you are using a custom domain on Read the Docs
17+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
18+
19+
# Tell Jinja2 templates the build is running on Read the Docs
20+
if os.environ.get("READTHEDOCS", "") == "True":
21+
if "html_context" not in globals():
22+
html_context = {}
23+
html_context["READTHEDOCS"] = True
24+
25+
1626
sys.path.insert(0, os.path.abspath(".."))
1727
sys.path.insert(0, os.path.abspath("../examples"))
1828
sys.path.insert(0, os.path.abspath("../tutorial"))
@@ -33,8 +43,8 @@
3343
author = "Robert Myhill, Sanne Cottaar, Timo Heister, Ian Rose, Cayman Unterborn"
3444

3545
# The short X.Y version.
36-
v = burnman.__version__.split('.')
37-
version = f'{v[0]}.{v[1]}'
46+
v = burnman.__version__.split(".")
47+
version = f"{v[0]}.{v[1]}"
3848
# The full version, including alpha/beta/rc tags
3949
release = burnman.__version__
4050

@@ -307,4 +317,4 @@
307317
# texinfo_show_urls = 'footnote'
308318

309319
# Example configuration for intersphinx: refer to the Python standard library.
310-
intersphinx_mapping = {"http://docs.python.org/": None}
320+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

0 commit comments

Comments
 (0)