Browse Source

[DOC] add doc css style

tags/v0.3.2
bxdd 2 years ago
parent
commit
bd25ff18df
2 changed files with 16 additions and 3 deletions
  1. +3
    -0
      docs/_static/css/custom_style.css
  2. +13
    -3
      docs/conf.py

+ 3
- 0
docs/_static/css/custom_style.css View File

@@ -0,0 +1,3 @@
.wy-nav-content {
max-width: 1200px !important;
}

+ 13
- 3
docs/conf.py View File

@@ -1,4 +1,5 @@
import pkg_resources
import sphinx_rtd_theme

# Configuration file for the Sphinx documentation builder.
#
@@ -90,9 +91,7 @@ todo_include_todos = True
# 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,
@@ -100,6 +99,17 @@ html_theme_options = {
"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.


Loading…
Cancel
Save