【发布时间】:2021-09-07 11:00:49
【问题描述】:
我有一个基于 Sphinx 的网站,并且有一些特定的页面,我希望在这些页面上显示预定义的 html 文件,这些文件存储在指定目录(如 _static)中。在 Django 中,可以使用 {{%include}} 标签从模板中简单地引用文件,ReStructuredText 是否存在类似的东西?
我想做类似的事情
.. title:: Example Page
=============
Example Page
=============
Introduction to page
<insert html reference to _static folder here>
Description
在建立网站后,将 RST 生成的 html 和指定的 html 文件结合起来。
【问题讨论】:
标签: python html django python-sphinx restructuredtext