1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-09 06:46:05 +02:00
docker-mailserver/.github/workflows/scripts/docs/build-docs.sh
2021-09-21 00:14:32 +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.2.8 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