Commit 6ab8e421 authored by Marcel Amirault's avatar Marcel Amirault Committed by Achilleas Pipinellis

Remove CE readme check from lint-docs script

parent 454dca13
...@@ -35,30 +35,16 @@ fi ...@@ -35,30 +35,16 @@ fi
# Do not use 'README.md', instead use 'index.md' # Do not use 'README.md', instead use 'index.md'
# Number of 'README.md's as of 2018-03-26 # Number of 'README.md's as of 2018-03-26
NUMBER_READMES_CE=46 NUMBER_READMES=46
NUMBER_READMES_EE=46
FIND_READMES=$(find doc/ -name "README.md" | wc -l) FIND_READMES=$(find doc/ -name "README.md" | wc -l)
echo '=> Checking for new README.md files...' echo '=> Checking for new README.md files...'
if [ "${CI_PROJECT_NAME}" == 'gitlab-ce' ] if [ ${FIND_READMES} -ne $NUMBER_READMES ]
then then
if [ ${FIND_READMES} -ne ${NUMBER_READMES_CE} ] echo
then echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2
echo echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files'
echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2 echo
echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files' exit 1
echo
exit 1
fi
elif [ "${CI_PROJECT_NAME}" == 'gitlab-ee' ]
then
if [ ${FIND_READMES} -ne $NUMBER_READMES_EE ]
then
echo
echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2
echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files'
echo
exit 1
fi
fi fi
echo "✔ Linting passed" echo "✔ Linting passed"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment