Skip to content

Commit 3783e20

Browse files
Try adding sitemap and robots.txt
1 parent 753168c commit 3783e20

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

doc/conf.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,16 @@
2222
"ablog",
2323
"myst_nb",
2424
"generate_gallery",
25+
"sphinx_sitemap",
2526
]
2627

28+
# Don't auto-generate summary for class members.
29+
numpydoc_show_class_members = False
30+
autosummary_generate = True
31+
autodoc_typehints = "none"
32+
remove_from_toctrees = ["**/classmethods/*"]
33+
34+
2735
intersphinx_mapping = {
2836
"jax": ("https://jax.readthedocs.io/en/latest", None),
2937
"numpy": ("https://numpy.org/doc/stable", None),
@@ -103,19 +111,15 @@
103111
# Options for HTML output
104112
# -----------------------
105113

106-
# The style sheet to use for HTML and HTML Help pages. A file of that name
107-
# must exist either in Sphinx' static/ path, or in one of the custom paths
108-
# given in html_static_path.
109-
# html_style = 'default.css'
110-
# html_theme = 'sphinxdoc'
114+
# The theme to use for HTML and HTML Help pages. See the documentation for
115+
# a list of builtin themes.
116+
html_theme = "pymc_sphinx_theme"
117+
html_logo = "images/PyTensor_RGB.svg"
118+
119+
html_baseurl = "https://pytensor.readthedocs.io"
120+
sitemap_url_scheme = f"{{lang}}{rtd_version}/{{link}}"
111121

112-
# html4_writer added to Fix colon & whitespace misalignment
113-
# https://github.com/readthedocs/sphinx_rtd_theme/issues/766#issuecomment-513852197
114-
# https://github.com/readthedocs/sphinx_rtd_theme/issues/766#issuecomment-629666319
115-
# html4_writer = False
116122

117-
html_logo = "images/PyTensor_RGB.svg"
118-
html_theme = "pymc_sphinx_theme"
119123
html_theme_options = {
120124
"use_search_override": False,
121125
"icon_links": [

doc/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ dependencies:
2323
- ablog
2424
- pip
2525
- pip:
26+
- sphinx_sitemap
2627
- -e ..

doc/library/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Modules
2222
gradient
2323
misc/pkl_utils
2424
printing
25-
sandbox/index
2625
scalar/index
2726
scan
2827
sparse/index

doc/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://pytensor.readthedocs.io/en/latest/sitemap.xml

0 commit comments

Comments
 (0)