Skip to content
Snippets Groups Projects
Unverified Commit 998e04e5 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub
Browse files

Merge pull request #11212 from VannTen/cleanup/check_sidebar_ci

Check that PRs have correctly ran the sidebar gen
parents 53ad8d91 96bb0a3e
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,14 @@ markdownlint:
script:
- markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md
generate-sidebar:
extends: .job
stage: unit-tests
tags: [light]
script:
- scripts/gen_docs_sidebar.sh
- git diff --exit-code
check-readme-versions:
stage: unit-tests
tags: [light]
......
......@@ -8,6 +8,8 @@
# The script will ignore any files that are not markdown files.
# Usage: bash scripts/gen_docs_sidebar.sh > docs/_sidebar.md
export LANG=C
{
echo "* [Readme](/)"
for folder in $(find docs/*/ | sort -f); do
......@@ -29,3 +31,4 @@ for folder in $(find docs/*/ | sort -f); do
done
fi
done
} > docs/_sidebar.md
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment