Content-Length: 295281 | pFad | http://github.com/python/python-docs-zh-cn/commit/0147e2bd42249a90a3c342bc3d77b5ccc9ea0807

57 Use docsbuild-scripts to build · python/python-docs-zh-cn@0147e2b · GitHub
Skip to content

Commit 0147e2b

Browse files
authored
Use docsbuild-scripts to build
1 parent 7ab7c93 commit 0147e2b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/scripts/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ error() {
1313
cd cpython/Doc || exit 1
1414
mkdir -p locales/"$LOCALE"/
1515
ln -sfn "$(realpath ../../docs)" locales/"$LOCALE"/LC_MESSAGES
16+
17+
cd ../../docsbuild/
1618
pip3 install -q -r requirements.txt
17-
make html SPHINXOPTS="-D language=$LOCALE -D gettext_compact=0 -W --keep-going" 2> >(error)
19+
python3 ./build_docs.py --quick --build-root ./build_root --www-root ./www --skip-cache-invalidation --language $LOCALE --branch $VERSION
20+
# make html SPHINXOPTS="-D language=$LOCALE -D gettext_compact=0 -W --keep-going" 2> >(error)

.github/workflows/sync.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
with:
3030
ref: ${{env.VERSION}}
3131
path: docs
32+
- name: Checkout Build Scripts
33+
uses: actions/checkout@v3
34+
with:
35+
ref: ${{env.VERSION}}
36+
path: docsbuild
3237
- name: prepare
3338
run: .github/scripts/prepare.sh
3439
- name: update

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/python-docs-zh-cn/commit/0147e2bd42249a90a3c342bc3d77b5ccc9ea0807

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy