从glob表达式生成多个文件的模块的sphinx扩展
项目描述
sphinxcontrib-autofile
从glob表达式生成多个文件的模块的sphinx扩展。
使用方法
以MyST为例。rst类似。
docs/conf.py
:
# ...
extensions = [
"myst_parser",
"sphinxcontrib.autofile",
]
# ...
docs/index.md
:
```{autofile} ../src/sphinxcontrib/autofile/*.py
:members:
```
它将被翻译成
```{eval-rst}
.. automodule:: sphinxcontrib.autofile
:members:
.. automodule:: sphinxcontrib.autofile.directive
:members:
... (more modules)
```
当你的模块很多时,它会节省你的时间。
自定义
```{autofile} ../src/sphinxcontrib/autofile/*.py
:prefix: your_prefix
:template: /the/path/of/your/template
```
替代方案
项目详情
下载文件
下载适用于您平台的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。
源代码分发
sphinxcontrib-autofile-0.0.2.tar.gz (24.2 kB 查看哈希值)
构建分发
关闭
sphinxcontrib-autofile-0.0.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5ac1b17f04b86106ec2c524c9e511ec746754c6bcdf50c2a82e2268b5f20e864 |
|
MD5 | 3afacf45aaba97663ef31ea502dfc71c |
|
BLAKE2b-256 | 94a08109bb97dcd8fea9fc4aa51ac05b632e18da2883f225ef0978a5d9fa373b |
关闭
sphinxcontrib-autofile-0.0.2-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b5d3df354080de635e41f57247829b01097be74e44f4fcd0ebe0f9b3a981a00f |
|
MD5 | 3aa5a2626eb0fded0eb2b9010d18259c |
|
BLAKE2b-256 | adaa78c2b3b06687d4af800fd280b2a21cef358773c672b45378b751b557bf44 |