Skip to content

Commit

Permalink
create sitemap index referenced by root robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ansuz committed Aug 9, 2021
1 parent d2bbdf0 commit 386ae93
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://docs.cryptpad.fr/en/sitemap.xml
Sitemap: https://docs.cryptpad.fr/sitemap-index.xml
12 changes: 12 additions & 0 deletions sitemap-index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://docs.cryptpad.org/en/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://docs.cryptpad.org/fr/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://docs.cryptpad.org/de/sitemap.xml</loc>
</sitemap>
</sitemapindex>

0 comments on commit 386ae93

Please sign in to comment.