Skip to content

Commit d3f9757

Browse files
committed
Add GitHub Edit button
1 parent 4723812 commit d3f9757

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

docs/conf.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

1717

18-
# -- Project information -----------------------------------------------------
19-
20-
project = "BioTeam Sphinx Demo"
21-
copyright ="BioTeam Inc"
22-
author = "Jordan Ramsdell"
23-
github_user = "jramsdell"
24-
github_repo_name = "sphinx-documentation-demo" # auto-detected from dirname if blank
25-
github_version = "main"
26-
conf_py_path = "/docs/" # with leading and trailing slash
2718

2819
# -- General configuration ---------------------------------------------------
2920

@@ -61,7 +52,7 @@
6152
html_theme = "pydata_sphinx_theme" # To install a new theme, you have to pip install it first
6253

6354
html_theme_options = {
64-
"use_edit_page_button": False,
55+
"use_edit_page_button": True,
6556
"show_toc_level": 4,
6657

6758

@@ -95,9 +86,19 @@
9586
# "**": ["globaltoc.html"]
9687
# }
9788

89+
# -- Project information -----------------------------------------------------
90+
91+
project = "BioTeam Sphinx Demo"
92+
copyright ="BioTeam Inc"
93+
author = "Jordan Ramsdell"
94+
github_user = "jramsdell"
95+
github_repo_name = "sphinx-documentation-demo" # auto-detected from dirname if blank
96+
github_version = "main"
97+
conf_py_path = "/docs/" # with leading and trailing slash
98+
9899
html_context = {
99100
"display_github": True,
100-
"github_user": github_user,
101+
"github_user": author,
101102
# Auto-detect directory name. This can break, but
102103
# useful as a default.
103104
"github_repo": github_repo_name or basename(dirname(realpath(__file__))),

0 commit comments

Comments
 (0)