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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f230b221a28b9e8ab5203052fe422af258014c4612a091b4283aec416601ca2 |
|
MD5 | 65997c27b7763df7d497b74d40b8eb59 |
|
BLAKE2b-256 | 75068b98bd550070498919a8b2368ea2b36f528149eb60cae81cc42a770c59c5 |
Hashes for secretflow_doctools-0.6.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7e5e7cf5d329d84f73d76e92c436575eb62ef9158984b7dff5b0e885e91316 |
|
MD5 | b294d08180effc5960183db5963da55f |
|
BLAKE2b-256 | 127f0b85385d58f5f5815de8d3ab54f9773a845822d74110eec7c732b75495e1 |
Hashes for secretflow_doctools-0.6.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9786d834c959d9f6a01a04871c3eb97eccf0c5cc0e08ce392b2481e2c5cb9ab0 |
|
MD5 | 9468101015cba0627cb1788dbbd0c813 |
|
BLAKE2b-256 | 1cd580f929bd9e24a1d2458c819a2169d9b69f99d9386dc83c971e02410f668a |
Hashes for secretflow_doctools-0.6.1-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74a3bf04f89fdc22bd94d7aa41655a268484f468e6c82cf45da5b64069a5f660 |
|
MD5 | 8356c0c7fba4430c2312fe0d6c155e8f |
|
BLAKE2b-256 | e688838cd2c2eafe9891243f21e07784f183cca41f80e87d9f05638f05a8231e |
Hashes for secretflow_doctools-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca8d589b3346664c7d312933e599756bf2af7c3668ca5a74f810a535982105c |
|
MD5 | c1f4e04a5772076b4466edbeecec19ff |
|
BLAKE2b-256 | 14830e03ba2ab23349cddabe44ec317459131f16b7136b6506817647f35f257a |