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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc4f4f0369b0ad96727418790651f43b8d2a7cd82144cf21b4fb8e0cf18b61e |
|
MD5 | 83721e8a6c7ff2e87979bc8b38b7ca3d |
|
BLAKE2b-256 | b03f5d3c8c30bdac2cd94548c334b4c5190d202a70aba66025a20e6c09496d00 |
Hashes for secretflow_doctools-0.4.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6739469e950c561409b6b59e73290ed8c73105a35f28e34bee5f60a831436a48 |
|
MD5 | 58ac0effe38dcb8628165af1a3da29f2 |
|
BLAKE2b-256 | 276a5a7f8da2352d4c2a3dc063dd2f9559eb86a79b299835559e5d8eda6297aa |
Hashes for secretflow_doctools-0.4.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e403587e9e224c9ed5379e043db0f07fe64d3589b6875276fd49ee63032c32 |
|
MD5 | b0deb95902460276084abd097d16a0ee |
|
BLAKE2b-256 | 54fb99b16b5cf175afdd238be8c58c1d03d49882b6eefec11eae52915775eb3b |
Hashes for secretflow_doctools-0.4.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b37218516162a5a16176b539a0b848f0ec71d8db1d07093c804c279ef7fe47 |
|
MD5 | 8b7c4dbe943447160d09eac902f5970b |
|
BLAKE2b-256 | 70a0dfdf882d48d04b9babbd25c468527476492f6e5d4a9b28425feaa0acaff1 |
Hashes for secretflow_doctools-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2b8011fe54599816c3b2f7c3ec77a7ba6d4913f9aa99fa7863e42875186736 |
|
MD5 | 2ca6bb78aded9f4cf515788a7995323d |
|
BLAKE2b-256 | a4838182c18d2a4553ea1126dc154c0c08c3f652121f31684e9bdb8ff4d0a212 |