Skip to content

Commit 3a718f2

Browse files
authored
Update docs theme (#7781)
* try updated theme * updates to conf.py * configure search and use conda-forge release
1 parent ef26ae8 commit 3a718f2

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.readthedocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ build:
1515
os: "ubuntu-22.04"
1616
tools:
1717
python: "mambaforge-4.10"
18+
19+
search:
20+
ranking:
21+
_sources/*: -10
22+
_modules/*: -5
23+
genindex.html: -9
24+
'*__init__.html': -3
25+
'*dist.html': -3
26+
27+
ignore:
28+
- 404.html
29+
- search.html
30+
- index.html

conda-envs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
- numpydoc
2727
- polyagamma
2828
- pre-commit>=2.8.0
29-
- pymc-sphinx-theme==0.14
29+
- pymc-sphinx-theme>=0.16
3030
- sphinx-copybutton
3131
- sphinx-design
3232
- sphinx-notfound-page

docs/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,14 @@ def setup(app):
351351
"logo": {
352352
"link": "https://www.pymc.io",
353353
},
354+
"search_bar_text": "Search within PyMC library docs...",
355+
"icon_links": [
356+
{
357+
"url": "https://github.com/pymc-devs/pymc",
358+
"icon": "fa-brands fa-github",
359+
"name": "GitHub",
360+
},
361+
],
354362
}
355363
html_context = {
356364
"github_user": "pymc-devs",

0 commit comments

Comments
 (0)