Modifying content width of the Sphinx theme 'Read the Docs'

前端 未结 9 843
小鲜肉
小鲜肉 2020-12-13 18:04

I am using \'Read the Docs\' Sphinx theme for my documentation. In the original theme, given below

http://read-the-docs.readthedocs.org/en/latest/theme.html

9条回答
  •  眼角桃花
    2020-12-13 18:48

    1. source\conf.py
    html_theme = 'sphinx_rtd_theme'
    html_style = 'css/my_theme.css'
    
    1. source\_static\css\my_theme.css
    @import url("theme.css");
    
    .wy-nav-content {
        max-width: 90%;
    }
    

    That will be 90% width of your monitor.

提交回复
热议问题