Commit 84d38bf0 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Remove any commented lines in the internal 0.md file (it should contain only...

Remove any commented lines in the internal 0.md file (it should contain only either the frontmatter or the cover page of the spec)
parent 8f0f5dcf
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -84,6 +84,15 @@ sed -i 's/'${CI_PROJECT_NAME^^}'\///g' _nav.yml
cat _nav.yml
echo "  - 'Home': 'index.md'" >> mkdocs.yml
cat _nav.yml >> mkdocs.yml
if [ -f docs/0.md ]; then
    python3 -c "
import re
from pathlib import Path
p = Path('docs/0.md')
text = p.read_text(encoding='utf-8')
p.write_text(re.sub(r'<!--.*?-->', '', text, flags=re.DOTALL), encoding='utf-8')
"
fi
cp docs/0.md docs/index.md
repo_url="https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
echo ${repo_url}