diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css
deleted file mode 100644
index 613a4e65..00000000
--- a/docs/source/_static/custom.css
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Make each footer item in-line so they stack horizontally instead of vertically */
-.footer-item {
- display: inline-block;
-}
-
-/* Add a separating border line for all but the last item */
-/*
-.footer-item:not(:last-child) {
- border-right: 1px solid var(--pst-color-text-base);
- margin-right: .5em;
- padding-right: .5em;
-}
-*/
-
-.footer-item ul {
- list-style: none;
- display: flex;
- padding-left: 0;
- margin-bottom: 0;
-}
-
-.footer-item ul li {
- padding-right: .5em;
-}
-
-.footer-item li a.nav-link {
- color: var(--pst-color-text-muted);
-}
-
-.footer-item li a.nav-link:hover {
- color: var(--pst-color-primary);
- text-decoration: none;
-}
-
-/* Remove footer icon text for small screen width and increase icons size */
-@media (max-width: 660px) {
- .footer-item li a.nav-link i {
- padding-right: 0.5em;
- font-size: calc(var(--bs-body-font-size) * 1.5);
- }
-
- .footer-item li a.nav-link span {
- font-size: 0;
- }
-}
-
-footer.bd-footer {
- position: static;
- bottom: auto;
- background: var(--pst-color-on-background) !important;
-}
-
-/* Make footer non-sticky when lines start to wrap-around*/
-@media (max-width: 520px) {
- footer.bd-footer {
- position: inherit;
- }
-}
-
-.causalpy-name {
- padding-left: 2rem;
-}
-
-@media (min-width: 960px) {
- .navbar-center-item {
- padding-right: 4em;
- }
-}
-
-.no-border {
- border: none !important;
-}
diff --git a/docs/source/_static/flat_logo.png b/docs/source/_static/flat_logo.png
new file mode 100644
index 00000000..534aa025
Binary files /dev/null and b/docs/source/_static/flat_logo.png differ
diff --git a/docs/source/_static/flat_logo_darkmode.png b/docs/source/_static/flat_logo_darkmode.png
new file mode 100644
index 00000000..106bc5e9
Binary files /dev/null and b/docs/source/_static/flat_logo_darkmode.png differ
diff --git a/docs/source/_templates/footer-links.html b/docs/source/_templates/footer-links.html
deleted file mode 100644
index a195e44c..00000000
--- a/docs/source/_templates/footer-links.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
diff --git a/docs/source/_templates/navbar-name.html b/docs/source/_templates/navbar-name.html
deleted file mode 100644
index f85cb5f2..00000000
--- a/docs/source/_templates/navbar-name.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ project }} {{ release }}
diff --git a/docs/source/conf.py b/docs/source/conf.py
index a33611d9..70b683aa 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -40,6 +40,7 @@
release = __version__
+version = release
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -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",
diff --git a/pyproject.toml b/pyproject.toml
index e074fb9a..83345b80 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -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",