From f791811b150bb42d988230fa7b15a31777772105 Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Thu, 25 May 2023 21:26:36 +0200 Subject: [PATCH] update docs-sync Makefile command, add hugo front-matter Signed-off-by: Artem Navoiev --- Makefile | 38 ++++++++++++++++----------- docs/README.md | 4 ++- docs/Single-server-VictoriaMetrics.md | 9 ++++++- docs/vmagent.md | 9 ++++++- docs/vmalert.md | 9 ++++++- docs/vmauth.md | 9 ++++++- docs/vmbackup.md | 9 ++++++- docs/vmbackupmanager.md | 9 ++++++- docs/vmctl.md | 9 ++++++- docs/vmgateway.md | 9 ++++++- docs/vmrestore.md | 9 ++++++- 11 files changed, 98 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index cddd06ced..5a49adb80 100644 --- a/Makefile +++ b/Makefile @@ -418,27 +418,35 @@ check-licenses: install-wwhrd wwhrd check -f .wwhrd.yml copy-docs: - echo '' > ${DST} + echo "---" > ${DST} @if [ ${ORDER} -ne 0 ]; then \ - echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \ + echo "sort: ${ORDER}" >> ${DST}; \ + echo "weight: ${ORDER}" >> ${DST}; \ + echo "menu:\n docs:\n parent: 'victoriametrics'\n weight: ${ORDER}" >> ${DST}; \ fi + + echo "title: ${TITLE}" >> ${DST} + @if [ ${OLD_URL} ]; then \ + echo "aliases:\n - ${OLD_URL}" >> ${DST}; \ + fi + echo "---" >> ${DST} cat ${SRC} >> ${DST} sed -i='.tmp' 's/