一种简单的方法是将其添加到您的conf.py:
conf.py
def setup(app): app.add_css_file('css/custom.css') # may also be an URL
然后将文件放入_static/css/文件夹。
_static/css/