docs: when modifying docs in place allow storing backups (#3205)

The stored backups would help to identify docs corruption
but aren't needed for commiting. So `.tmp` backup files
are also git-ignored.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-10-06 14:04:25 +02:00 committed by GitHub
parent 5b10fa87b2
commit 78af27f955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -20,3 +20,4 @@
Gemfile.lock
/_site
_site
*.tmp

View file

@ -402,7 +402,7 @@ copy-docs:
echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \
fi
cat ${SRC} >> ${DST}
sed -i 's/<img src=\"docs\//<img src=\"/' ${DST}
sed -i '.tmp' 's/<img src=\"docs\//<img src=\"/' ${DST}
# Copies docs for all components and adds the order tag.
# For ORDER=0 it adds no order tag.