另一个选择是在source / _static中创建一个样式表,只需要你想要的CSS。
.wy-nav-content {
max-width: none;
}
要么
.wy-nav-content {
max-width: 1200px !important;
}
确保目录在源/ conf.py中被引用 – 我认为默认情况下有一行要做,即
# 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']
然后在source / _templates / layout.html中创建一个自定义布局,并执行这样的操作以包含样式表
{% extends "!layout.html" %}
{% block extrahead %}
{% endblock %}
假设你调用你的样式表style.css