Skip to content

Commit a585650

Browse files
committed
Adding Edit on GitHub
1 parent 4df1c02 commit a585650

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
13-
# import os
13+
import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

@@ -58,6 +58,14 @@
5858
#
5959
html_theme = 'sphinx_rtd_theme'
6060

61+
# Display "Edit on GitHub"
62+
html_context = {
63+
'display_github': True,
64+
'github_user': 'ghostbsd',
65+
'github_repo': 'documentation',
66+
'github_version': 'main/',
67+
}
68+
6169
# Add any paths that contain custom static files (such as style sheets) here,
6270
# relative to this directory. They are copied after the builtin static files,
6371
# so a file named "default.css" will overwrite the builtin "default.css".

0 commit comments

Comments
 (0)