Skip to content

Commit 4cc4ba5

Browse files
OriolAbriltwieckijuanitorduz
authored
use labs theme as external (#830)
* use labs theme as external * Update docs/source/index.md Co-authored-by: Thomas Wiecki <[email protected]> * install theme from pypi --------- Co-authored-by: Thomas Wiecki <[email protected]> Co-authored-by: Juan Orduz <[email protected]>
1 parent 6619076 commit 4cc4ba5

File tree

8 files changed

+16
-147
lines changed

8 files changed

+16
-147
lines changed

docs/source/_static/custom.css

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

docs/source/_static/flat_logo.png

22 KB
Loading
12.3 KB
Loading

docs/source/_templates/footer-links.html

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

docs/source/_templates/navbar-name.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/source/conf.py

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121

122122
# The theme to use for HTML and HTML Help pages. See the documentation for
123123
# a list of builtin themes.
124-
html_theme = "pydata_sphinx_theme"
124+
html_theme = "labs_sphinx_theme"
125125

126126
html_favicon = "_static/favicon.ico"
127127

@@ -130,40 +130,10 @@
130130
# documentation.
131131
html_theme_options = {
132132
"logo": {
133-
"image_light": "marketing-logo-light.jpg",
134-
"image_dark": "marketing-logo-dark.jpg",
133+
"image_light": "flat_logo.png",
134+
"image_dark": "flat_logo_darkmode.png",
135135
},
136-
"navbar_align": "right",
137-
"navbar_start": ["navbar-logo", "navbar-name"],
138-
"navbar_end": ["theme-switcher"],
139-
"footer_start": ["copyright", "footer-links"],
140-
"footer_end": ["sphinx-version", "theme-version"],
141-
"github_url": "https://github.com/pymc-labs/pymc-marketing",
142-
"twitter_url": "https://twitter.com/pymc_labs",
143-
"icon_links": [
144-
{
145-
"name": "LinkedIn",
146-
"url": "https://www.linkedin.com/company/pymc-labs/",
147-
"icon": "fa-brands fa-linkedin",
148-
"type": "fontawesome",
149-
},
150-
{
151-
"name": "MeetUp",
152-
"url": "https://www.meetup.com/pymc-labs-online-meetup/",
153-
"icon": "fa-brands fa-meetup",
154-
"type": "fontawesome",
155-
},
156-
{
157-
"name": "YouTube",
158-
"url": "https://www.youtube.com/c/PyMCLabs",
159-
"icon": "fa-brands fa-youtube",
160-
"type": "fontawesome",
161-
},
162-
],
163-
"use_edit_page_button": True,
164-
"external_links": [
165-
{"name": "About PyMC Labs", "url": "https://pymc-labs.io"},
166-
],
136+
"analytics": {"google_analytics_id": "G-DNPNG22HVY"},
167137
}
168138
html_context = {
169139
"github_user": "pymc-labs",
@@ -177,7 +147,6 @@
177147
# relative to this directory. They are copied after the builtin static files,
178148
# so a file named "default.css" will overwrite the builtin "default.css".
179149
html_static_path = ["_static/"]
180-
html_css_files = ["custom.css"]
181150

182151
# -- Options for LaTeX output ---------------------------------------------
183152

docs/source/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# PyMC Marketing: Open Source Marketing Analytics Solution
1+
:::{image} _static/marketing-logo-dark.jpg
2+
:align: center
3+
:class: only-dark
4+
:::
5+
6+
:::{image} _static/marketing-logo-light.jpg
7+
:align: center
8+
:class: only-light
9+
:::
10+
11+
# PyMC-Marketing - Open Source Marketing Analytics Solution
212

313
**Unlock the power of marketing analytics with PyMC-Marketing – the python based open source solution for smarter decision-making.** Marketing mix modeling and customer lifetime value modules allow businesses to make data-driven decisions about their marketing campaigns. Optimize your marketing strategy and unlock the full potential of your customer data.
414

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ docs = [
5353
"blackjax",
5454
"nutpie",
5555
"numba",
56-
"pydata-sphinx-theme>=0.12.0.dev0",
56+
"labs-sphinx-theme",
5757
"sphinx-copybutton",
5858
"sphinx-autodoc-typehints",
5959
"sphinxext-opengraph",

0 commit comments

Comments
 (0)