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/