@@ -29,28 +29,26 @@ jobs:
2929 - name : Setup Pages
30303131 - name : Set up Python
32- uses : actions/setup-python@v4
32+ uses : actions/setup-python@v6.1.0
3333 with : { python-version: '3.x' }
3434 - name : Install pip
3535 run : python -m pip install --upgrade pip
36+ - name : Cache pip
37+ 38+ with :
39+ path : ~/.cache/pip
40+ key : pip-${{ runner.os }}-${{ hashFiles('docs/requirements.txt') }}
41+ restore-keys : pip-${{ runner.os }}-
3642 - name : Install MkDocs and dependencies
37- run : >
38- pip install mkdocs==1.6.1 mkdocs-shadcn==0.9.8 Pygments==2.19.2
39- mkdocstrings-python==2.0.1 pymdown-extensions==10.19.1
40- click==8.3.1 ghp-import==2.1.0 jinja2==3.1.6 markdown==3.10
41- markupsafe==3.0.3 mergedeep==1.3.4 mkdocs-get-deps==0.2.0
42- pathspec==0.12.1 pyyaml-env-tag==1.1 pyyaml==6.0.3 bottle==0.13.4
43- watchdog==6.0.0 gitpython==3.1.45 mkdocstrings==1.0.0 griffe==1.15.0
44- mkdocs-autorefs==1.4.3 python-dateutil==2.9.0.post0 gitdb==4.0.12
45- smmap==5.0.2 colorama==0.4.6 platformdirs==4.5.1 six==1.17.0
43+ run : pip install --requirement 'docs/requirements.txt'
4644 - name : Build site with MkDocs
4745 run : mkdocs --verbose --color build --site-dir ./_site
4846 - name : Restore lychee cache
49475048 id : restore-cache
5149 with :
5250 path : .lycheecache
53- key : cache-docs- lychee-${{ github.sha }}
51+ key : cache-lychee-${{ hashFiles('docs/**/*.html', 'docs/**/*.htm') }}
5452 restore-keys : cache-docs-lychee-
5553 - name : Check the links
5654 uses :
lycheeverse/[email protected]
0 commit comments