docs/website-doc.sh: minor improvements in comments of versions.yml

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2018-06-16 15:29:11 +02:00
parent 4544bb1305
commit 6ef5937a5c
1 changed files with 7 additions and 3 deletions

View File

@ -55,9 +55,13 @@ function api () {
# This let know the website about the available APIs documentations.
echo "Building Jekyll data: $VERSIONS_YML"
# Erase previous content.
echo "$HEADER" > "$VERSIONS_YML"
echo "# However, it's correct to /remove/ old API docs here."
echo "# While at it, don't forget to adjust the _doc/versions directory."
echo > "$VERSIONS_YML" <<EOF
$HEADER
# Used to publish the APIs.
#
# However, it's correct to _remove_ old API docs here. In this case, don't
# forget to adjust the _doc/versions directory too.
EOF
for version in $(ls "$DESTBASE" -1 | sort -nr)
do
echo "- $version"