fix-sphix-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFix errors and warnings in Sphinx docs build
修复Sphinx文档构建中的错误与警告
This skill iterates over Sphinx docs build and attempt to fix easily addressable errors and warnings.
本Skill会遍历Sphinx文档构建过程,尝试修复易于解决的错误和警告。
Steps
步骤
- Run Sphinx build: , but with a twist: figure out how to abort after 60 second do not try to wait for the full build takes too long.
(source ./.venv/bin/activate && cd ./docs/ && make html) - Check the output warnings and errors you could attempt to fix. DON'T TOUCH AUTO GENERATED RST FILES. These are in folders like
_autosummary. These folders will be recreated by user with a special command you do not know._autosummary_d2 - Report made changes
- Ask a permission to open a PR
- 运行Sphinx构建:,但有一点需要注意:要想办法在60秒后终止构建,不要等待完整构建完成,因为耗时太长。
(source ./.venv/bin/activate && cd ./docs/ && make html) - 检查输出中的警告和错误,尝试修复这些问题。请勿修改自动生成的RST文件,这些文件位于文件夹(如
_autosummary)中。用户会通过一个你不知道的特殊命令重新生成这些文件夹。_autosummary_d2 - 报告已做出的修改
- 请求许可以创建PR