Skip to content

Commit 723a939

Browse files
committed
add html_context in conf.py to show edit on GH link
1 parent 5ce90b5 commit 723a939

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)