Skip to content

Commit 875c43b

Browse files
committed
ENH: Add "Edit this page" links
Provided by pydata-sphinx-theme.
1 parent 438d11e commit 875c43b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Formatting/conf.py.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,19 @@ html_theme_options = {
144144
{"name": "ITK", "url": "https://itk.org"},
145145
],
146146

147+
"use_edit_page_button": True,
148+
147149
# Global TOC depth for "site" navbar tab.
148150
'show_nav_level': 2,
149151
}
150152

153+
html_context = {
154+
"github_user": "InsightSoftwareConsortium",
155+
"github_repo": "ITKSphinxExamples",
156+
"github_version": "master",
157+
"doc_path": "",
158+
}
159+
151160
# The name for this set of Sphinx documents. If None, it defaults to
152161
# "<project> v<release> documentation".
153162
html_title = project + ' v' + release

0 commit comments

Comments
 (0)