diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 76405528..0abbc1af 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -32,6 +32,11 @@ jobs: path: Doc/locales/ru/LC_MESSAGES - run: git pull working-directory: ./Doc/locales/ru/LC_MESSAGES + - name: Install SVG converter for LaTeX build + if: matrix.format == 'latex' + run: | + sudo apt-get update + sudo apt-get install -y librsvg2-bin - uses: sphinx-doc/github-problem-matcher@v1.1 - run: make -e SPHINXOPTS="--color -D language='ru' -W --keep-going" ${{ matrix.format }} working-directory: ./Doc diff --git a/.github/workflows/transifex-pull.yml b/.github/workflows/transifex-pull.yml index d3dcfe3e..25a11255 100644 --- a/.github/workflows/transifex-pull.yml +++ b/.github/workflows/transifex-pull.yml @@ -49,13 +49,12 @@ jobs: p = Path("transifex-util.py") old = '_call("make -C cpython/Doc/ gettext")' - new = '_call("make -C cpython/Doc/ JOBS=1 gettext || make -C cpython/Doc/ JOBS=1 build BUILDER=gettext")' + new = '_call("make -C cpython/Doc/ venv")\n _call("make -C cpython/Doc/ JOBS=1 gettext || make -C cpython/Doc/ JOBS=1 build BUILDER=gettext")' s = p.read_text() if old not in s: raise SystemExit("Expected pattern was not found in transifex-util.py") p.write_text(s.replace(old, new)) PY - grep -n "JOBS=1" transifex-util.py - run: ./transifex-util.py recreate_tx_config --language ru --project-slug python-newest --version ${{ matrix.version }} env: TX_TOKEN: ${{ secrets.TX_TOKEN }} @@ -67,14 +66,14 @@ jobs: run: | git config --local user.email github-actions@github.com git config --local user.name "GitHub Action's update-translation job" + - run: git add . ':!transifex-util.py' - name: Filter files run: | - ! git diff -I'^"POT-Creation-Date: ' \ - -I'^"Language-Team: ' \ - -I'^# ' -I'^"Last-Translator: ' \ - --exit-code \ + ! git diff --cached -I'^"POT-Creation-Date: ' \ + -I'^"Language-Team: ' \ + -I'^# ' -I'^"Last-Translator: ' \ + --exit-code \ && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0 - - run: git add . ':!transifex-util.py' - run: git commit -m 'Update translation from Transifex' if: env.SIGNIFICANT_CHANGES == '1' - uses: ad-m/github-push-action@master diff --git a/README.rst b/README.md similarity index 72% rename from README.rst rename to README.md index 84c8ca0c..1cb142bf 100644 --- a/README.rst +++ b/README.md @@ -1,11 +1,8 @@ -RU Translation of the Python Documentation -============================================= +# RU Translation of the Python Documentation -All translations are done on transifex. -https://www.transifex.com/python-doc/public/ +All translations are done on [Transifex](https://explore.transifex.com/python-doc/python-newest/). -Documentation Contribution Agreement ------------------------------------- +## Documentation Contribution Agreement NOTE REGARDING THE LICENSE FOR TRANSLATIONS: Python's documentation is maintained using a global network of volunteers. By posting this @@ -26,12 +23,9 @@ Python community is welcomed and appreciated. You signify acceptance of this agreement by submitting your work to the PSF for inclusion in the documentation. -Contributing to the Translation -------------------------------- +## Contributing to the Translation -Join the Russian team on transifex to start. +Join the Russian team on Transifex to start. You're recommended to join -`our Telegram channel`__ first. - -__ https://t.me/py_docs_ru +[our Telegram channel](https://t.me/py_docs_ru) first.