Skip to content

Commit 2c994f2

Browse files
Merge pull request #84 from ISISComputingGroup/add_edit_on_github_button
Add 'edit on github' button in corner of docs page
2 parents 0884456 + 145f07e commit 2c994f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@
4747
templates_path = ["_templates"]
4848
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4949

50-
5150
# -- Options for HTML output -------------------------------------------------
5251
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5352

53+
html_context = {
54+
"display_github": True, # Integrate GitHub
55+
"github_user": "ISISComputingGroup", # Username
56+
"github_repo": "ibex_bluesky_core", # Repo name
57+
"github_version": "main", # Version
58+
"conf_py_path": "/doc/", # Path in the checkout to the docs root
59+
}
60+
5461
html_theme = "sphinx_rtd_theme"
5562
html_logo = "logo.png"
5663
html_theme_options = {

0 commit comments

Comments
 (0)