Skip to content

Commit 0873df9

Browse files
committed
add theme features to readme
1 parent aafcf3d commit 0873df9

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
# pymc-sphinx-theme
22

3-
A thin sphinx theme to customize pydata-sphinx-theme consistently cross PyMC websites.
3+
A thin sphinx theme to customize [pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io) (PST) consistently cross PyMC websites.
4+
5+
## Theme customizations
6+
7+
### Custom search page
8+
PyMC docs are organized as subprojects in readthedocs. The custom search page shows two
9+
search bars, one that triggers the readthedocs search function of the parent project
10+
and that allows searching accross subprojects, and the PST one for local search
11+
within that particular project only.
12+
13+
![Search page with two search bars](./screenshots/double_search_bar.png)
14+
15+
![Flyout of the global readthedocs search](./screenshots/global_rtd_search.png)
16+
17+
### Centralize navbar customization
18+
The version indicator by the logo/project name is added as well as the mastodon, twitter,
19+
youtube and discord icon links. If no icon links are provided by the specific project,
20+
an extra link to the GitHub org is added, otherwise the project provided links are extended
21+
with the four mentioned.
22+
23+
### Extra right sidebar elements
24+
An extra "Support PyMC" link to the NumFOCUS donation page is automatically added,
25+
and the template of the "Edit on GitHub" link is modified so it is not shown in API pages that
26+
are generated from a docstring. The logic of this exclusion is extremely simple, as we use
27+
`:toctree: generated/` as autosummary option, pages with "generated" in their path are excluded.

screenshots/double_search_bar.png

22.7 KB
Loading

screenshots/global_rtd_search.png

66.5 KB
Loading

0 commit comments

Comments
 (0)