File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # issue および pull request について
2+
3+ ドキュメントの未訳の部分や誤訳を見付けて、issue や pull request を作ろうとしてくれた人達へ感謝いたします。
4+
5+ これまでの経緯により、issue は [ python-doc-ja レポジトリの issues] ( https://github.com/python-doc-ja/python-doc-ja/issues )
6+ に集約することにしています。
7+ このレポジトリではなく、python-doc-ja レポジトリで issue の作成をお願いします。
8+
9+ このレポジトリは Transifex にある翻訳データから生成された .po ファイルを保存するためのものです。
10+ そのため pull request をマージしても、そのままでは Transifex には反映されません。
11+ (反映されているとしたら、それは管理者により手作業で Transifex に入力されているのです。)
12+
13+ 現時点では pull request 自体を受け付けず、作成された pull request はマージせずに閉じることとしますので、悪しからず。
14+ (将来的に pull request を受け付けるようになる可能性はあります。)
Original file line number Diff line number Diff line change 1+ # issue および pull request について
2+
3+ ドキュメントの未訳の部分や誤訳を見付けて、issue や pull request を作ろうとしてくれた人達へ感謝いたします。
4+
5+ これまでの経緯により、issue は [ python-doc-ja レポジトリの issues] ( https://github.com/python-doc-ja/python-doc-ja/issues )
6+ に集約することにしています。
7+ このレポジトリではなく、python-doc-ja レポジトリで issue の作成をお願いします。
8+
9+ このレポジトリは Transifex にある翻訳データから生成された .po ファイルを保存するためのものです。
10+ そのため pull request をマージしても、そのままでは Transifex には反映されません。
11+ (反映されているとしたら、それは管理者により手作業で Transifex に入力されているのです。)
12+
13+ 現時点では pull request 自体を受け付けず、作成された pull request はマージせずに閉じることとしますので、悪しからず。
14+ (将来的に pull request を受け付けるようになる可能性はあります。)
Original file line number Diff line number Diff line change 1+ # issue および pull request について
2+
3+ ドキュメントの未訳の部分や誤訳を見付けて、issue や pull request を作ろうとしてくれた人達へ感謝いたします。
4+
5+ これまでの経緯により、issue は [ python-doc-ja レポジトリの issues] ( https://github.com/python-doc-ja/python-doc-ja/issues )
6+ に集約することにしています。
7+ このレポジトリではなく、python-doc-ja レポジトリで issue の作成をお願いします。
8+
9+ このレポジトリは Transifex にある翻訳データから生成された .po ファイルを保存するためのものです。
10+ そのため pull request をマージしても、そのままでは Transifex には反映されません。
11+ (反映されているとしたら、それは管理者により手作業で Transifex に入力されているのです。)
12+
13+ 現時点では pull request 自体を受け付けず、作成された pull request はマージせずに閉じることとしますので、悪しからず。
14+ (将来的に pull request を受け付けるようになる可能性はあります。)
Original file line number Diff line number Diff line change 1+ secrets_3.8.tar
Original file line number Diff line number Diff line change 1+ dist : xenial
2+ language : python
3+ python : ' 3.7'
4+ branches :
5+ only :
6+ - 3.7
7+ env :
8+ global :
9+ # branch name of python-docs-ja repository
10+ - DOCS_BRANCH=3.7
11+ # branch name of cpython repository
12+ - CPYTHON_BRANCH=3.7
13+ # branch name of cpython-doc-catalog repository
14+ - CATALOG_BRANCH=catalog-3.7
15+ # Transifex project name
16+ - TRANSIFEX_PROJECT=python-37
17+ # Directory where repositories are cloned
18+ - BASEDIR="$(dirname ${TRAVIS_BUILD_DIR})"
19+ # Number of parent commits
20+ - NUM_PARENTS=$(git log --pretty=%P -n 1 HEAD | awk '{ print NF }')
21+ install :
22+ - pip install sphinx
23+ - pip install blurb
24+ - pip install transifex-client
25+ - pip install sphinx-intl
26+ before_script :
27+ - build_type=$(bash ${TRAVIS_BUILD_DIR}/scripts/determine-build-type)
28+ - export build_type
29+ script :
30+ - bash ${TRAVIS_BUILD_DIR}/scripts/${build_type}/main.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ if [[ " ${TRAVIS_EVENT_TYPE} " == " push" ]]; then
5+ if [[ ${NUM_PARENTS} == 1 ]]; then
6+ echo push
7+ else
8+ echo pr-merge
9+ fi
10+ elif [[ " ${TRAVIS_EVENT_TYPE} " == " pull_request" ]]; then
11+ echo pr
12+ elif [[ " ${TRAVIS_EVENT_TYPE} " == " api" ]]; then
13+ # do not build
14+ echo " "
15+ elif [[ " ${TRAVIS_EVENT_TYPE} " == " cron" ]]; then
16+ echo push
17+ fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ bash ${TRAVIS_BUILD_DIR} /scripts/${build_type} /prepare-build_3.8
5+ bash ${TRAVIS_BUILD_DIR} /scripts/${build_type} /upload-catalog
6+ bash ${TRAVIS_BUILD_DIR} /scripts/${build_type} /renew-catalog-template
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ ls -la ${BASEDIR}
5+ git config --global user.email " travisci-build-bot@example.com"
6+ git config --global user.name " Autobuild bot on TravisCI"
7+ git checkout ${DOCS_BRANCH}
8+
9+ # extract secrets
10+ cd ~
11+ openssl aes-256-cbc -K ${encryption_38_K} -iv ${encryption_38_iv} -in " ${BASEDIR} /python-docs-ja/secrets_${DOCS_BRANCH} .tar.enc" -out ~ /secrets_${DOCS_BRANCH} .tar -d
12+ tar xvf ~ /secrets_${DOCS_BRANCH} .tar
13+ rm ~ /secrets_${DOCS_BRANCH} .tar
14+ chmod 600 ~ /.ssh/python-docs-ja_${DOCS_BRANCH}
15+ chmod 600 ~ /.ssh/cpython-doc-catalog_${CATALOG_BRANCH}
16+
17+ # enable using plural deploy keys for repositories
18+ # Hack from: https://gist.github.com/jamesmcfadden/d379e04e7ae2861414886af189ec59e5
19+ cat << EOF >> ~/.ssh/config
20+ Host python-docs-ja.github.com
21+ HostName github.com
22+ IdentityFile ~/.ssh/python-docs-ja_${DOCS_BRANCH}
23+ StrictHostKeyChecking no
24+
25+ Host cpython-doc-catalog.github.com
26+ HostName github.com
27+ IdentityFile ~/.ssh/cpython-doc-catalog_${CATALOG_BRANCH}
28+ StrictHostKeyChecking no
29+ EOF
30+
31+ cat ~ /.ssh/config
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ # merge from upstream
5+ cd " ${BASEDIR} " /cpython-doc-catalog
6+ git remote add upstream https://github.com/python/cpython.git
7+ git remote -v
8+ git fetch --quiet upstream
9+ git merge --no-ff upstream/${CPYTHON_BRANCH} -m " Merge remote-tracking branch 'upstream/${CPYTHON_BRANCH} ' into ${CATALOG_BRANCH} by Autobuild bot on TravisCI"
10+
11+ # generate catalog
12+ cd Doc
13+ make build ALLSPHINXOPTS=" -E -b gettext -D gettext_compact=0 -d build/.doctrees . locales/pot"
14+ ls -lt locales/pot
15+
16+ # upload catalog templates to cpython-doc-catalog
17+ cd locales
18+ git add pot
19+ git status
20+ if [[ $( git status --short | wc -l) == 0 ]]; then
21+ echo " no .pot file to update"
22+ exit 0
23+ fi
24+
25+ echo " I have .pot file(s) to upload"
26+
27+ rm -rf .tx
28+ sphinx-intl create-txconfig
29+ sphinx-intl update-txconfig-resources --transifex-project-name=${TRANSIFEX_PROJECT} --locale-dir . --pot-dir pot
30+ tx push -s
31+ git add .tx
32+ git commit --message=" [skip ci] Update .pot files and .tx/config"
33+ git push --quiet " git@cpython-doc-catalog.github.com:python-doc-ja/cpython-doc-catalog.git" ${CATALOG_BRANCH} :${CATALOG_BRANCH}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ # clone an additional repository
5+ cd " ${BASEDIR} "
6+ git clone --depth 50 --branch ${CATALOG_BRANCH} https://github.com/python-doc-ja/cpython-doc-catalog.git cpython-doc-catalog
7+ mkdir -p " ${BASEDIR} " /cpython-doc-catalog/Doc/locales/ja
8+ cd " ${BASEDIR} " /cpython-doc-catalog/Doc/locales/ja
9+ ln -s " ${BASEDIR} " /python-docs-ja LC_MESSAGES
10+ ls -lF LC_MESSAGES
11+
12+ # upload catalogs to python-docs-ja
13+ cd " ${BASEDIR} " /cpython-doc-catalog/Doc/locales
14+ tx pull --force --language ja
15+ cd ja/LC_MESSAGES
16+ git add * .po ** /* .po
17+ git status
18+ if [[ $( git status --short | wc -l) == 0 ]]; then
19+ echo " no .po file to upload"
20+ else
21+ echo " I have .po file(s) to upload"
22+ git commit --message=" [skip ci] Update .po files"
23+ git push --quiet " git@python-docs-ja.github.com:python/python-docs-ja.git" ${DOCS_BRANCH} :${DOCS_BRANCH}
24+ fi
25+ rm -rf " ${BASEDIR} " /cpython-doc-catalog/Doc/locales/ja
You can’t perform that action at this time.
0 commit comments