1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +02:00
imgproxy/build-docs-sitemap.sh
2022-02-16 20:54:37 +06:00

6 lines
192 B
Bash
Executable File

#!/bin/sh
echo "https://docs.imgproxy.net" > docs/sitemap.txt
RE='^\* \[.+\]\((.+)\)'
grep -E "$RE" docs/_sidebar.md | sed -E "s/$RE/https:\\/\\/docs.imgproxy.net\\/\\1/" >> docs/sitemap.txt