mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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
5b10fa87b2
commit
78af27f955
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,3 +20,4 @@
|
|||
Gemfile.lock
|
||||
/_site
|
||||
_site
|
||||
*.tmp
|
2
Makefile
2
Makefile
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue