【发布时间】:2013-07-27 11:14:44
【问题描述】:
所以我有一个狮身人面像生成的网站。它的一部分在原始 html 中,由 sphinx + jinja 解析。 现在我想在原始 html 中使用指向 toc-tree 某些部分的链接。 有没有办法做到这一点? 目前我正在退出原始 html 并使用 rst。 这看起来像
.. raw:: html
<small class="float-right example-links">
:ref:`Examples<general_examples>`
.. raw:: html
</small>
不是这么丑,它还会把生成的 html 弄乱。 有没有更好的方法来做到这一点?
谢谢:)
【问题讨论】:
标签: jinja2 python-sphinx restructuredtext