Skip to content

Commit 0f7a8d6

Browse files
committed
adding edit option to doc page
* the edit buttion redirects to the corresponding document on github
1 parent c18b908 commit 0f7a8d6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/src/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,17 @@
9090
# Theme options are theme-specific and customize the look and feel of a theme
9191
# further. For a list of options available for each theme, see the
9292
# documentation.
93-
# html_theme_options = {}
93+
html_theme_options = {
94+
"use_edit_page_button": True,
95+
}
96+
97+
html_context = {
98+
"github_url": "https://github.com",
99+
"github_user": "scikit-learn-contrib",
100+
"github_repo": "scikit-matter",
101+
"github_version": "main",
102+
"doc_path": "docs/src",
103+
}
94104

95105
# Add any paths that contain custom themes here, relative to this directory.
96106
# html_theme_path = []

0 commit comments

Comments
 (0)