Skip to content

Commit d56bc3d

Browse files
doc: use sphinxdoc HTML theme
Default 'classic' theme [1] was used by Python 2 documentation. It's not well-suited for modern resolutions and it's sidebar width isn't configurable, which is crucial for modules API ToC correct display. 1. https://www.sphinx-doc.org/en/master/usage/theming.html Part of #67
1 parent dbbfd75 commit d56bc3d

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
138138
- Bump msgpack requirement to 1.0.4 (PR #223).
139139
The only reason of this bump is various vulnerability fixes,
140140
msgpack>=0.4.0 and msgpack-python==0.4.0 are still supported.
141+
- Change documentation HTML theme (#67).
141142

142143
### Fixed
143144

Diff for: doc/_static/tarantool.css

-19
This file was deleted.

Diff for: doc/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@
9393

9494
# -- Options for HTML output ---------------------------------------------------
9595

96-
html_style = 'tarantool.css'
96+
#html_style = 'style.css'
9797

9898
# The theme to use for HTML and HTML Help pages. See the documentation for
9999
# a list of builtin themes.
100-
html_theme = 'default'
100+
html_theme = 'sphinxdoc'
101101

102102
# Theme options are theme-specific and customize the look and feel of a theme
103103
# further. For a list of options available for each theme, see the
104104
# documentation.
105-
#html_theme_options = {}
105+
html_theme_options = {'sidebarwidth': '30%'}
106106

107107
# Add any paths that contain custom themes here, relative to this directory.
108108
#html_theme_path = []
@@ -126,7 +126,7 @@
126126
# Add any paths that contain custom static files (such as style sheets) here,
127127
# relative to this directory. They are copied after the builtin static files,
128128
# so a file named "default.css" will overwrite the builtin "default.css".
129-
html_static_path = ['_static']
129+
#html_static_path = ['_static']
130130

131131
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
132132
# using the given strftime format.

0 commit comments

Comments
 (0)