docs: use scripts to bypass bugs in the readthedocs build system

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-07-02 19:04:40 +08:00
parent 9f69a755fa
commit 467f4cebc1
2 changed files with 5 additions and 1 deletions

View file

@ -12,7 +12,7 @@ build:
python: "3.8"
jobs:
post_install:
- sed -i -E 's/^ process identity for every yielded instance$/ \0/' "$(python3 -c "print(__import__('psutil').__file__)")"
- bash docs/source/fix-psutil-docstring.sh
# Build documentation in the docs/ directory with Sphinx
sphinx:

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# shellcheck disable=SC2312
exec sed -i -E 's/^ process identity for every yielded instance$/ \0/' "$(python3 -c "print(__import__('psutil').__file__)")"