Content-Length: 4950 | pFad | http://github.com/python/python-docs-zh-cn/pull/392.patch
thub.com
From 5fd206da4273b87e07229881caf09665f5c6ab71 Mon Sep 17 00:00:00 2001
From: Stan Ulbrych
Date: Thu, 31 Jul 2025 19:26:19 +0200
Subject: [PATCH 1/3] Commit
---
.github/workflows/test-translation.yml | 78 ++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
create mode 100644 .github/workflows/test-translation.yml
diff --git a/.github/workflows/test-translation.yml b/.github/workflows/test-translation.yml
new file mode 100644
index 000000000..a594435c1
--- /dev/null
+++ b/.github/workflows/test-translation.yml
@@ -0,0 +1,78 @@
+name: Lint and test build
+on:
+ schedule:
+ - cron: '0 0 * * *'
+ push:
+ branches:
+ - '*'
+ workflow_dispatch:
+ pull_request:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
+ continue-on-error: true
+ steps:
+ - uses: actions/setup-python@master
+ with:
+ python-version: 3
+ - run: pip install sphinx-lint
+ - uses: actions/checkout@master
+ with:
+ ref: ${{ matrix.version }}
+ - uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
+ - run: sphinx-lint
+
+ build-translation:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
+ format: [ html, latex ]
+ steps:
+ - uses: actions/setup-python@master
+ with:
+ python-version: 3.12 # pinned for Sphinx 3.4.3 to build 3.10
+ - uses: actions/checkout@master
+ with:
+ repository: python/cpython
+ ref: ${{ matrix.version }}
+ - run: make venv
+ working-directory: ./Doc
+ - uses: actions/checkout@master
+ with:
+ ref: ${{ matrix.version }}
+ path: Doc/locales/zh-cn/LC_MESSAGES
+ - run: git pull
+ working-directory: ./Doc/locales/zh-cn/LC_MESSAGES
+ - uses: sphinx-doc/github-problem-matcher@v1.1
+ - run: make -e SPHINXOPTS="--color -D language='zh-cn' -W --keep-going" ${{ matrix.format }}
+ working-directory: ./Doc
+ - uses: actions/upload-artifact@master
+ if: success() || failure()
+ with:
+ name: build-${{ matrix.version }}-${{ matrix.format }}
+ path: Doc/build/${{ matrix.format }}
+
+ output-pdf:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
+ needs: [ 'build-translation' ]
+ steps:
+ - uses: actions/download-artifact@master
+ with:
+ name: build-${{ matrix.version }}-latex
+ - run: sudo apt-get update
+ - run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
+ - run: make
+ - uses: actions/upload-artifact@master
+ with:
+ name: build-${{ matrix.version }}-pdf
+ path: .
\ No newline at end of file
From 06901c9606ddc672b7a9c4da735149eae94660f6 Mon Sep 17 00:00:00 2001
From: Stan Ulbrych
Date: Thu, 31 Jul 2025 19:28:12 +0200
Subject: [PATCH 2/3] Commit
---
.github/workflows/test-translation.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/test-translation.yml b/.github/workflows/test-translation.yml
index a594435c1..1b09b74ad 100644
--- a/.github/workflows/test-translation.yml
+++ b/.github/workflows/test-translation.yml
@@ -1,3 +1,5 @@
+# From: python-docs-translations/transifex-automations Sample Workflows
+# For more information, see: https://python-docs-transifex-automation.readthedocs.io/workflows.html
name: Lint and test build
on:
schedule:
From d195a662b1e22c8d1d12b82c969a1b2cd4c292b4 Mon Sep 17 00:00:00 2001
From: BlueGlassBlock
Date: Wed, 6 Aug 2025 23:55:04 +0800
Subject: [PATCH 3/3] chore: fix locale spell
---
.github/workflows/test-translation.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/test-translation.yml b/.github/workflows/test-translation.yml
index 1b09b74ad..20a3f864a 100644
--- a/.github/workflows/test-translation.yml
+++ b/.github/workflows/test-translation.yml
@@ -49,11 +49,11 @@ jobs:
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
- path: Doc/locales/zh-cn/LC_MESSAGES
+ path: Doc/locales/zh_CN/LC_MESSAGES
- run: git pull
- working-directory: ./Doc/locales/zh-cn/LC_MESSAGES
+ working-directory: ./Doc/locales/zh_CN/LC_MESSAGES
- uses: sphinx-doc/github-problem-matcher@v1.1
- - run: make -e SPHINXOPTS="--color -D language='zh-cn' -W --keep-going" ${{ matrix.format }}
+ - run: make -e SPHINXOPTS="--color -D language='zh_CN' -W --keep-going" ${{ matrix.format }}
working-directory: ./Doc
- uses: actions/upload-artifact@master
if: success() || failure()
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/python/python-docs-zh-cn/pull/392.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy