1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-07-30 08:44:25 +02:00
docker-mailserver/.github/workflows/scripts/docs/build-docs.sh
Frederic Werner e20a66864a
docs(deps): bump mkdocs-material to 7.1.6 (#2015)
* docs(deps): bump mkdocs-material to 7.1.6

* chore: trigger preview on changes to preview workflows too

* fix: replace deprecated admonition

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2021-05-31 19:02:56 +12:00

17 lines
535 B
Bash
Executable File

#!/bin/bash
# `--user` is required for build output file ownership to match the CI user,
# instead of the internal root user of the container.
docker run \
--rm \
--user "$(id -u):$(id -g)" \
-v "${PWD}:/docs" \
squidfunk/mkdocs-material:7.1.6 build --strict
# Remove unnecessary build artifacts: https://github.com/squidfunk/mkdocs-material/issues/2519
cd site || exit
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