Skip to content

use pymc_sphinx_theme instead of pydata directly #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions _static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@
.bg-pymc-three {
background-color: #e7b07b96 !important;
}

.navbar-brand {
display: inline-block !important;
}

.supportbutton a {
color: var(--pst-color-sidebar-link-active);
}
9 changes: 0 additions & 9 deletions _templates/donate.html

This file was deleted.

41 changes: 4 additions & 37 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
"sphinxext.rediraffe",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
Expand All @@ -61,8 +58,8 @@

# -- Options for extensions

jupyter_execute_notebooks = "auto"
execution_excludepatterns = ["*.ipynb"]
nb_execution_mode = "auto"
nb_execution_excludepatterns = ["*.ipynb"]
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath"]

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

ogp_custom_meta_tags = [
# TODO: add fancy twitter specific metadata
# '<meta property="og:ignore_canonical" content="true" />',
]

# -- Options for HTML output -------------------------------------------------

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

html_theme_options = {
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/pymc-devs/pymc",
"icon": "fab fa-github-square",
},
{
"name": "Twitter",
"url": "https://twitter.com/pymc_devs",
"icon": "fab fa-twitter-square",
},
{
"name": "YouTube",
"url": "https://www.youtube.com/c/PyMCDevelopers",
"icon": "fab fa-youtube",
},
{
"name": "Discourse",
"url": "https://discourse.pymc.io",
"icon": "fab fa-discourse",
},
],
"use_edit_page_button": True,
"navbar_end": ["search-field.html", "navbar-icon-links.html"],
"page_sidebar_items": ["page-toc", "edit-this-page", "donate"],
"search_bar_text": "Search...",
"show_nav_level": 2,
"navbar_start": ["navbar-logo"],
}
html_context = {
"github_user": "pymc-devs",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Sphinx
pydata-sphinx-theme<0.10.1
sphinx-copybutton
sphinx-design
myst-nb
Expand All @@ -9,3 +8,4 @@ sphinxext-opengraph
sphinx-notfound-page
jupyterlite-sphinx
sphinxext-rediraffe
git+https://github.com/pymc-devs/pymc-sphinx-theme