Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sitemap and robots.txt #97

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/rtd-link-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ jobs:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "pymcio"
single-version: true
4 changes: 4 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"notfound.extension",
"jupyterlite_sphinx",
"sphinxext.rediraffe",
"sphinx_sitemap",
]

# List of patterns, relative to source directory, that match files and
Expand Down Expand Up @@ -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".
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ jupyterlite-sphinx
jupyterlite-pyodide-kernel
sphinxext-rediraffe
pymc-sphinx-theme==0.14
sphinx-sitemap
3 changes: 3 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *

Sitemap: https://www.pymc.io/sitemapindex.xml
17 changes: 17 additions & 0 deletions sitemapindex.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<sitemap>
<loc>https://www.pymc.io/sitemap.xml</loc>
</sitemap>

<sitemap>
<loc>https://www.pymc.io/projects/docs/en/stable/sitemap.xml</loc>
</sitemap>

<sitemap>
<loc>https://www.pymc.io/projects/examples/en/latest/sitemap.xml</loc>
</sitemap>

</sitemapindex>