Skip to content

Commit

Permalink
[FIX, DOC] add css style to fix doc bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bxdd committed Nov 22, 2023
1 parent bcc7e3d commit 9fe6b9c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
21 changes: 19 additions & 2 deletions docs/_static/css/custom_style.css
Original file line number Diff line number Diff line change
@@ -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;
}
13 changes: 6 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
# 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
Expand Down Expand Up @@ -92,11 +90,12 @@
#
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"


Expand Down

0 comments on commit 9fe6b9c

Please sign in to comment.