From 03811580a2c1aac6a6050de40f97d6d1cbc024c5 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 10 Feb 2022 21:37:18 +0100 Subject: [PATCH] test --- .github/workflows/gh-pages.yml | 9 +++++---- mkdocs.yml | 8 ++++++++ script.sh | 5 +++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 script.sh diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8509b99e3..7feae4106 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout 📥 uses: actions/checkout@v2.4.0 with: - token: '${{ secrets.GHPAGES_ACTION_CHECKOUT_TOKEN_PAT }}' + #token: '${{ secrets.GHPAGES_ACTION_CHECKOUT_TOKEN_PAT }}' fetch-depth: '0' # https://github.com/timvink/mkdocs-git-revision-date-localized-plugin#note-when-using-build-environments - name: Install dependencies 🐄 @@ -24,12 +24,13 @@ jobs: - name: Build site 🔧 run: | mkdocs build --verbose --clean + bash script.sh - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.3 with: - token: '${{ secrets.GHPAGES_ACTION_DEPLOY_TOKEN_PAT }}' - git-config-name: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITNAME_PAT }}' - git-config-email: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITEMAIL_PAT }}' + #token: '${{ secrets.GHPAGES_ACTION_DEPLOY_TOKEN_PAT }}' + #git-config-name: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITNAME_PAT }}' + #git-config-email: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITEMAIL_PAT }}' branch: gh-pages # The branch the action should deploy to. folder: site # The folder the action should deploy. diff --git a/mkdocs.yml b/mkdocs.yml index 9b5dcae82..f70a9c7d1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -252,6 +252,14 @@ plugins: 'Third party apps': 'Anwendungen von Drittanbietern' 'Borgmatic Backup': 'Borgmatic-Sicherung' #### End of german translation + - redirects: + redirect_maps: + # 'old': 'new' + 'u_e-mailpiler-integration.md': 'third_party/third_party-mailpiler_integration.en.md' + #'b_n_r_accidental_deletion.md': 'b_n_r-accidental_deletion.md' + #'debug-reset-tls.md': 'debug-reset_tls.md' + ########## + 'third_party-roundcube.md': 'third_party/third_party-roundcube.en.md' extra: social: diff --git a/script.sh b/script.sh new file mode 100644 index 000000000..cf5886470 --- /dev/null +++ b/script.sh @@ -0,0 +1,5 @@ +#/bin/bash +find ./site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path './site/de/*' -not -path './site/en/*' | while read f; do + #echo $f + sed -E 's/\.en\/"[\>|\+]/\/">/' $f +done