Skip to content

Commit

Permalink
docs: add Hypothesis and utterances overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Feb 3, 2022
1 parent 1e616f7 commit 652c418
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# -- Project information -----------------------------------------------------
project = "BESIII Offline Software System"
package = "bossdoc"
repo_name = "bossdoc"
REPO_NAME = "bossdoc"
copyright = "2020, BESIII"

if os.path.exists(f"../src/{package}/version.py"):
Expand Down Expand Up @@ -65,6 +65,7 @@ def fetch_logo(url: str, output_path: str) -> None:
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"sphinx_comments",
"sphinx_copybutton",
"sphinx_math_dollar",
"sphinx_panels",
Expand Down Expand Up @@ -104,7 +105,7 @@ def fetch_logo(url: str, output_path: str) -> None:
html_sourcelink_suffix = ""
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": f"https://github.com/redeboer/{repo_name}",
"repository_url": f"https://github.com/redeboer/{REPO_NAME}",
"repository_branch": "main",
"path_to_docs": "docs",
"use_download_button": True,
Expand Down Expand Up @@ -190,6 +191,16 @@ def fetch_logo(url: str, output_path: str) -> None:
]
myst_update_mathjax = False

# Settings for sphinx_comments
comments_config = {
"hypothesis": True,
"utterances": {
"repo": f"ComPWA/{REPO_NAME}",
"issue-term": "pathname",
"label": "📝 Docs",
},
}

# Settings for Thebe cell output
thebe_config = {
"repository_url": html_theme_options["repository_url"],
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ install_requires =
myst-nb >=0.11 # myst_enable_extensions
Sphinx >=3
sphinx-book-theme
sphinx-comments
sphinx-copybutton
sphinx-math-dollar
sphinx-panels
Expand Down

0 comments on commit 652c418

Please sign in to comment.