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
|
||||
# set -x
|
||||
if [ -f mkdocs-patch.yml ]; then
|
||||
# bash
|
||||
# patch reference mkdocs with user-provided options
|
||||
yq eval-all '. as $item ireduce ({}; . * $item)' \
|
||||
mkdocs-source.yml \
|
||||
mkdocs-patch.yml \
|
||||
> mkdocs.yml
|
||||
else
|
||||
cp mkdocs-patch.yml mkdocs.yml
|
||||
# use reference mkdocs only (no options)
|
||||
ln -s mkdocs-source.yml mkdocs.yml
|
||||
fi
|
||||
# set +x
|
||||
|
||||
|
|
Loading…
Reference in a new issue