Browse Source

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.
pull/11212/head
Max Gautier 6 months ago
parent
commit
fae41172ed
Failed to extract signature
1 changed files with 2 additions and 0 deletions
  1. 2
      scripts/gen_docs_sidebar.sh

2
scripts/gen_docs_sidebar.sh

@ -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
Loading…
Cancel
Save