Skip to content

Commit a010bb8

Browse files
authored
[ci skip] add html context
1 parent 1f462a0 commit a010bb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@
117117
# Set canonical URL from the Read the Docs Domain
118118
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
119119

120-
html_context = {}
120+
html_context = {
121+
"display_github": True, # Integrate GitHub
122+
"github_user": "MESAHub", # Username
123+
"github_repo": "mesa", # Repo name
124+
"github_version": "main", # Version
125+
"conf_py_path": "/docs/source/", # Path in the checkout to the docs root
126+
}
121127

122128
# Tell Jinja2 templates the build is running on Read the Docs
123129
html_context["READTHEDOCS"] = os.environ.get("READTHEDOCS", "") == "True"

0 commit comments

Comments
 (0)