Skip to content

Commit 39a618e

Browse files
committed
add edit on github button to docs
1 parent 59aa46a commit 39a618e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
suppress_warnings =["docutils"]
3030
html_theme = "sphinx_rtd_theme"
3131
html_logo = "resources/logo/lewis-logo.png"
32+
html_context = {
33+
"display_github": True, # Integrate GitHub
34+
"github_user": "ISISComputingGroup", # Username
35+
"github_repo": "lewis", # Repo name
36+
"github_version": "main", # Version
37+
"conf_py_path": "/doc/", # Path in the checkout to the docs root
38+
}
3239

3340
autoclass_content = "both"
3441
myst_heading_anchors = 3

0 commit comments

Comments
 (0)