diff --git a/build.sh b/build.sh index c904bd57..19ba6ae2 100755 --- a/build.sh +++ b/build.sh @@ -13,4 +13,5 @@ cat LANG | while read ligne ; do mkdir www/$ligne cp -r _build/html/* www/$ligne/ done - +cp sitemap-index.xml www/ +cp robots.txt www/ diff --git a/conf.py b/conf.py index 9c776d18..77cc1d3d 100644 --- a/conf.py +++ b/conf.py @@ -113,7 +113,7 @@ smartquotes = False html_baseurl = 'https://docs.cryptpad.fr/' # for the generated site-map -html_extra_path = ["robots.txt"] +#html_extra_path = ["robots.txt"] html_theme_options = { 'logo_only': False, diff --git a/robots.txt b/robots.txt index 28198f97..b45cd805 100644 --- a/robots.txt +++ b/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://docs.cryptpad.fr/en/sitemap.xml \ No newline at end of file +Sitemap: https://docs.cryptpad.fr/sitemap-index.xml diff --git a/sitemap-index.xml b/sitemap-index.xml new file mode 100644 index 00000000..bbc3789c --- /dev/null +++ b/sitemap-index.xml @@ -0,0 +1,12 @@ + + + + https://docs.cryptpad.org/en/sitemap.xml + + + https://docs.cryptpad.org/fr/sitemap.xml + + + https://docs.cryptpad.org/de/sitemap.xml + +