Skip to content

Commit 4848b3d

Browse files
committed
Add explicit Edit on GitHub configuration
Always show the edit on github links (even when building local HTML) and correct the URL to go to the nested docs/ops/doc/ path.
1 parent 907e10b commit 4848b3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/ops/doc/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
copybutton_selector = "div:not(.no-copybutton) > div.highlight > pre"
5151

5252
# -- Options for HTML output -------------------------------------------------
53+
54+
# Always show the Edit on GitHub buttons
55+
# Set the correct path for Edit on GitHub
56+
html_context = {
57+
'display_github': True,
58+
'github_user': 'scijava',
59+
'github_repo': 'scijava',
60+
'github_version': 'main/docs/ops/doc/',
61+
}
62+
5363
# Add the SciJava logo
5464
# html_logo = "doc-images/logo.svg"
5565
# html_theme_options = {

0 commit comments

Comments
 (0)