Documentation toolchain for SecretFlow
Project description
@secretflow/doctools
Documentation toolchain for SecretFlow | SecretFlow 文档构建工具
English | 简体中文
What is this?
This repository contains packages for building documentation for SecretFlow projects. It provides a Sphinx extension to build MDX (Markdown + JSX) documents from a Sphinx project. It also has several Node packages for integrating MDX into Dumi.
Install
Install doctools with pip
:
pip install secretflow-doctools
Use
Add doctools as a Sphinx extension to your Sphinx project's conf.py
:
extensions = [
# ...
"secretflow_doctools",
]
Then specify mdx
as the builder:
python3 -m sphinx -b mdx [...] [sourcedir] [outputdir]
Or use make
:
make mdx
License
English | 简体中文
这是什么?
这个仓库包含了用于构建 SecretFlow 项目文档的工具。它提供了一个 Sphinx 扩展,用于从 Sphinx 项目构建 MDX(Markdown + JSX)文档。它还包含了一些 Node 包,用于将 MDX 集成到 Dumi 中。
安装
使用 pip
安装这个工具:
pip install secretflow-doctools
使用
将 doctools 作为 Sphinx 插件添加到你的 Sphinx 项目的 conf.py
中:
extensions = [
# ...
"secretflow_doctools",
]
然后将 mdx
指定为 builder:
python3 -m sphinx -b mdx [...] [sourcedir] [outputdir]
或者使用 make
:
make mdx
许可证
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for secretflow_doctools-0.6.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab25ffd82d2756c9720e95820bf7b0f2974ce0933394fdf70c43415240ec931d |
|
MD5 | 9b6b5b0f2718ed120f1b3f679378773b |
|
BLAKE2b-256 | 2747ca3f2e9f2d9068ea453650d847258e29c2ba41813c4c801c2fc0c0595c02 |
Hashes for secretflow_doctools-0.6.2-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e350e2b38371e135d87b453d2836348228b69d43392aca077ed7b66bc89edec |
|
MD5 | 1018235753c60fa7d0828cf30d178044 |
|
BLAKE2b-256 | 9e26d0369faf83bf55a25fbb289572498eafec27871d1b5ad7a65a94e933a8b7 |
Hashes for secretflow_doctools-0.6.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a6e5f7dbb14fd3048da5485089d0c2d3051d8a3d472ab9c910942e022368014 |
|
MD5 | 9afa904da6760f6d2acedaec070e9b91 |
|
BLAKE2b-256 | 8bc091ee22ba21e09ac4cc72c40f4a972185cac0af6d531e15dc5e50f2489869 |
Hashes for secretflow_doctools-0.6.2-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c69a01995686adda363cea956f983d96045d529b584ae1c4219b81c65c70830 |
|
MD5 | d4410f51d7807a5e68df9a2ce18ff56a |
|
BLAKE2b-256 | 102705cdd934224f4b49e148eea26d1893503af1167d7f29eff493f4f1c59433 |
Hashes for secretflow_doctools-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 941fcaf8736dc3bee3047fa7b9c07ad0493fd418c1b5eb2a18d975bd62ff00e6 |
|
MD5 | 0e91301c0a80da2740e7b1af374851f8 |
|
BLAKE2b-256 | ecf7aada2176d90975ee0f035decae163465062b9965cf27c20295ab3bc85e18 |