From 88e2122685ab72d649c83444021f0021eb898e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 19 May 2026 18:35:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Migrate=20docs=20from=20MkDocs?= =?UTF-8?q?=20to=20Zensical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docs.yml | 10 +- .gitignore | 1 + docs/de/docs/index.md | 5 + docs/en/docs/contributing.md | 6 +- docs/en/docs/external-links.md | 5 + docs/en/docs/fastapi-people.md | 10 + docs/en/docs/index.md | 5 + docs/en/mkdocs.env.yml | 5 - docs/en/mkdocs.yml | 72 ++---- docs/en/overrides/partials/copyright.html | 4 +- docs/es/docs/index.md | 5 + docs/fr/docs/index.md | 5 + docs/ja/docs/index.md | 5 + docs/ko/docs/index.md | 5 + docs/pt/docs/index.md | 5 + docs/ru/docs/index.md | 5 + docs/tr/docs/index.md | 5 + docs/uk/docs/index.md | 5 + docs/zh-hant/docs/index.md | 5 + docs/zh/docs/index.md | 5 + pyproject.toml | 8 +- scripts/docs.py | 255 +++++++++++++++++----- scripts/mkdocs_hooks.py | 182 --------------- uv.lock | 186 ++++------------ 24 files changed, 361 insertions(+), 443 deletions(-) delete mode 100644 docs/en/mkdocs.env.yml delete mode 100644 scripts/mkdocs_hooks.py diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index d8e5d9e943..6f790bfc59 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -34,11 +34,9 @@ jobs: - docs_src/** - pyproject.toml - uv.lock - - mkdocs.yml - - mkdocs.env.yml - .github/workflows/build-docs.yml - .github/workflows/deploy-docs.yml - - scripts/mkdocs_hooks.py + - scripts/docs.py langs: needs: - changes @@ -103,11 +101,11 @@ jobs: run: uv run ./scripts/docs.py update-languages - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: - key: mkdocs-cards-${{ matrix.lang }}-${{ github.ref }} - path: docs/${{ matrix.lang }}/.cache + key: zensical-${{ matrix.lang }}-${{ github.ref }} + path: site_zensical_src/${{ matrix.lang }}/.cache - name: Build Docs run: | # zizmor: ignore[template-injection] - comes from trusted source - uv run ./scripts/docs.py build-lang ${{ matrix.lang }} + uv run ./scripts/docs.py build-zensical-lang ${{ matrix.lang }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: docs-site-${{ matrix.lang }} diff --git a/.gitignore b/.gitignore index 243cdb93a5..2c0d859ad7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__ htmlcov dist site +site_zensical_src .coverage* coverage.xml .netlify diff --git a/docs/de/docs/index.md b/docs/de/docs/index.md index c71391432a..d557554a12 100644 --- a/docs/de/docs/index.md +++ b/docs/de/docs/index.md @@ -1,3 +1,8 @@ +--- +include_yaml: + sponsors: data/sponsors.yml +--- + # FastAPI { #fastapi }