1 parent 2e366c8 commit b4d1d18Copy full SHA for b4d1d18
1 file changed
make-sitemap
@@ -1,3 +1,14 @@
1
2
find . -name \*.pdf -o -name \*.md -o -name \*.html -o -name \*.woff2 -o -name \*.otf | grep -v '^[.]/404' | grep -v '^[.]/README' | grep -v '^[.]/LICENCE' | grep -v '^./_' | grep -v google | sed -e 's/[.]md$//' -e 's/[.]html$//' -e 's/\/index$/\//' -e 's/^[.]/https:\/\/mathfonts.github.io/' > sitemap.txt
3
4
+sed \
5
+-e '1i\
6
+<?xml version="1.0" encoding="UTF-8"?>\
7
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' \
8
+-e 's/^\(http.*\)/<url><loc>\1<\/loc><\/url>/' sitemap.txt \
9
+-e '$a\
10
+</urlset>\
11
+' \
12
+>sitemap.xml
13
+
14
0 commit comments