Skip to content

Commit 1a27f71

Browse files
authored
Merge pull request #444 from adiati98/chores/add-edit-on-gh-6
Add Sphinx variables in `html_context` to display edit on GH link — branch 6.0
2 parents 5a33177 + 336723c commit 1a27f71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949

5050
html_static_path = ['css']
5151

52+
# GH Edit button
53+
54+
html_context = {
55+
"display_github": True, # Integrate GitHub
56+
"github_user": "mautic", # Username
57+
"github_repo": "user-documentation", # Repository name
58+
"github_version": "6.0", # Branch name
59+
"conf_py_path": "/docs/", # Path in the repository to conf.py
60+
}
61+
5262
# -- Options for HTML output
5363

5464
# The theme to use for HTML and HTML Help pages. See the documentation for

0 commit comments

Comments
 (0)