Skip to content
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

fix: stop using squared icon for github and twitter #1250

Merged
merged 15 commits into from
Apr 13, 2023
16 changes: 16 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,19 @@ div.admonition.admonition-youtube > .admonition-title:after {
content: "\f26c"; /* fa-solid fa-tv */
}
/* end-custom-youtube */

/* custom colors for the icon-links in the navbar */
html[data-theme="dark"] .navbar-icon-links .fa-github {
color: white;
}
html[data-theme="light"] .navbar-icon-links .fa-github {
color: #333;
}

.navbar-icon-links .fa-twitter {
color: #1da1f2;
}

.navbar-icon-links .fa-python {
color: #4584b6;
}
12rambau marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 13 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,24 @@
"name": "Donate to NumFocus",
},
],
"github_url": "https://github.com/pydata/pydata-sphinx-theme",
"twitter_url": "https://twitter.com/PyData",
# "github_url": "https://github.com/pydata/pydata-sphinx-theme",
# "twitter_url": "https://twitter.com/PyData",
12rambau marked this conversation as resolved.
Show resolved Hide resolved
"header_links_before_dropdown": 4,
"icon_links": [
{
"name": "Twitter",
"url": "https://twitter.com/PyData",
"icon": "fa-brands fa-twitter",
},
{
"name": "GitHub",
"url": "https://github.com/pydata/pydata-sphinx-theme",
"icon": "fa-brands fa-github",
},
{
"name": "PyPI",
"url": "https://pypi.org/project/pydata-sphinx-theme",
"icon": "fa-solid fa-box",
"icon": "fa-brands fa-python",
12rambau marked this conversation as resolved.
Show resolved Hide resolved
},
{
"name": "PyData",
Expand Down