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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c8178e2f7b2bb0824c7de3a8d26c2888a50b62c6ab96e4f488232b5b156cfb |
|
MD5 | 0a5cc31595a231143f2421eecc2815dd |
|
BLAKE2b-256 | 5e5d8b08a20a1972d88ef2e3419818930b0dd899d16d08d9da0a1483491c9a03 |
Hashes for secretflow_doctools-0.5.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6fc87e4fa1b5c30f09547fcddc3bdca5ee6d5a52202ed0d95e34e10b3dd8ae3 |
|
MD5 | cd38fdc58e78ee8fd4c50b5c694a9d88 |
|
BLAKE2b-256 | ae597c14b9a28fb8e30f72a719ac5daaa8a799f29cba9383f2cd1399b56676d3 |
Hashes for secretflow_doctools-0.5.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614742931cc50aa3f5f28b21e47932ddf9a9154c2c204c7ea157800474d3177c |
|
MD5 | 9adcf0336cad8d1c46db44b906c1d609 |
|
BLAKE2b-256 | a2ec78db4c11fcec8df590f2079884cf5fcee6f78972eaeda27467c823ccaf14 |
Hashes for secretflow_doctools-0.5.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | facb0649817848029e650e85ccfda4f834d38f02aa9b796529fb5d5d81563176 |
|
MD5 | 4396301404f437d17bb2ff532c1367ac |
|
BLAKE2b-256 | d86d46da527a5f9b12c1a6b6b414c520cb21606d9f1cbf276ee3be8652f163db |
Hashes for secretflow_doctools-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fbb9d38a2a659789d2e8246444f4f1b0eb73d0a3300e25a24d97ad319c98654 |
|
MD5 | a7ab75bcadcb69a1d24bb81c4a11b421 |
|
BLAKE2b-256 | 493b754f46c08d8fd29a7173d508925c1dd895b3af3b1ba1e917554d7e6297ed |