doc: update sphinx configs for RTD changes
# built documents.
# The short X.Y version.
-version = u"?.?"
+version = "?.?"
# The full version, including alpha/beta/rc tags.
-release = u"?.?-?"
+release = "?.?-?"
+ # Set canonical URL from the Read the Docs Domain
+ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
+
+ # Tell Jinja2 templates the build is running on Read the Docs
+ if os.environ.get("READTHEDOCS", "") == "True":
+ html_context["READTHEDOCS"] = True
+
# -----------------------------------------------------------------------------
# Extract values from codebase for substitution into docs.
# built documents.
# The short X.Y version.
-version = u"?.?"
+version = "?.?"
# The full version, including alpha/beta/rc tags.
-release = u"?.?-?"
+release = "?.?-?"
+ # RTD configuration
+
+ # Set canonical URL from the Read the Docs Domain
+ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
+
+ # Tell Jinja2 templates the build is running on Read the Docs
+ if os.environ.get("READTHEDOCS", "") == "True":
+ html_context["READTHEDOCS"] = True
+
+
# -----------------------------------------------------------------------------
# Extract values from codebase for substitution into docs.