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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100ba04820a85acbbfab1c72a9fb0b17fd40480ae017a286073997ec671aeee9 |
|
MD5 | a500383db8f24c308f3cdb8e7bf2685b |
|
BLAKE2b-256 | a9ff647e6861d51c69fb8a9346f1ff3671af513520b05379badb7605c3b2784e |
Hashes for secretflow_doctools-0.3.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea445b7e2c8cf1b6645b085a335dc6baa25ad6d6cbbd2a4112555b4a612bf105 |
|
MD5 | ce79c26a9b36a7acea1782d905c9ef04 |
|
BLAKE2b-256 | 4d5644f7b0281fc0e6e915c8eb2ce2632ab7c40ae13684538fcf91454b140cef |
Hashes for secretflow_doctools-0.3.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc33b3bab475b255e565a561a9038bba31d4ddf75892fd57d319ec39175229a5 |
|
MD5 | dc5e6c5d3d649e1d0bf0592eae89ed94 |
|
BLAKE2b-256 | 879aa245f03fe4ac0c2b6de89e661f73d6ae6337034011859f515325400662c8 |
Hashes for secretflow_doctools-0.3.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34ddd02564b39c6785344bca358e66c2af16dfa8af956c72f9eaf2f7f4026f0 |
|
MD5 | fc8cf05cbda7e24382de3245ce166462 |
|
BLAKE2b-256 | 8482c0d58f04d4e4fedb163a058dbcc9c9e9f37ef2bec4a63019f445a02d70ed |
Hashes for secretflow_doctools-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f572cff9cec1870989da72a086659670263f6371db354b686ea9c73b85d32b22 |
|
MD5 | 7a2c0b764a67a031c192c03864e592d2 |
|
BLAKE2b-256 | 9818aa90b10d604f6f2da1596b103bb3f412c204890bd939ee40dc924ed47f1e |