docs: Mkdocs i18n support (#5072)

Signed-off-by: Yifei DIng <yifeiding@protonmail.com>
This commit is contained in:
Yifei Ding
2022-02-14 08:29:41 -08:00
committed by GitHub
parent f0241d7dec
commit 61329049a6
6 changed files with 60 additions and 22 deletions

View File

@@ -7,6 +7,8 @@ on:
- docs/**
- mkdocs.yml
- .github/workflows/klipper3d-deploy.yaml
schedule:
- cron: "0 0 * * *"
jobs:
deploy:
runs-on: ubuntu-latest
@@ -24,6 +26,8 @@ jobs:
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r docs/_klipper3d/mkdocs-requirements.txt
- name: Fetch translations
run: docs/_klipper3d/fetch-translations.sh
- name: Build and deploy klipper3d
run: |
mkdocs gh-deploy --config-file docs/_klipper3d/mkdocs.yml --remote-branch gh-pages --force --verbose