Skip to content

Commit

Permalink
update theme (pymc-devs#465)
Browse files Browse the repository at this point in the history
* update theme

* have only logo in navbar start section

* fix secondary sidebar
  • Loading branch information
OriolAbril authored Nov 16, 2022
1 parent e4106d4 commit 0ff69a3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 64 deletions.
21 changes: 0 additions & 21 deletions _static/custom.css

This file was deleted.

9 changes: 0 additions & 9 deletions _templates/donate.html

This file was deleted.

4 changes: 0 additions & 4 deletions _templates/search-field.html

This file was deleted.

32 changes: 3 additions & 29 deletions examples/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,35 +112,10 @@ def setup(app: Sphinx):
# a list of builtin themes.

# theme options
html_theme = "pydata_sphinx_theme"
html_theme = "pymc_sphinx_theme"
html_theme_options = {
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/pymc-devs/pymc-examples",
"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",
},
],
"search_bar_text": "Search...",
"navbar_end": ["navbar-icon-links.html"],
"page_sidebar_items": ["postcard", "page-toc", "edit-this-page", "donate"],
"google_analytics_id": "G-6KPRBTE6WV",
"header_links_before_dropdown": 6,
"secondary_sidebar_items": ["postcard", "page-toc", "edit-this-page", "sourcelink", "donate"],
"navbar_start": ["navbar-logo"],
"logo": {
"link": "https://www.pymc.io",
},
Expand Down Expand Up @@ -170,7 +145,6 @@ def setup(app: Sphinx):
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["../_static"]
html_extra_path = ["../_thumbnails"]
html_css_files = ["custom.css"]
templates_path = ["../_templates"]
html_sidebars = {
"**": [
Expand Down
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
myst-nb
sphinx==5.0.2 # see https://github.com/pymc-devs/pymc-examples/issues/409
pydata_sphinx_theme>=0.11.0
git+https://github.com/pymc-devs/pymc-sphinx-theme
sphinx-design
sphinx-copybutton
sphinxcontrib-bibtex
Expand Down

0 comments on commit 0ff69a3

Please sign in to comment.