mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
068ceb1d1a
* correct misc typos We also seem to be favoring `behavior` over `behaviour`. * bump MkDocs version * resolve errors shown when buildg docs * improve the Rspamd page * behaviour -> behavior Streamline the usage of this word. The majority used behavior, so I opted to go with this way of spelling it. * Apply suggestions from code review --------- Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
22 lines
718 B
Bash
Executable file
22 lines
718 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:9.5 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
|