Skip to content

Commit

Permalink
Add GitHub Edit button
Browse files Browse the repository at this point in the history
  • Loading branch information
jramsdell-bt committed Apr 3, 2024
1 parent 4723812 commit d3f9757
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = "BioTeam Sphinx Demo"
copyright ="BioTeam Inc"
author = "Jordan Ramsdell"
github_user = "jramsdell"
github_repo_name = "sphinx-documentation-demo" # auto-detected from dirname if blank
github_version = "main"
conf_py_path = "/docs/" # with leading and trailing slash

# -- General configuration ---------------------------------------------------

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

html_theme_options = {
"use_edit_page_button": False,
"use_edit_page_button": True,
"show_toc_level": 4,


Expand Down Expand Up @@ -95,9 +86,19 @@
# "**": ["globaltoc.html"]
# }

# -- Project information -----------------------------------------------------

project = "BioTeam Sphinx Demo"
copyright ="BioTeam Inc"
author = "Jordan Ramsdell"
github_user = "jramsdell"
github_repo_name = "sphinx-documentation-demo" # auto-detected from dirname if blank
github_version = "main"
conf_py_path = "/docs/" # with leading and trailing slash

html_context = {
"display_github": True,
"github_user": github_user,
"github_user": author,
# Auto-detect directory name. This can break, but
# useful as a default.
"github_repo": github_repo_name or basename(dirname(realpath(__file__))),
Expand Down

0 comments on commit d3f9757

Please sign in to comment.