Skip to content
Snippets Groups Projects
Unverified Commit fae41172 authored by Max Gautier's avatar Max Gautier
Browse files

gen_docs_sidebar: redirect output to sidebar.md as part of the script

The script should be self-sufficient (with no need to manually specify a
redirection).
This makes it easier to run it as part of pre-commit and CI.
parent f85111f6
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
# The script will ignore any files that are not markdown files.
# Usage: bash scripts/gen_docs_sidebar.sh > docs/_sidebar.md
{
echo "* [Readme](/)"
for folder in $(find docs/*/ | sort -f); do
......@@ -29,3 +30,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