diff --git a/.github/workflows/rtd-link-preview.yml b/.github/workflows/rtd-link-preview.yml index 0e371b5..da776b1 100644 --- a/.github/workflows/rtd-link-preview.yml +++ b/.github/workflows/rtd-link-preview.yml @@ -14,3 +14,4 @@ jobs: - uses: readthedocs/actions/preview@v1 with: project-slug: "pymcio" + single-version: true diff --git a/conf.py b/conf.py index 16aa768..dfd50d4 100644 --- a/conf.py +++ b/conf.py @@ -42,6 +42,7 @@ "notfound.extension", "jupyterlite_sphinx", "sphinxext.rediraffe", + "sphinx_sitemap", ] # List of patterns, relative to source directory, that match files and @@ -134,6 +135,9 @@ def setup(app): # a list of builtin themes. # html_theme = "pymc_sphinx_theme" +html_baseurl = "https://www.pymc.io/" +sitemap_url_scheme = "{link}" +html_extra_path = ["robots.txt", "sitemapindex.xml"] # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". diff --git a/requirements.txt b/requirements.txt index a488aaa..108d518 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ jupyterlite-sphinx jupyterlite-pyodide-kernel sphinxext-rediraffe pymc-sphinx-theme==0.14 +sphinx-sitemap diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..0794f84 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +User-agent: * + +Sitemap: https://www.pymc.io/sitemapindex.xml diff --git a/sitemapindex.xml b/sitemapindex.xml new file mode 100644 index 0000000..f3260f1 --- /dev/null +++ b/sitemapindex.xml @@ -0,0 +1,17 @@ + + + + + + https://www.pymc.io/sitemap.xml + + + + https://www.pymc.io/projects/docs/en/stable/sitemap.xml + + + + https://www.pymc.io/projects/examples/en/latest/sitemap.xml + + +