Skip to content

Commit

Permalink
Merge pull request #94 from openedx/feanil/update_rtd_config
Browse files Browse the repository at this point in the history
build: Manually pull some RTD Context.
  • Loading branch information
Cristhian Garcia authored Sep 26, 2024
2 parents a45b1b5 + 9fa1c82 commit bd692f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,16 @@ def get_version(*file_paths):
#
# epub_use_index = True

# -- Read the Docs Specific Configuration
# Define the canonical URL if you are using a custom domain on Read the Docs
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":
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
Expand Down

0 comments on commit bd692f3

Please sign in to comment.