Skip to content

Commit

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

# Configuration file for the Sphinx documentation builder.
#
Expand Down Expand Up @@ -90,16 +91,25 @@
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"

html_logo = "_static/img/logo/logo1.png"

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
"logo_only": True,
"collapse_navigation": False,
"display_version": False,
"navigation_depth": 4,
}

html_logo = "_static/img/logo/logo1.png"


# These folders are copied to the documentation's HTML output
html_static_path = ['_static']

# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [
'css/custom_style.css',
]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down

0 comments on commit bd25ff1

Please sign in to comment.