Skip to content

Commit ff3a81e

Browse files
authored
misc doc improvements and theme update (#225)
* misc doc improvements and theme update * make local search bar text specific * configure search and use pypi release * ignore example notebooks in bart docs from global search
1 parent 536e517 commit ff3a81e

File tree

3 files changed

+17
-35
lines changed

3 files changed

+17
-35
lines changed

.readthedocs.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ sphinx:
66
configuration: docs/conf.py
77

88
build:
9-
os: ubuntu-20.04
9+
os: ubuntu-24.04
1010
tools:
11-
python: "3.10"
11+
python: "3.12"
1212

1313
python:
1414
install:
1515
- requirements: requirements-docs.txt
1616
- requirements: requirements.txt
1717
- method: pip
1818
path: .
19+
20+
search:
21+
ranking:
22+
_sources/*: -10
23+
_modules/*: -5
24+
genindex.html: -9
25+
26+
ignore:
27+
- 404.html
28+
- search.html
29+
- index.html
30+
- 'examples/*'

docs/conf.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"sphinx_design",
2222
"sphinxcontrib.bibtex",
2323
"sphinx_codeautolink",
24-
"sphinx_remove_toctrees",
2524
]
2625

2726
# List of patterns, relative to source directory, that match files and
@@ -73,24 +72,14 @@
7372
html_theme = "pymc_sphinx_theme"
7473
html_theme_options = {
7574
"secondary_sidebar_items": ["page-toc", "edit-this-page", "sourcelink", "donate"],
75+
"search_bar_text": "Search within PyMC-BART...",
7676
"navbar_start": ["navbar-logo"],
7777
"icon_links": [
7878
{
7979
"url": "https://github.com/pymc-devs/pymc-bart",
8080
"icon": "fa-brands fa-github",
8181
"name": "GitHub",
8282
},
83-
{
84-
"url": "https://twitter.com/pymc_devs/",
85-
"icon": "fa-brands fa-twitter",
86-
"name": "Twitter",
87-
},
88-
{
89-
"url": "https://www.youtube.com/c/PyMCDevelopers",
90-
"icon": "fa-brands fa-youtube",
91-
"name": "YouTube",
92-
},
93-
{"url": "https://discourse.pymc.io", "icon": "fa-brands fa-discourse", "name": "Discourse"},
9483
],
9584
}
9685

@@ -144,23 +133,6 @@
144133
nb_execution_mode = "off"
145134

146135

147-
remove_from_toctrees = [
148-
"BART/*",
149-
"case_studies/*",
150-
"causal_inference/*",
151-
"diagnostics_and_criticism/*",
152-
"gaussian_processes/*",
153-
"generalized_linear_models/*",
154-
"mixture_models/*",
155-
"ode_models/*",
156-
"howto/*",
157-
"samplers/*",
158-
"splines/*",
159-
"survival_analysis/*",
160-
"time_series/*",
161-
"variational_inference/*",
162-
]
163-
164136
# bibtex config
165137
bibtex_bibfiles = ["references.bib"]
166138
bibtex_default_style = "unsrt"

requirements-docs.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
myst-nb
2-
sphinx==5.0.2 # see https://github.com/pymc-devs/pymc-examples/issues/409
3-
git+https://github.com/pymc-devs/pymc-sphinx-theme
2+
sphinx
3+
pymc-sphinx-theme>=0.16
44
sphinxcontrib-bibtex
5-
nbsphinx
65
sphinx_design
76
sphinx_codeautolink
8-
sphinx_remove_toctrees

0 commit comments

Comments
 (0)