Skip to content

Commit

Permalink
switch to sphinx-book-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 21, 2023
1 parent 4f812a3 commit 6d9b9df
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
41 changes: 38 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
".venv",
]

html_theme = "furo"
nbsphinx_execute = "auto"

myst_enable_extensions = [
"colon_fence",
Expand Down Expand Up @@ -59,7 +59,42 @@
]

always_document_param_types = True

add_module_names = False

add_function_parentheses = False

# API doc configuration
# -----------------------------------------------------------------------------
# autosummary_generate = True
# autodoc_default_options = {
# "members": True,
# "show-inheritance": True,
# }
# apidoc_module_dir = '../src/invert4geom'
# apidoc_excluded_paths = ['tests']
# apidoc_separate_modules = False

# HTML output configuration
# -----------------------------------------------------------------------------
html_title = f'{project} <span class="project-version">{version}</span>'
# html_logo = "_static/harmonica-logo.png"
# html_favicon = "_static/favicon.png"
html_last_updated_fmt = "%b %d, %Y"
html_copy_source = True
html_show_sourcelink = True
html_show_sphinx = True
html_show_copyright = False
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": "https://github.com/mdtanker/invert4geom",
"repository_branch": "main",
"path_to_docs": "doc",
# "launch_buttons": {
# "binderhub_url": "https://mybinder.org",
# "notebook_interface": "jupyterlab",
# },
"use_edit_page_button": True,
"use_issues_button": True,
"use_repository_button": True,
"use_download_button": True,
"home_page_in_toc": False,
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ docs = [
"myst_parser>=0.13",
"sphinx_copybutton",
"sphinx_autodoc_typehints",
"furo>=2023.08.17",
"sphinx-book-theme>=0.3",
"sphinx_design",
"nbsphinx",
]
Expand Down

0 comments on commit 6d9b9df

Please sign in to comment.