Skip to content

Commit 3862a41

Browse files
committed
Docs: add edit on github button
Replaces the "view source" button which is not very helpful. Closes #322
1 parent 809df0a commit 3862a41

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,16 @@
3131

3232

3333
# -- Options for HTML output -------------------------------------------------
34+
35+
# Always show the Edit on GitHub buttons
36+
# Set the correct path for Edit on GitHub
37+
html_context = {
38+
'display_github': True,
39+
'github_user': 'imagej',
40+
'github_repo': 'napari-imagej',
41+
'github_version': 'main/doc/',
42+
}
43+
44+
3445
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3546
html_theme = "sphinx_rtd_theme"

0 commit comments

Comments
 (0)