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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84b5f3bae21966110cde50c80e4efbbeb960080173898a0e2d9a3e0e59ee4040 |
|
MD5 | 2d0aebe11d75ffd51f14731f94b1c95e |
|
BLAKE2b-256 | 189c3ded2ab9565dee6582bb060335dc6959b48943c5ba7cdab90f5060544102 |
Hashes for secretflow_doctools-0.2.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21de1fe753150945d975d7472f5093c3761c0e5d0c3653ae398ef93cbe98d286 |
|
MD5 | 9b4baa057ef8549b849300e8bfe2f414 |
|
BLAKE2b-256 | 156d5cfa3882208f591eb8fec531e90ea2b769546664972c41652d946cc94113 |
Hashes for secretflow_doctools-0.2.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0173f5561b257a424b00602efa8834950fb3449f3eb0cd2187b0bb632c352ba |
|
MD5 | be88ec312f2238d254c87dffb3a51335 |
|
BLAKE2b-256 | 6dacc4d8cc6b783d692e2c9ffef9e0d02ba12e8c68a5ebf98a1cc39ab1d682f5 |
Hashes for secretflow_doctools-0.2.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 107364d163451f89f181e9e7735dbea43eaa036c5dc9073a46572b43ca380ee9 |
|
MD5 | 18e086db5709d0be374656b08009e2c0 |
|
BLAKE2b-256 | b9dedc046f42e348a293c7db841979300fcee3c34685430be38a1a4ff2635219 |
Hashes for secretflow_doctools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0e8f938cb3e7fdd10350bc3181d5fa3cc8b73d21a481de5eee59ba0ac08230 |
|
MD5 | 5757bdad592a4e9c372d908178ebd35c |
|
BLAKE2b-256 | 7e59e639641fdc5d9a24c4c4214599feec3dfa771baa68ef2f465c3f7c012c84 |