fix: Make sure entrypoint works without user-provided configuration
This commit is contained in:
parent
ccade28d49
commit
aca590ed4a
1 changed files with 10 additions and 9 deletions
|
@ -33,13 +33,14 @@ chown -R "$EXT_UID:$EXT_GID" /home/appuser
|
||||||
# Patch mkdocs configuration
|
# Patch mkdocs configuration
|
||||||
# set -x
|
# set -x
|
||||||
if [ -f mkdocs-patch.yml ]; then
|
if [ -f mkdocs-patch.yml ]; then
|
||||||
# bash
|
# patch reference mkdocs with user-provided options
|
||||||
yq eval-all '. as $item ireduce ({}; . * $item)' \
|
yq eval-all '. as $item ireduce ({}; . * $item)' \
|
||||||
mkdocs-source.yml \
|
mkdocs-source.yml \
|
||||||
mkdocs-patch.yml \
|
mkdocs-patch.yml \
|
||||||
> mkdocs.yml
|
> mkdocs.yml
|
||||||
else
|
else
|
||||||
cp mkdocs-patch.yml mkdocs.yml
|
# use reference mkdocs only (no options)
|
||||||
|
ln -s mkdocs-source.yml mkdocs.yml
|
||||||
fi
|
fi
|
||||||
# set +x
|
# set +x
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue