Skip to main content

Documentation toolchain for SecretFlow

Project description

@secretflow/doctools

SecretFlow 文档构建工具。

安装

pip install secretflow-doctools

使用

secretflow_doctools 以 Sphinx 插件的形式提供,在你的 conf.py 中添加插件:

extensions = [
    # ...
    "secretflow_doctools",
]

Sphinx 命令:

python -m sphinx -b mdx source build/mdx

其中:

  • -b mdx —— 生成 MDX (Markdown + JSX) 文件,即本插件的主要功能
  • source —— 文档源文件根目录(包含 conf.py 文件的目录)
  • build/mdx —— 输出目录,可以是任意目录

其余 CLI 选项和 sphinx-build 一致

或者使用 Makefile:

make mdx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secretflow_doctools-0.1.0.tar.gz (50.4 MB view hashes)

Uploaded Source

Built Distributions

secretflow_doctools-0.1.0-py3-none-win_amd64.whl (14.5 MB view hashes)

Uploaded Python 3 Windows x86-64

secretflow_doctools-0.1.0-py3-none-manylinux_2_17_x86_64.whl (17.6 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

secretflow_doctools-0.1.0-py3-none-macosx_10_9_x86_64.whl (18.1 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

secretflow_doctools-0.1.0-py3-none-any.whl (50.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page