add mkdocs-material[imaging]

This commit is contained in:
Ben Phelps 2024-06-14 00:58:58 +03:00
parent cf14503fb0
commit aa33cf7295

View File

@ -2,15 +2,15 @@ name: Docs
on: on:
push: push:
tags: [ 'v*.*.*' ] tags: ["v*.*.*"]
branches: ['main'] branches: ["main"]
paths: paths:
- 'docs/**' - "docs/**"
- 'mkdocs.yml' - "mkdocs.yml"
pull_request: pull_request:
paths: paths:
- 'docs/**' - "docs/**"
- 'mkdocs.yml' - "mkdocs.yml"
merge_group: merge_group:
workflow_dispatch: workflow_dispatch:
@ -22,16 +22,13 @@ jobs:
name: Linting Checks name: Linting Checks
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- - name: Checkout repository
name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- - name: Install python
name: Install python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- - name: Check files
name: Check files
uses: pre-commit/action@v3.0.1 uses: pre-commit/action@v3.0.1
test: test:
@ -55,6 +52,7 @@ jobs:
- run: sudo apt-get install pngquant - run: sudo apt-get install pngquant
- run: pip install mike - run: pip install mike
- run: pip install mkdocs-material - run: pip install mkdocs-material
- run: pip install "mkdocs-material[imaging]"
- name: Test Docs Build - name: Test Docs Build
run: MKINSIDERS=false mkdocs build run: MKINSIDERS=false mkdocs build
deploy: deploy:
@ -80,6 +78,7 @@ jobs:
- run: sudo apt-get install pngquant - run: sudo apt-get install pngquant
- run: pip install mike==2.0.0 - run: pip install mike==2.0.0
- run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git - run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git
- run: pip install "mkdocs-material[imaging]"
- name: Set Git config - name: Set Git config
run: | run: |
git config --global user.name "GitHub Action" git config --global user.name "GitHub Action"