diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index b1699640..e6510cbb 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -35,7 +35,9 @@ jobs: python-version: '3.10' - name: Install Python requirements - run: pip install -r requirements.txt + run: | + pip install -r requirements.txt + pip install -r requirements-dev.txt - name: Install Python requirements insiders run: pip install -r requirements-insiders.txt diff --git a/website/requirements-dev.txt b/website/requirements-dev.txt new file mode 100644 index 00000000..9a2c2bf5 --- /dev/null +++ b/website/requirements-dev.txt @@ -0,0 +1,5 @@ +mkdocs-material==9.5.9 +mkdocs-video==1.5.0 +mkdocs-static-i18n==1.2.0 +fancyboxmd==1.1.0 +ruamel.yaml==0.18.6 diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index 4dee3fab..ac05cfc3 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -18,8 +18,10 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then # on push create a pull request git checkout ${GITHUB_REF_NAME} BRANCH="update-mkdocs-tx-$RANDOM" + pre-commit install git checkout -b ${BRANCH} git add mkdocs.yml + pre-commit run git commit -m "Update mkdocs.yml translation" git push -u origin $BRANCH echo "gh pr create -B ${GITHUB_REF_NAME} -H ${BRANCH} --title 'Update mkdocs translations' --body 'run from mkdocs_tx'"