有没有办法改变 sphinx 网页上标题的颜色?我将 :caption:
指令与 toctree 一起使用,但标题的颜色几乎与边栏相同。供引用here是指向难以看到标题的页面的链接,这是我的索引文件:
Contents
============
.. toctree::
:caption: User Documentation
:maxdepth: 2
overview
installation
tutorial
.. toctree::
:maxdepth: 2
:caption: Developer Documentation
dev/conventions
dev/enviroment
dev/docs
dev/site
doc/modules
* :ref:`genindex`
* :ref:`modindex`
.. toctree::
:maxdepth: 2
:caption: Support
trouble/faq
trouble/issuetracker
trouble/contact
最佳答案
您可以为 span.caption-text 添加颜色属性吗?例如在你的 source/_static/custom.css
中放置:
@import url("default.css");
span.caption-text {
color: red;
}
关于html - 更改 toctree 中标题文本的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31326830/