Use ReadTheDocs customized theme

This commit is contained in:
George Melikov
2020-05-19 00:28:37 +03:00
parent f541a5c255
commit 26d68a62f9
6 changed files with 31 additions and 4 deletions

17
docs/_static/css/theme_overrides.css vendored Normal file
View File

@@ -0,0 +1,17 @@
/* override table width restrictions */
@media screen and (min-width: 767px) {
.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}
.wy-table-responsive {
overflow: visible !important;
}
.wy-nav-content {
max-width: 1500px !important;
}
}

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

BIN
docs/_static/img/logo/logo_main.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -6,6 +6,8 @@
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
import sphinx_rtd_theme
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
@@ -43,6 +45,7 @@ extensions = [
'sphinx.ext.githubpages',
'sphinx.ext.intersphinx',
"sphinx_issues",
"sphinx_rtd_theme",
]
# Add any paths that contain templates here, relative to this directory.
@@ -81,23 +84,30 @@ pygments_style = None
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
html_theme_options = {
'logo': '/img/320px-Open-ZFS-Secondary-Logo-Colour-halfsize.png',
# 'page_width': 'auto',
# 'body_max_width': 'auto',
'logo_only': True,
'style_nav_header_background': '#29667e',
}
html_logo = '_static/img/logo/logo_main.png'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_context = {
'css_files': [
'_static/css/theme_overrides.css', # override wide tables in RTD theme
],
}
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#