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.4.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59523d64a69b4ec7416f241ac3a3efc3ace7debf7afb916291e97b3127e62bc4 |
|
MD5 | c5fa2e38d5d1076b52adff68c8cee2cc |
|
BLAKE2b-256 | df2323a102199ac973ba34053873abf1cd88279f1e46ccff680e03acda4c009d |
Hashes for secretflow_doctools-0.4.3-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4ffa783ac200c1108e04d0888a060c231b1b966bf546be384d7593b6c48425 |
|
MD5 | 857f25def03f9199d078fd7e4311b3b4 |
|
BLAKE2b-256 | 2202cb4d031fd761a144e33b5baac49149638ac6cf702e3251cba129b4078618 |
Hashes for secretflow_doctools-0.4.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cf212c0a793d21721ea3e85fb65a47677d97b6ff33549d8df9f75dd6f2b130 |
|
MD5 | 7727521510b8c6712cf13bb2e1fc5880 |
|
BLAKE2b-256 | 66c6b95166a45cad52e51f3eb274256e05d9e71de56fe5a66b68919e05e9c9d7 |
Hashes for secretflow_doctools-0.4.3-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88087e51ef590f1b7a05aa32055357ccd02272b71f7e6dd719133c2b513ff915 |
|
MD5 | a3f48d6d92dd8cad5b32c4c8bb9dc9ff |
|
BLAKE2b-256 | bc66eacdbc6dc966052f10607e2c5851dadfdd7dee1d810269fcee291a615bfe |
Hashes for secretflow_doctools-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2379dc740cb497067ae8e179b4c26639bd1df90f1a8dc881fa11ee3dc056159 |
|
MD5 | a32fef4e84b3e85318107ef3898b689e |
|
BLAKE2b-256 | 84ad154f76ded8d199fe949c519a0fdb63fe3832013d0ad707a7dcb5c2864b09 |