Skip to content

Commit

Permalink
docs: add sitemap and robots (#603)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Nov 26, 2024
1 parent f4f58ec commit b708ca0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sphinxcontrib.programoutput",
"sphinx_autodoc_typehints",
"sphinxext.opengraph",
"sphinx_sitemap",
]

templates_path = ["_templates"]
Expand All @@ -47,7 +48,9 @@
# https://sphinxext-opengraph.readthedocs.io/en/latest/
ogp_site_url = "https://mosecorg.github.io/mosec/"
ogp_image = "https://user-images.githubusercontent.com/38581401/240117836-f06199ba-c80d-413a-9cb4-5adc76316bda.png"

# https://sphinx-sitemap.readthedocs.io/en/latest/getting-started.html
html_baseurl = "https://mosecorg.github.io/mosec/"
html_extra_path = ['robots.txt']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

Expand Down
3 changes: 3 additions & 0 deletions docs/source/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *

Sitemap: https://mosecorg.github.io/mosec/sitemap.xml
1 change: 1 addition & 0 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ sphinx_autodoc_typehints>=1.22
sphinxext-opengraph>=0.8
myst-parser>=0.18
furo>=2022.12.7
sphinx-sitemap>=2.6.0

0 comments on commit b708ca0

Please sign in to comment.