Skip to content

Commit

Permalink
add sitemap and robots.txt (pymc-devs#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril authored Feb 26, 2024
1 parent 4c63cd3 commit 87b1c0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"notfound.extension",
"thumbnail_extractor",
"sphinxext.rediraffe",
"sphinx_sitemap",
]

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

# theme options
html_theme = "pymc_sphinx_theme"
html_baseurl = "https://www.pymc.io/projects/examples/"
html_theme_options = {
"secondary_sidebar_items": ["postcard", "page-toc", "edit-this-page", "sourcelink", "donate"],
"navbar_start": ["navbar-logo"],
Expand Down Expand Up @@ -104,13 +106,13 @@ def setup(app: Sphinx):
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["../_static"]
html_extra_path = ["../_thumbnails"]
html_extra_path = ["../_thumbnails", "robots.txt"]
templates_path = ["../_templates"]
html_sidebars = {
"**": [
"sidebar-nav-bs.html",
"postcard_categories.html",
"tagcloud.html",
"ablog/tagcloud.html",
],
}

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

Sitemap: https://www.pymc.io/projects/examples/sitemap.xml
3 changes: 2 additions & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ablog<0.11
ablog>=0.11
matplotlib
myst-nb
sphinx-codeautolink
Expand All @@ -10,3 +10,4 @@ sphinx-notfound-page
sphinxcontrib-bibtex
sphinxext-opengraph
sphinxext-rediraffe
sphinx-sitemap

0 comments on commit 87b1c0d

Please sign in to comment.