Skip to content

Commit

Permalink
ci: fix doc building action
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed May 14, 2024
1 parent 3e9e636 commit abc069e
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 65 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
on:
push:
branches: [main]
workflow_dispatch:
inputs:
ref:
Expand Down Expand Up @@ -58,12 +57,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 "[email protected]"
Expand Down
Loading

0 comments on commit abc069e

Please sign in to comment.