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

* add missing common plugins

* try to make it work

* force use of clang

* use gcc to work around build issue

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
tannevaled 2024-02-07 16:15:42 +01:00 committed by GitHub
parent b4d2594a80
commit b202402ace
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,16 @@
- https://squidfunk.github.io/mkdocs-material/
# An Mkdocs plugin that renders Mermaid graphs in the markdown file
- https://pypi.org/project/mkdocs-mermaid2-plugin/
# A plugin for MkDocs that lets you know exactly what is happening during the build
- https://pypi.org/project/mkdocs-plugin-progress/
# Mkdocs Markdown includer plugin
- https://pypi.org/project/mkdocs-include-markdown-plugin/
# Unleash the power of MkDocs with macros and variables
- https://pypi.org/project/mkdocs-macros-plugin/
# A MkDocs plugin that converts markdown encoded email-links into spambot save <a href> elements.
- https://pypi.org/project/mkdocs-encriptmail-plugin/

View file

@ -0,0 +1,2 @@
[test@test.test](mailto:test@test.test)

View file

@ -12,9 +12,26 @@ theme:
primary: blue primary: blue
features: features:
- navigation.expand - navigation.expand
- navigation.tabs
- navigation.tabs.sticky
- navigation.top - navigation.top
- content.code.copy - content.code.copy
- content.code.annotate - content.code.annotate
- navigation.indexes
- content.tabs.link
- content.code.annotate
plugins:
- search
- progress
- include-markdown
- macros
- mermaid2:
arguments:
theme: dark
- encriptmail:
placeholderAt: (Q)
placeholderDot: (P)
extra: extra:
repo_icon: gitlab repo_icon: gitlab
@ -22,6 +39,9 @@ extra:
extra_css: extra_css:
- custom.css - custom.css
extra_javascript:
- https://unpkg.com/mermaid/dist/mermaid.min.js
markdown_extensions: markdown_extensions:
- admonition - admonition
- codehilite - codehilite

View file

@ -8,16 +8,22 @@ versions:
dependencies: dependencies:
pkgx.sh: ^1 pkgx.sh: ^1
sass-lang.com/libsass: ^3.6
build: build:
dependencies: dependencies:
python.org: ">=3<3.12" python.org: ">=3<3.12"
linux/aarch64:
gnu.org/gcc: '*' # otherwise, building the python sass module complains about -std=gnu++0x use with C
script: script:
- run: cat $PROP >> requirements.txt - run: cat $PROP >> requirements.txt
prop: | prop: |
mkdocs-mermaid2-plugin mkdocs-mermaid2-plugin
mkdocs-plugin-progress mkdocs-plugin-progress
mkdocs-include-markdown-plugin mkdocs-include-markdown-plugin
mkdocs-macros-plugin
mkdocs-encriptmail-plugin
mkdocs-exporter
- bkpyvenv stage {{prefix}} {{version}} - bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install . - ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} mkdocs - bkpyvenv seal {{prefix}} mkdocs