Skip to content

Commit 36a6732

Browse files
authored
Update theme (#792)
* update theme * configure search and use pypi release
1 parent 993600c commit 36a6732

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.readthedocs.yml

+21
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,24 @@ build:
1111
python:
1212
install:
1313
- requirements: requirements-docs.txt
14+
15+
search:
16+
ranking:
17+
_sources/*: -10
18+
genindex.html: -9
19+
blog/tag/*: -2
20+
blog/category/*: -3
21+
blog/author/*: -5
22+
blog/20[0-9].html: -5
23+
blog/archive.html: -5
24+
blog/author.html: -5
25+
blog/category.html: -5
26+
blog/drafts.html: -5
27+
blog/tag.html: -5
28+
blog.html: -5
29+
object_index/*: -1
30+
31+
ignore:
32+
- 404.html
33+
- search.html
34+
- index.html

examples/conf.py

+8
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ def setup(app: Sphinx):
8383
"article_header_end": ["nb-badges"],
8484
"show_prev_next": True,
8585
"article_footer_items": ["rendered_citation.html"],
86+
"search_bar_text": "Search within the PyMC example gallery...",
87+
"icon_links": [
88+
{
89+
"url": "https://github.com/pymc-devs/pymc-examples",
90+
"icon": "fa-brands fa-github",
91+
"name": "GitHub",
92+
},
93+
],
8694
}
8795
version = version if "." in rtd_version else "main"
8896
doi_code = os.environ.get("DOI_READTHEDOCS", "10.5281/zenodo.5654871")

requirements-docs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ matplotlib
33
myst-nb
44
sphinx-codeautolink
55
sphinx>=5
6-
pymc-sphinx-theme
6+
pymc-sphinx-theme>=0.16
77
sphinx-copybutton
88
sphinx-design
99
sphinx-notfound-page

0 commit comments

Comments
 (0)