Skip to content

Commit

Permalink
[MNT] update doc style
Browse files Browse the repository at this point in the history
  • Loading branch information
bxdd committed Nov 22, 2023
1 parent bd25ff1 commit 356b1a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/_static/css/custom_style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.wy-nav-content {
max-width: 1200px !important;
max-width: none;
}
23 changes: 3 additions & 20 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pkg_resources
import sphinx_rtd_theme
import sphinx_book_theme

# Configuration file for the Sphinx documentation builder.
#
Expand Down Expand Up @@ -90,12 +90,10 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = "sphinx_book_theme"
html_theme_path = [sphinx_book_theme.get_html_theme_path()]
html_theme_options = {
"logo_only": True,
"collapse_navigation": False,
"display_version": False,
"navigation_depth": 4,
}

Expand All @@ -111,21 +109,6 @@
'css/custom_style.css',
]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# This is required for the alabaster theme
# refs: http:https://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {
"**": [
"about.html",
"navigation.html",
"relations.html", # needs 'show_related': True theme option to display
"searchbox.html",
]
}


# -- Options for HTMLHelp output ------------------------------------------

# Output file base name for HTML help builder.
Expand Down

0 comments on commit 356b1a3

Please sign in to comment.