Skip to content
Snippets Groups Projects
Commit ad61e82b authored by Saheer Babu's avatar Saheer Babu Committed by Hugues Kamba Mpiana
Browse files

ci: Run documentation generation in `pages`


As `pages` will be the only job public CI executes, run the commands
to generate the documentation in this job.

Signed-off-by: Saheer Babu's avatarSaheer Babu <saheer.babu@arm.com>
parent 6b3ba6f9
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,17 @@ pages:
- iotmsw-amd64
image: python:latest
script:
- |
missing_listing=0
for page in `find docs -name "*.md" -exec realpath --relative-to docs {} \;`; do
if ! grep -q $page mkdocs.yml; then
echo "$page is not listed in mkdocs.yml"
missing_listing=1
fi
done
if [ $missing_listing = 1 ]; then exit 1; fi
- pip install mkdocs-material lxml GitPython
- mkdocs build --site-dir docs_site
- mv docs_site public
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment