JSX builder for Sphinx
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 Distributions
Built Distributions
Hashes for secretflow_doctools-0.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9004437f0c46212fce4490942e09151119c9a87a4d2d717d4dc43abb2d2e2f6 |
|
MD5 | 2d804814edc5372e3e4f55701c916e47 |
|
BLAKE2b-256 | 3fe1c911e5119a700c2d1a5475e0e1332830d42865d4f068ee3a792f76a55e8f |
Hashes for secretflow_doctools-0.0.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c1e36599025f39897da96bb70709102579e99a4c914ce982fcb86865e6ddaef |
|
MD5 | 2139dd6a706b1c75b5fcd18ab99e6b8f |
|
BLAKE2b-256 | b5b21bc58e77328d857dab032b203da908f9eb9177e46049175ceb7d8bbe414e |
Hashes for secretflow_doctools-0.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e142d78a31d4c9672a6b023e162934a3b8df591ee2b0c103f573e8858fbeccf5 |
|
MD5 | a74f891c30e3d81dd572e8f09af3232d |
|
BLAKE2b-256 | e641f8a3b65830f4876f88875502c4e6bd4f32e3dcd7b2bfcd3a0cec9db339b6 |
Hashes for secretflow_doctools-0.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ff06e492028ac072b0ff8d27bfe41277a2dd1b84ccd870535a8ade1c0959de |
|
MD5 | e3f20d70c94a43e719c76de2847f18fc |
|
BLAKE2b-256 | 3c78f369c8247000d9d22fb14b798b3eeb6a6880981654d200f701e602eee340 |
Hashes for secretflow_doctools-0.0.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d8dc488303faba5337090dbb32be5013b118447e021712b77bc27f740cc61b5 |
|
MD5 | 155fa6b9ef83441711463d3b9b7fb10d |
|
BLAKE2b-256 | 8408ba6502b947d45a4fcc25d6e4e75f0d0e8067e2a437c00c1d6386e7dd9de1 |
Hashes for secretflow_doctools-0.0.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61b3ae582e1762ae56b108b115d72457cb454a6f137b3486af2a68f101f2d89 |
|
MD5 | 18634383c0d39ea8dde4abd45bc0d7c2 |
|
BLAKE2b-256 | 04ec0bea7321cf316367cdbacc6cfc544ff4f34a15d0828fafc7b303b8539944 |
Hashes for secretflow_doctools-0.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e8de58e5b8e03cd063b1aadc6a874310e6d5a9741b84d1bbf789dd83a0deca |
|
MD5 | 6b45f46e7d6436b9d7391f81938f0c8f |
|
BLAKE2b-256 | a2fd1f786e09c796f2b1074412ec9b26b9b6c5a90851bc14a894601027808544 |
Hashes for secretflow_doctools-0.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea220205f09ef4787b5397f119d3cf403b0c9a7b1911f79fabd0a10333d37c6c |
|
MD5 | 91c39670bf8c46bfcb07b2404790eaeb |
|
BLAKE2b-256 | f69122d07a5b1714cff91cdeb31f9346f2aa3249499397f4770fc2a401750d09 |
Hashes for secretflow_doctools-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14a9187e28a95d2e43c61b13dee9a161ac27cc403c8839c55b6331125ac1859 |
|
MD5 | 2b120d1b6ae21b3e3cd58e1a3c864529 |
|
BLAKE2b-256 | 858417ed8cc59865b2b0d9c7e69a2552338c66054e80edf5608407f8bf3d99fb |
Hashes for secretflow_doctools-0.0.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a235ba6bf3ce449935fdc88d0c07327723976b78c19443a978b2eb6aa5ff4a79 |
|
MD5 | b80ebea2abc8e399946be28724a7bfbe |
|
BLAKE2b-256 | 0a82f433f710e905afe475d7d52cb05a17e38401fdb73fbdce1842f8acce1862 |
Hashes for secretflow_doctools-0.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5e0e22f9bef3ef077c3cb3fa578200c1422245dc7453b89515f1981d507fa6 |
|
MD5 | 216e514b823dc11e6d891d854ee80540 |
|
BLAKE2b-256 | 9858c95690f269749dd09875d6185f8707024fbbeb3dc309f78001cf1a257ddd |
Hashes for secretflow_doctools-0.0.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf44bfe256e839af9bea18d25ae0ac20495e7fb246306865fb20c876e7df7e7 |
|
MD5 | 9cac9435f5490a4d56ca1da900d00eb5 |
|
BLAKE2b-256 | fe9a2445ac78110e412b032087b46eab9f8a366f615228e433161b629e62d084 |
Hashes for secretflow_doctools-0.0.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44342e7381ca7fd2e80a1cd4cff7e3dfc4f944900e0d56fa77123124da2161f |
|
MD5 | e472b26406909e1618e241d505dbda4a |
|
BLAKE2b-256 | 6f6ff72aee4a0eafe1ecc228ba35d3354bf61edc09ff5bf6d155c18adbed5c77 |
Hashes for secretflow_doctools-0.0.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f932bbffac52305febb5aa49036e51d3c0b19b019b8152b41aff49d161f5716f |
|
MD5 | 87073a7a6c8120e1da83426e8aa7b6a7 |
|
BLAKE2b-256 | 111fa8baa22db8d436428502dc1b9ca1b2b6e97621e1d9418203a3d0af8e7ca2 |
Hashes for secretflow_doctools-0.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f01e9de298e6d02b635209ed7094212c4de2f9291821524f8383f4c4e8687a7 |
|
MD5 | aa8be84c798af1c1309e1622a42fe56d |
|
BLAKE2b-256 | 8d97ddc5262fa74d73be9018e79256102eeb1f1e8c15213a756a10e39db51b1d |
Hashes for secretflow_doctools-0.0.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eacf08ec30339afbf026556a860d19e3f45cd65a5317cd25cc2aafec00b4889 |
|
MD5 | 75d16e2384865d395a33a6dbf07de8a7 |
|
BLAKE2b-256 | 37aab21cea938d1a61c2a29753a7a7bf2c054f2691dcb655abb42170e58f6265 |