]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
➖ Remove direct dependency on MkDocs, Material for MkDocs defines its own dependency...
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 3 Aug 2023 15:24:31 +0000 (17:24 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 15:24:31 +0000 (17:24 +0200)
.github/workflows/build-docs.yml
requirements-docs.txt

index 19009447b0b156875b3a2df2f96ce0e2d1824289..eb816b72f76997990d5585aaaf0e11eccaa20bba 100644 (file)
@@ -44,14 +44,14 @@ jobs:
         id: cache
         with:
           path: ${{ env.pythonLocation }}
-          key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v05
+          key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v06
       - name: Install docs extras
         if: steps.cache.outputs.cache-hit != 'true'
         run: pip install -r requirements-docs.txt
       # Install MkDocs Material Insiders here just to put it in the cache for the rest of the steps
       - name: Install Material for MkDocs Insiders
         if: ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false ) && steps.cache.outputs.cache-hit != 'true'
-        run: pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
+        run: pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git@9.1.21-insiders-4.38.0
       - name: Export Language Codes
         id: show-langs
         run: |
@@ -80,13 +80,13 @@ jobs:
         id: cache
         with:
           path: ${{ env.pythonLocation }}
-          key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v05
+          key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v06
       - name: Install docs extras
         if: steps.cache.outputs.cache-hit != 'true'
         run: pip install -r requirements-docs.txt
       - name: Install Material for MkDocs Insiders
         if: ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false ) && steps.cache.outputs.cache-hit != 'true'
-        run: pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
+        run: pip install git+https://${{ secrets.FASTAPI_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git@9.1.21-insiders-4.38.0
       - name: Update Languages
         run: python ./scripts/docs.py update-languages
       - uses: actions/cache@v3
index df60ca4df14e3613366f6283ca86da04d54bdb16..7152ebf7b72b5b4d9da510736d3f55d90373e80a 100644 (file)
@@ -1,5 +1,4 @@
 -e .
-mkdocs==1.4.3
 mkdocs-material==9.1.17
 mdx-include >=1.4.1,<2.0.0
 mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0