在没有自定义警告的情况下在 sphinx 中导出 html
Export html in sphinx without custom admonitions
根据我的另一个问题 ,我想做的是导出一个 html
(或任何格式)而没有 这个标签(例如html
没有所有 admonition
指令。
我阅读了 .. only::
指令,但您似乎可以从 html
中排除整个页面,例如将其放在 latex
中。
您可以通过一个接一个地缩进来嵌套指令。
.. only:: html
.. admonition:: Solution
:class: toggle
* Go to the dexterity-controlpanel (http://localhost:8080/Plone/@@dexterity-types)
* Click on *Page* (http://127.0.0.1:8080/Plone/dexterity-types/Document)
* Select the tab *Behaviors* (http://127.0.0.1:8080/Plone/dexterity-types/Document/@@behaviors)
* Check the box next to *Lead Image* and save.
根据我的另一个问题 html
(或任何格式)而没有 这个标签(例如html
没有所有 admonition
指令。
我阅读了 .. only::
指令,但您似乎可以从 html
中排除整个页面,例如将其放在 latex
中。
您可以通过一个接一个地缩进来嵌套指令。
.. only:: html
.. admonition:: Solution
:class: toggle
* Go to the dexterity-controlpanel (http://localhost:8080/Plone/@@dexterity-types)
* Click on *Page* (http://127.0.0.1:8080/Plone/dexterity-types/Document)
* Select the tab *Behaviors* (http://127.0.0.1:8080/Plone/dexterity-types/Document/@@behaviors)
* Check the box next to *Lead Image* and save.