Skip to content

Commit b4d1d18

Browse files
committed
xml version
1 parent 2e366c8 commit b4d1d18

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎make-sitemap‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11

22
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
33

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

Comments
 (0)