Skip to content

Commit

Permalink
[BUGFIX][DOC] avoid creation of symlink inside the prod docs
Browse files Browse the repository at this point in the history
After second run of "composer t3:docs:build:prod" the unneccessary 
symlink `Documentation -> Resources/Public/Documentation` inside of `Resources/Public/Documentation`
was created because of `-f` option on `ln` command.
The symlink `Documentation.HTML` is now removed each time, and the `-f` option is remod from `ln -s`  comman
  • Loading branch information
dkd-kaehm committed Oct 20, 2023
1 parent 601873a commit 8bfcb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/generate_documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ fi
dockrun_t3rd makehtml-no-cache

if [[ "$BUILD_DOCS_FOR_PRODUCTION" == 1 || "$BUILD_DOCS_FOR_PRODUCTION" == "true" ]]; then
rm -Rf "${PRODUCTION_DOCS_PATH}"
rm -Rf "${PRODUCTION_DOCS_PATH}" "Documentation.HTML"
mv -v "Documentation-GENERATED-temp/Result/project/0.0.0" "${PRODUCTION_DOCS_PATH}"
ln -sf "${PRODUCTION_DOCS_PATH}" "Documentation.HTML"
ln -s "${PRODUCTION_DOCS_PATH}" "Documentation.HTML"
rm -Rf "Documentation-GENERATED-temp"
fi

0 comments on commit 8bfcb60

Please sign in to comment.