Skip to content

Commit 87b1c0d

Browse files
authored
add sitemap and robots.txt (pymc-devs#639)
1 parent 4c63cd3 commit 87b1c0d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

examples/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"notfound.extension",
2929
"thumbnail_extractor",
3030
"sphinxext.rediraffe",
31+
"sphinx_sitemap",
3132
]
3233

3334
# List of patterns, relative to source directory, that match files and
@@ -70,6 +71,7 @@ def setup(app: Sphinx):
7071

7172
# theme options
7273
html_theme = "pymc_sphinx_theme"
74+
html_baseurl = "https://www.pymc.io/projects/examples/"
7375
html_theme_options = {
7476
"secondary_sidebar_items": ["postcard", "page-toc", "edit-this-page", "sourcelink", "donate"],
7577
"navbar_start": ["navbar-logo"],
@@ -104,13 +106,13 @@ def setup(app: Sphinx):
104106
# relative to this directory. They are copied after the builtin static files,
105107
# so a file named "default.css" will overwrite the builtin "default.css".
106108
html_static_path = ["../_static"]
107-
html_extra_path = ["../_thumbnails"]
109+
html_extra_path = ["../_thumbnails", "robots.txt"]
108110
templates_path = ["../_templates"]
109111
html_sidebars = {
110112
"**": [
111113
"sidebar-nav-bs.html",
112114
"postcard_categories.html",
113-
"tagcloud.html",
115+
"ablog/tagcloud.html",
114116
],
115117
}
116118

examples/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://www.pymc.io/projects/examples/sitemap.xml

requirements-docs.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ablog<0.11
1+
ablog>=0.11
22
matplotlib
33
myst-nb
44
sphinx-codeautolink
@@ -10,3 +10,4 @@ sphinx-notfound-page
1010
sphinxcontrib-bibtex
1111
sphinxext-opengraph
1212
sphinxext-rediraffe
13+
sphinx-sitemap

0 commit comments

Comments
 (0)