如何在使用sphinx-build生成的html中显示警告框
sphinx-build
Warning Do not use the directives sectnum, header and footer.
我想把上面的信息展示如下:
(很抱歉,所以不允许我在这里的文章中嵌入图像)
请忽略文本格式,我的主要目标是显示带有一些文本的框,以引起用户就像斯芬克斯博士网站的注意。
发布于 2018-04-27 21:11:52
您想要的reStructuredText语法是用于称为训诫指示的东西。
该特定示例存在于文献来源中。
.. warning:: Do *not* use the directives :dudir:`sectnum`, :dudir:`header` and :dudir:`footer`.
https://stackoverflow.com/questions/50069941
相似问题