diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 01871d8..66a857b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,7 +1,6 @@ --- on: push: - branches: [main] workflow_dispatch: inputs: ref: @@ -46,6 +45,7 @@ jobs: id: setup-pdm with: python-version: ${{ matrix.python-version }} + pdm-version: "2.12.4" cache: true allow-python-prereleases: true @@ -58,12 +58,6 @@ jobs: # If pull request or not main branch and not a tag if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' - - name: Patch mike 2.0.0 - run: | - # In .venv/lib/python3.11/site-packages/mike/mkdocs_utils.py, replace `config = mkdocs.utils.yaml_load(f)` by `config = mkdocs.config.load_config(f).data` - # Issue: https://github.com/jimporter/mike/issues/199 - sed -i 's/config = mkdocs.utils.yaml_load(f)/config = mkdocs.config.load_config(f).data/' .venv/lib/python3.11/site-packages/mike/mkdocs_utils.py - - name: Configure git run: | git config user.email "firefighter@manomano.com" diff --git a/pdm.lock b/pdm.lock index ed04c8a..b553b83 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev", "docs", "tests", "types", "docs-img"] strategy = ["cross_platform", "static_urls"] lock_version = "4.4.1" -content_hash = "sha256:a3cbc48404e7bfe3ebb0f9a0c042b899ad068e5a787826726c04517f194d5c93" +content_hash = "sha256:dbe0e810c43ce0b5a02eadb1a26a4bf8b349ada7e39e1092f3b5801ebef6760a" [[package]] name = "aiohttp" @@ -1825,7 +1825,9 @@ files = [ [[package]] name = "mike" -version = "2.0.0" +version = "2.1.0.dev0" +git = "https://github.com/jimporter/mike" +revision = "01219bddfeea16f8d6dd6d65d0d84581cf183a3f" summary = "Manage multiple versions of your MkDocs-powered documentation" dependencies = [ "importlib-metadata", @@ -1836,10 +1838,6 @@ dependencies = [ "pyyaml>=5.1", "verspec", ] -files = [ - {url = "https://files.pythonhosted.org/packages/69/86/fe79ca89ad1a393a9129b3ab77649dbe542103a76c92d2d68ac9f0da496c/mike-2.0.0.tar.gz", hash = "sha256:566f1cab1a58cc50b106fb79ea2f1f56e7bfc8b25a051e95e6eaee9fba0922de"}, - {url = "https://files.pythonhosted.org/packages/d5/cc/ba256481682f20b38d6d69150d0cfa09c8b5cc6865240764ab80516286cb/mike-2.0.0-py3-none-any.whl", hash = "sha256:87f496a65900f93ba92d72940242b65c86f3f2f82871bc60ebdcffc91fad1d9e"}, -] [[package]] name = "mkdocs" diff --git a/pyproject.toml b/pyproject.toml index 9edb6d4..88b2fc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -205,7 +205,7 @@ docs = [ "mkdocs-include-markdown-plugin>=6.0.4", "mkdocstrings[python]>=0.24.0", "mdx-truly-sane-lists>=1.3", - "mike>=2.0.0", + "mike @ git+https://github.com/jimporter/mike", "markdown-exec>=1.7", "mkdocs-git-authors-plugin>=0.7.2", "mkdocs-git-revision-date-localized-plugin>=1.2.2",