-
I have no problem using mkdocs serve locally, but after committing to Git I get the following error ![]() My ci.yml file has the following contents: name: ci
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${ env.cache_id }
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- run: pip install mkdocs-git-revision-date-localized-plugin
- run: pip install mkdocs-git-committers-plugin-2
- run: pip install mkdocs-git-authors-plugin The Mkdocs.yml file should also be configured correctly |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It looks like you are running the |
Beta Was this translation helpful? Give feedback.
-
You need to configure your checkout step to fetch the full history: |
Beta Was this translation helpful? Give feedback.
It looks like you are running the
pip
commands for installing the dependencies after runningmkdocs
? Move them up in your CI config.