github.com/squidfunk/mkdocs-material add common plugins (#5128)

* add common plugins

* clarify added requirements; use bkpyvenv for future-proofing

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
tannevaled 2024-02-06 20:43:09 +01:00 committed by GitHub
parent 1d45eeb111
commit c6281442df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 7 deletions

View file

@ -49,3 +49,8 @@ markdown_extensions:
- pymdownx.tilde - pymdownx.tilde
- toc: - toc:
permalink: true permalink: true
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid

View file

@ -7,16 +7,25 @@ versions:
github: squidfunk/mkdocs-material github: squidfunk/mkdocs-material
dependencies: dependencies:
python.org: ">=3<3.12" pkgx.sh: ^1
build: build:
script: python-venv.sh {{prefix}}/bin/mkdocs dependencies:
python.org: ">=3<3.12"
script:
- run: cat $PROP >> requirements.txt
prop: |
mkdocs-mermaid2-plugin
mkdocs-plugin-progress
mkdocs-include-markdown-plugin
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} mkdocs
provides: provides:
- bin/mkdocs - bin/mkdocs
test: test:
script: | - mkdir docs
mkdir docs - mv index.md docs/
mv index.md docs/ - mkdocs -v build
mkdocs build