From 825a8b048debaf3b6331661cd2223131f86c18d5 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 19 Feb 2024 13:57:25 +0100 Subject: [PATCH] fix --- website/scripts/mkdocs_tx.py | 5 +++++ website/scripts/mkdocs_tx_commit.sh | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/scripts/mkdocs_tx.py b/website/scripts/mkdocs_tx.py index 8b0a6c37..6712514a 100755 --- a/website/scripts/mkdocs_tx.py +++ b/website/scripts/mkdocs_tx.py @@ -5,6 +5,11 @@ from ruamel.yaml import YAML +# This scripts helps with translatable content from mkdocs.yml +# It provides commands: +# * to create the YAML translatable file +# * to update the mkdocs.yml with the translated content + def read_config(file_path: str): yaml = YAML(typ="rt") diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index 0ec96d6c..160ea769 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -19,11 +19,10 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then BRANCH="update-mkdocs-tx-$RANDOM" pre-commit install git checkout -b ${BRANCH} - git add mkdocs.yml pre-commit run --files mkdocs.yml || true + git add mkdocs.yml git commit -m "Update mkdocs.yml translation" --no-verify git push -u origin $BRANCH - echo "gh pr create -B ${GITHUB_REF_NAME} -H ${BRANCH} --title 'Update mkdocs translations' --body 'run from mkdocs_tx'" gh pr create -B ${GITHUB_REF_NAME} -H ${BRANCH} --title 'Update mkdocs translations' --body 'run from mkdocs_tx' fi else