Skip to content

Commit 8a64bba

Browse files
authored
Merge pull request #1025 from xylar/add-version-side-bar
Fix version side bar
2 parents ce324fd + 8a601aa commit 8a64bba

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

docs/_static/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.wy-nav-content {
2+
max-width: 1200px !important;
3+
}
4+

docs/_templates/layout.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "!layout.html" %}
2+
{% block extrahead %}
3+
<link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
4+
{% endblock %}
5+

docs/conf.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@
124124
#
125125
# html_theme_options = {}
126126

127-
# Add any paths that contain custom static files (such as style sheets) here,
128-
# relative to this directory. They are copied after the builtin static files,
129-
# so a file named "default.css" will overwrite the builtin "default.css".
130-
# html_static_path = ['_static']
131-
132-
133127
# -- Options for HTMLHelp output ------------------------------------------
134128

135129
# Output file base name for HTML help builder.
@@ -222,6 +216,11 @@
222216

223217
github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'
224218

219+
# Add any paths that contain custom static files (such as style sheets) here,
220+
# relative to this directory. They are copied after the builtin static files,
221+
# so a file named "default.css" will overwrite the builtin "default.css".
222+
html_static_path = ["_static"]
223+
225224
html_sidebars = {
226225
"**": [
227226
"versions.html",

0 commit comments

Comments
 (0)