Skip to content

Commit 49e92f5

Browse files
authored
Merge pull request #274 from adiati98/chores/add-edit-on-gh
Add Sphinx variables in `html_context` to display edit on GH link
2 parents a7d030e + 5824577 commit 49e92f5

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
@@ -62,6 +62,16 @@
6262

6363
templates_path = ['_templates']
6464

65+
# GH Edit button
66+
67+
html_context = {
68+
"display_github": True, # Integrate GitHub
69+
"github_user": "mautic", # Username
70+
"github_repo": "developer-documentation-new", # Repository name
71+
"github_version": "5.x", # Branch name
72+
"conf_py_path": "/docs/", # Path in the repository to conf.py
73+
}
74+
6575
# -- Options for HTML output -------------------------------------------------
6676

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

0 commit comments

Comments
 (0)