mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
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:
parent
de92a8375c
commit
92f4d6a338
2 changed files with 8 additions and 8 deletions
14
.gitignore
vendored
14
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
/tmp
|
||||||
/tags
|
/tags
|
||||||
/pkg
|
/pkg
|
||||||
*.pprof
|
*.pprof
|
||||||
|
@ -11,13 +12,12 @@
|
||||||
/vmagent-remotewrite-data
|
/vmagent-remotewrite-data
|
||||||
/vmstorage-data
|
/vmstorage-data
|
||||||
/vmselect-cache
|
/vmselect-cache
|
||||||
.DS_Store
|
/package/temp-deb-*
|
||||||
|
/package/temp-rpm-*
|
||||||
|
/package/*.deb
|
||||||
### terraform
|
/package/*.rpm
|
||||||
terraform.tfstate
|
.DS_store
|
||||||
terraform.tfstate.*
|
|
||||||
.terraform/
|
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
/_site
|
/_site
|
||||||
_site
|
_site
|
||||||
|
*.tmp
|
2
Makefile
2
Makefile
|
@ -229,7 +229,7 @@ copy-docs:
|
||||||
echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \
|
echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \
|
||||||
fi
|
fi
|
||||||
cat ${SRC} >> ${DST}
|
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.
|
# Copies docs for all components and adds the order tag.
|
||||||
# For ORDER=0 it adds no order tag.
|
# For ORDER=0 it adds no order tag.
|
||||||
|
|
Loading…
Reference in a new issue