Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

optimize build time#319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Dumeng merged 16 commits intopython:masterfromDumeng:master
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
cd2b341
Merge pull request #1 from python/master
DumengAug 3, 2023
7f439f0
Add issue template
DumengAug 3, 2023
8530ab1
Add tx stat
DumengAug 3, 2023
77a36b1
Update json output
DumengAug 3, 2023
94ebe6a
Fix dir path
DumengAug 3, 2023
af4aaaa
Update readme badge
DumengAug 3, 2023
7b67886
Fix typo
DumengAug 3, 2023
156beca
Add update time
DumengAug 4, 2023
7c3ff3d
Merge branch 'master' into master
DumengAug 4, 2023
6dd2503
Add cache layer
DumengAug 4, 2023
3dff838
Restore git timestamp for enabling build cache
DumengAug 4, 2023
2896f1d
Restore git timestamp with another method
DumengAug 4, 2023
7e2b982
Restore git timestamp
DumengAug 4, 2023
a2f1df8
Update only Doc dir
DumengAug 4, 2023
3c9860e
Run dummy build instead
DumengAug 4, 2023
c2b48e2
qMerge branch 'master' of https://github.com/python/python-docs-zh-cn…
DumengAug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion.github/scripts/build.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,4 +14,4 @@ cd cpython/Doc || exit 1
mkdir -p locales/"$LOCALE"/
ln -sfn "$(realpath ../../docs)" locales/"$LOCALE"/LC_MESSAGES
pip3 install -q -r requirements.txt
make html SPHINXOPTS="-D language=$LOCALE -D gettext_compact=0 -W --keep-going" 2> >(error)
sphinx-build -b dummy -d build/doctrees -j auto -D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >(error)
16 changes: 16 additions & 0 deletions.github/scripts/update.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
#!/bin/bash

cd cpython || exit 1

# Restore git timestamp for enabling build cache
rev=HEAD
for f in $(git ls-tree -r -t --full-name --name-only "$rev" Doc) ; do
touch -d $(git log --pretty=format:%cI -1 "$rev" -- "$f") "$f";
done

cd ..
cd docs || exit 1

# Restore git timestamp for enabling build cache
rev=HEAD
for f in $(git ls-tree -r -t --full-name --name-only "$rev") ; do
touch -d $(git log --pretty=format:%cI -1 "$rev" -- "$f") "$f";
done

$(realpath ../tx) pull --languages "$LOCALE" -t --use-git-timestamps --workers 25 --silent
9 changes: 9 additions & 0 deletions.github/workflows/sync.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,8 +38,17 @@ jobs:
run: .github/scripts/update.sh
env:
TX_TOKEN: ${{ secrets.TRANSIFEX_APIKEY }}
- uses: actions/cache/restore@v3
with:
path: cpython/Doc/build
key: cache-${{ inputs.version }}-${{ github.run_id }}
restore-keys: cache-${{ inputs.version }}-
- name: build
run: .github/scripts/build.sh
- uses: actions/cache/save@v3
with:
path: cpython/Doc/build
key: cache-${{ inputs.version }}-${{ github.run_id }}
- name: stat
run: python .github/scripts/tx_stat.py > ./docs/.stat.json
env:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp