Skip to content

Commit 0ff69a3

Browse files
authored
update theme (pymc-devs#465)
* update theme * have only logo in navbar start section * fix secondary sidebar
1 parent e4106d4 commit 0ff69a3

File tree

5 files changed

+4
-64
lines changed

5 files changed

+4
-64
lines changed

_static/custom.css

-21
This file was deleted.

_templates/donate.html

-9
This file was deleted.

_templates/search-field.html

-4
This file was deleted.

examples/conf.py

+3-29
Original file line numberDiff line numberDiff line change
@@ -112,35 +112,10 @@ def setup(app: Sphinx):
112112
# a list of builtin themes.
113113

114114
# theme options
115-
html_theme = "pydata_sphinx_theme"
115+
html_theme = "pymc_sphinx_theme"
116116
html_theme_options = {
117-
"icon_links": [
118-
{
119-
"name": "GitHub",
120-
"url": "https://github.com/pymc-devs/pymc-examples",
121-
"icon": "fab fa-github-square",
122-
},
123-
{
124-
"name": "Twitter",
125-
"url": "https://twitter.com/pymc_devs",
126-
"icon": "fab fa-twitter-square",
127-
},
128-
{
129-
"name": "YouTube",
130-
"url": "https://www.youtube.com/c/PyMCDevelopers",
131-
"icon": "fab fa-youtube",
132-
},
133-
{
134-
"name": "Discourse",
135-
"url": "https://discourse.pymc.io",
136-
"icon": "fab fa-discourse",
137-
},
138-
],
139-
"search_bar_text": "Search...",
140-
"navbar_end": ["navbar-icon-links.html"],
141-
"page_sidebar_items": ["postcard", "page-toc", "edit-this-page", "donate"],
142-
"google_analytics_id": "G-6KPRBTE6WV",
143-
"header_links_before_dropdown": 6,
117+
"secondary_sidebar_items": ["postcard", "page-toc", "edit-this-page", "sourcelink", "donate"],
118+
"navbar_start": ["navbar-logo"],
144119
"logo": {
145120
"link": "https://www.pymc.io",
146121
},
@@ -170,7 +145,6 @@ def setup(app: Sphinx):
170145
# so a file named "default.css" will overwrite the builtin "default.css".
171146
html_static_path = ["../_static"]
172147
html_extra_path = ["../_thumbnails"]
173-
html_css_files = ["custom.css"]
174148
templates_path = ["../_templates"]
175149
html_sidebars = {
176150
"**": [

requirements-docs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
myst-nb
22
sphinx==5.0.2 # see https://github.com/pymc-devs/pymc-examples/issues/409
3-
pydata_sphinx_theme>=0.11.0
3+
git+https://github.com/pymc-devs/pymc-sphinx-theme
44
sphinx-design
55
sphinx-copybutton
66
sphinxcontrib-bibtex

0 commit comments

Comments
 (0)