Browse Source

Merge pull request #107 from Learnware-LAMDA/refactor_doc

[FIX, DOC] add css style to fix doc bugs
tags/v0.3.2
bxdd GitHub 2 years ago
parent
commit
a5c00e48aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 9 deletions
  1. +19
    -2
      docs/_static/css/custom_style.css
  2. +6
    -7
      docs/conf.py

+ 19
- 2
docs/_static/css/custom_style.css View File

@@ -1,3 +1,20 @@
.wy-nav-content {
max-width: none;
.bd-main {
flex-grow: 1;
flex-direction: column;
display: flex;
min-width: 0;
}

.bd-main .bd-content {
justify-content: left;
}

.bd-main .bd-content .bd-article-container {
max-width: calc(100% - var(--pst-sidebar-secondary));
}

.bd-sidebar-primary div#rtd-footer-container {
bottom: -1rem;
margin: -1rem;
position: fixed;
}

+ 6
- 7
docs/conf.py View File

@@ -56,8 +56,6 @@ version = pkg_resources.get_distribution("learnware").version
# The full version, including alpha/beta/rc tags.
release = pkg_resources.get_distribution("learnware").version

release = "0.1.0.99"


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
@@ -92,11 +90,12 @@ todo_include_todos = True
#
html_theme = "sphinx_book_theme"
html_theme_path = [sphinx_book_theme.get_html_theme_path()]
html_theme_options = {
"collapse_navigation": False,
"navigation_depth": 4,
}

#html_theme_options = {
# "logo_only": True,
# "collapse_navigation": False,
# "display_version": False,
# "navigation_depth": 4,
#}
html_logo = "_static/img/logo/logo1.png"




Loading…
Cancel
Save