python sphinx,生成的html越界,格式不太好

时间:2013-09-27 02:52:08

标签: python python-sphinx

当我使用python-sphinx时,html就是这样,内容部分超出了界限。我该如何解决这个问题?enter image description here

1 个答案:

答案 0 :(得分:0)

尝试在conf.py中设置以下选项:

html_theme_options = {
    "stickysidebar": "true"
}

这是“默认”主题的主题选项(似乎是您正在使用的主题)。它使侧边栏固定并可水平滚动,长的不间断文本块不会侵入主要内容区域。

请参阅http://sphinx-doc.org/config.html#confval-html_theme_optionshttp://sphinx-doc.org/theming.html#builtin-themes