Skip to content

Commit 6961add

Browse files
committed
Add sitemap to docs. Also add robots.txt to advertize sitemap.
1 parent 34bf910 commit 6961add

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

website/www/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
# extensions = ['sphinxcontrib.cheeseshop']
32+
extensions = ['sphinx_sitemap']
33+
34+
# for sitemap default: "{lang}{version}subdir/{link}"
35+
sitemap_url_scheme = "{link}"
3336

3437
# Add any paths that contain templates here, relative to this directory.
3538
templates_path = ['_templates']
@@ -132,6 +135,13 @@
132135
# typographically correct entities.
133136
#html_use_smartypants = True
134137

138+
# A list of paths that contain extra files not directly related to the
139+
# documentation, such as robots.txt or .htaccess. Relative paths are
140+
# taken as relative to the configuration directory. They are copied to
141+
# the output directory. They will overwrite any existing file of the
142+
# same name.
143+
html_extra_path = ['robots.txt']
144+
135145
# Custom sidebar templates, maps document names to template names.
136146
#html_sidebars = {}
137147

website/www/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
3+
Sitemap: https://www.roundup-tracker.org/sitemap.xml
4+

0 commit comments

Comments
 (0)