Skip to content

Commit 3cffe19

Browse files
committed
doc: add "Edit on GitHub" link on RTD page
1 parent 5f221be commit 3cffe19

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/source/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,16 @@ def get_version_release_from_git():
140140
#
141141
# html_theme_options = {}
142142
if os_rtd:
143-
html_theme_options = { 'logo_only' : True }
143+
html_theme_options = {
144+
'logo_only': True,
145+
}
146+
html_context = {
147+
'conf_py_path': '/doc/source/',
148+
'display_github': True,
149+
'github_user': 'cea-hpc',
150+
'github_repo': 'modules',
151+
'github_version': 'main',
152+
}
144153

145154
# The name of an image file (relative to this directory) to place at the top
146155
# of the sidebar.

0 commit comments

Comments
 (0)