taolib.flows.tasks.doc#
Attributes#
Functions#
Module Contents#
- taolib.flows.tasks.doc.build(ctx: invoke.context.Context, opts: str = '', language: str | None = None, source: str | None = None, target: str | None = None, nitpick: bool = False)[源代码]#
构建项目的 Sphinx 文档。
- 参数:
opts -- Extra sphinx-build options/args
nitpick -- Build with stricter warnings/errors enabled
source -- Source directory; overrides config setting
target -- Output directory; overrides config setting
- taolib.flows.tasks.doc.intl(ctx: invoke.context.Context, language: str = 'en')[源代码]#
Update the POT file and invoke the sphinx-intl update command
Only used with invoke intl.update
- taolib.flows.tasks.doc.doctest(ctx: invoke.context.Context)[源代码]#
Run Sphinx' doctest builder.
This will act like a test run, displaying test results & exiting nonzero if all tests did not pass.
A temporary directory is used for the build target, as the only output is the text file which is automatically printed.