我需要为每个模块创建一个 sphinx 项目,
每个模块共享一些共同的 rsts,如公司信息、许可证等。
我的项目树是这样的:
./conf.py
./index.rst
./intro.rst
./about.rst
./device1/conf.py
./device1/index.rst
我在 ./device1/index.rst 中写了这个,但它不起作用,我如何导入父 rst 文件?
.. toctree::
:maxdepth: 1
../intro
../about