You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ $RESULT -eq 127 ]; then #if antora is not found in $PATH (probably not installed)
echo -e '>> \e[31mFAIL\e[0m Antora not found in \$PATH, Install Antora from https://docs.antora.org/antora/2.2/install/install-antora/'
exit 1
elif [ -f site.yml ]; then
rm -rf build/ docs/ #remove the existing docs. Just in case there are docs that should not be there.
echo -e '>> \e[34mINFO\e[0m Building docs with Antora'
antora --fetch site.yml # build the docs with antora
echo -e '>> \e[34mINFO\e[0m Copying generated docs to the root folder.'
cp -rfv build/site/* .
echo -e '>> \e[92mDONE\e[0m Review the generated documentation in index.html, commit the changes and submit a pull request to openshift/pipelines-docs repo.'
else
echo -e '>> \e[31mFAIL\e[0m site.yml not found in the path of the docs_build.sh. Terminating.'