Skip to content

Commit b708ca0

Browse files
authored
docs: add sitemap and robots (#603)
Signed-off-by: Keming <[email protected]>
1 parent f4f58ec commit b708ca0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"sphinxcontrib.programoutput",
3030
"sphinx_autodoc_typehints",
3131
"sphinxext.opengraph",
32+
"sphinx_sitemap",
3233
]
3334

3435
templates_path = ["_templates"]
@@ -47,7 +48,9 @@
4748
# https://sphinxext-opengraph.readthedocs.io/en/latest/
4849
ogp_site_url = "https://mosecorg.github.io/mosec/"
4950
ogp_image = "https://user-images.githubusercontent.com/38581401/240117836-f06199ba-c80d-413a-9cb4-5adc76316bda.png"
50-
51+
# https://sphinx-sitemap.readthedocs.io/en/latest/getting-started.html
52+
html_baseurl = "https://mosecorg.github.io/mosec/"
53+
html_extra_path = ['robots.txt']
5154
# -- Options for HTML output -------------------------------------------------
5255
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5356

docs/source/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
3+
Sitemap: https://mosecorg.github.io/mosec/sitemap.xml

requirements/doc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sphinx_autodoc_typehints>=1.22
66
sphinxext-opengraph>=0.8
77
myst-parser>=0.18
88
furo>=2022.12.7
9+
sphinx-sitemap>=2.6.0

0 commit comments

Comments
 (0)