How to create a custom HTML div in Sphinx that isn't automatically nested within a subsubsection?

被刻印的时光 ゝ 提交于 2019-12-06 09:02:17

Untested. Try a super-hacky .. raw:: directive, where you would close the current section, then open a new unclosed <div>:

.. raw:: html

    </div>
    <div id="my custom container">

Then resume using reStructured text markup. This would "trick" Sphinx into thinking that the current section is still open and it would still add a closing </div> after the rest of your markup until it starts parsing the next section.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!