From 4c608a4b58f42d9ac96ce9ee9db15c00a3ed86a6 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Wed, 29 Nov 2023 17:11:00 +0300 Subject: [PATCH] Fix Github Actions docs pipeline (#1622) --- .github/workflows/docs.yml | 2 +- docs/requirements.txt | 5 +++++ mkdocs.yml | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 docs/requirements.txt diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1867a57..1d19ed3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,7 +26,7 @@ jobs: key: ${{ github.ref }} path: .cache - name: Setup dependencies - run: pip install mkdocs-material pillow cairosvg mkdocs-minify-plugin + run: pip install -r docs/requirements.txt - name: Build docs run: mkdocs build --strict - name: Upload artifact diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..32bd08c --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,5 @@ +cairosvg~=2.7.1 +mkdocs-material~=9.4.14 +mkdocs-minify-plugin~=0.7.1 +pillow~=10.1.0 + diff --git a/mkdocs.yml b/mkdocs.yml index 75abcdd..86a1546 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -94,8 +94,8 @@ markdown_extensions: - pymdownx.caret - pymdownx.details - pymdownx.emoji: - emoji_generator: !!python/name:materialx.emoji.to_svg - emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji - pymdownx.highlight: anchor_linenums: true line_spans: __span