Skip to content

Commit

Permalink
Merge pull request #385 from OriolAbril/docs_theme
Browse files Browse the repository at this point in the history
use labs theme from external repo
  • Loading branch information
drbenvincent authored Jul 12, 2024
2 parents 480816b + 9e4c885 commit 1ce815f
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 147 deletions.
72 changes: 0 additions & 72 deletions docs/source/_static/custom.css

This file was deleted.

Binary file added docs/source/_static/flat_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/flat_logo_darkmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 0 additions & 38 deletions docs/source/_templates/footer-links.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/_templates/navbar-name.html

This file was deleted.

40 changes: 5 additions & 35 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@


release = __version__
version = release

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down Expand Up @@ -132,49 +133,18 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "pydata_sphinx_theme"
html_theme = "labs_sphinx_theme"
html_static_path = ["_static"]
html_css_files = ["custom.css"]
html_favicon = "_static/favicon_logo.png"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"logo": {
"image_light": "_static/logo.png",
"image_dark": "_static/logo.png",
"image_light": "_static/flat_logo.png",
"image_dark": "_static/flat_logo_darkmode.png",
},
"navbar_align": "right",
"navbar_start": ["navbar-logo", "navbar-name"],
"navbar_end": ["theme-switcher"],
"footer_start": ["copyright", "footer-links"],
"footer_end": ["sphinx-version", "theme-version"],
"github_url": "https://github.com/pymc-labs/CausalPy",
"twitter_url": "https://twitter.com/pymc_labs",
"icon_links": [
{
"name": "LinkedIn",
"url": "https://www.linkedin.com/company/pymc-labs/",
"icon": "fa-brands fa-linkedin",
"type": "fontawesome",
},
{
"name": "MeetUp",
"url": "https://www.meetup.com/pymc-labs-online-meetup/",
"icon": "fa-brands fa-meetup",
"type": "fontawesome",
},
{
"name": "YouTube",
"url": "https://www.youtube.com/c/PyMCLabs",
"icon": "fa-brands fa-youtube",
"type": "fontawesome",
},
],
"use_edit_page_button": True,
"external_links": [
{"name": "About PyMC Labs", "url": "https://pymc-labs.io"},
],
"analytics": {"google_analytics_id": "G-3MCDG3M7X6"},
}
html_context = {
"github_user": "pymc-labs",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ docs = [
"sphinx",
"sphinx-autodoc-typehints",
"sphinx_autodoc_defaultargs",
"pydata-sphinx-theme>=0.12.0.dev0",
"labs-sphinx-theme @ git+https://github.com/pymc-labs/labs-sphinx-theme",
"sphinx-copybutton",
"sphinx-rtd-theme",
"statsmodels",
Expand Down

0 comments on commit 1ce815f

Please sign in to comment.