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 Aliaksandr Valialkin
parent de92a8375c
commit 92f4d6a338
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
2 changed files with 8 additions and 8 deletions

14
.gitignore vendored
View file

@ -1,3 +1,4 @@
/tmp
/tags
/pkg
*.pprof
@ -11,13 +12,12 @@
/vmagent-remotewrite-data
/vmstorage-data
/vmselect-cache
.DS_Store
### terraform
terraform.tfstate
terraform.tfstate.*
.terraform/
/package/temp-deb-*
/package/temp-rpm-*
/package/*.deb
/package/*.rpm
.DS_store
Gemfile.lock
/_site
_site
*.tmp

View file

@ -229,7 +229,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.