mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
358df6ada2
* docs(deps): bump mkdocs-material to v8.2.1 * feat(docs): enable mermaid integration Configuration based on https://squidfunk.github.io/mkdocs-material/reference/diagrams/?h=mermaid#configuration * fix: allow yaml value mapping * chore: Adopt mkdocs-material mermaid integration support Supported by the docs generator now, we no longer need to rely on external image generator or live editor link (both relied on large base64 encoding of mermaid markup). SVG will be rendered by docs now, although a little different style (can be fixed with custom CSS). Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
22 lines
720 B
Bash
Executable file
22 lines
720 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
# PWD should be at the project docs/ folder.
|
|
# `--user` is required for build output file ownership to match the CI user,
|
|
# instead of the internal root user of the container.
|
|
# `build --strict` ensures the build fails when any warnings are omitted.
|
|
docker run \
|
|
--rm \
|
|
--user "$(id -u):$(id -g)" \
|
|
--volume "${PWD}:/docs" \
|
|
--name "build-docs" \
|
|
squidfunk/mkdocs-material:8.2.1 build --strict
|
|
|
|
# Remove unnecessary build artifacts: https://github.com/squidfunk/mkdocs-material/issues/2519
|
|
# site/ is the build output folder.
|
|
cd site
|
|
find . -type f -name '*.min.js.map' -delete -o -name '*.min.css.map' -delete
|
|
rm sitemap.xml.gz
|
|
rm assets/images/favicon.png
|
|
rm -r assets/javascripts/lunr
|