Skip to content

Commit 2508493

Browse files
authored
use pymc_sphinx_theme instead of pydata directly (#57)
* use pymc_sphinx_theme instead of pydata directly * remove unused config variable * show only logo in navbar start section
1 parent 18edc0a commit 2508493

File tree

4 files changed

+5
-55
lines changed

4 files changed

+5
-55
lines changed

_static/custom.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,3 @@
99
.bg-pymc-three {
1010
background-color: #e7b07b96 !important;
1111
}
12-
13-
.navbar-brand {
14-
display: inline-block !important;
15-
}
16-
17-
.supportbutton a {
18-
color: var(--pst-color-sidebar-link-active);
19-
}

_templates/donate.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

conf.py

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
"sphinxext.rediraffe",
4545
]
4646

47-
# Add any paths that contain templates here, relative to this directory.
48-
templates_path = ['_templates']
49-
5047
# List of patterns, relative to source directory, that match files and
5148
# directories to ignore when looking for source files.
5249
# This pattern also affects html_static_path and html_extra_path.
@@ -61,8 +58,8 @@
6158

6259
# -- Options for extensions
6360

64-
jupyter_execute_notebooks = "auto"
65-
execution_excludepatterns = ["*.ipynb"]
61+
nb_execution_mode = "auto"
62+
nb_execution_excludepatterns = ["*.ipynb"]
6663
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath"]
6764

6865
intersphinx_mapping = {
@@ -128,49 +125,19 @@ def setup(app):
128125
ogp_image = "https://www.pymc.io/_static/PyMC.jpg"
129126
ogp_use_first_image = True
130127

131-
ogp_custom_meta_tags = [
132-
# TODO: add fancy twitter specific metadata
133-
# '<meta property="og:ignore_canonical" content="true" />',
134-
]
135-
136128
# -- Options for HTML output -------------------------------------------------
137129

138130
# The theme to use for HTML and HTML Help pages. See the documentation for
139131
# a list of builtin themes.
140132
#
141-
html_theme = "pydata_sphinx_theme"
133+
html_theme = "pymc_sphinx_theme"
142134
# Add any paths that contain custom static files (such as style sheets) here,
143135
# relative to this directory. They are copied after the builtin static files,
144136
# so a file named "default.css" will overwrite the builtin "default.css".
145137

146138
html_theme_options = {
147-
"icon_links": [
148-
{
149-
"name": "GitHub",
150-
"url": "https://github.com/pymc-devs/pymc",
151-
"icon": "fab fa-github-square",
152-
},
153-
{
154-
"name": "Twitter",
155-
"url": "https://twitter.com/pymc_devs",
156-
"icon": "fab fa-twitter-square",
157-
},
158-
{
159-
"name": "YouTube",
160-
"url": "https://www.youtube.com/c/PyMCDevelopers",
161-
"icon": "fab fa-youtube",
162-
},
163-
{
164-
"name": "Discourse",
165-
"url": "https://discourse.pymc.io",
166-
"icon": "fab fa-discourse",
167-
},
168-
],
169-
"use_edit_page_button": True,
170-
"navbar_end": ["search-field.html", "navbar-icon-links.html"],
171-
"page_sidebar_items": ["page-toc", "edit-this-page", "donate"],
172-
"search_bar_text": "Search...",
173139
"show_nav_level": 2,
140+
"navbar_start": ["navbar-logo"],
174141
}
175142
html_context = {
176143
"github_user": "pymc-devs",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Sphinx
2-
pydata-sphinx-theme<0.10.1
32
sphinx-copybutton
43
sphinx-design
54
myst-nb
@@ -9,3 +8,4 @@ sphinxext-opengraph
98
sphinx-notfound-page
109
jupyterlite-sphinx
1110
sphinxext-rediraffe
11+
git+https://github.com/pymc-devs/pymc-sphinx-theme

0 commit comments

Comments
 (0)