Skip to content

Commit 75ee781

Browse files
12rambaudrammock
andauthored
remove emoji from landing page (#1151)
* add fa icons instead of emoji * remove fix for emojis * use markup for readme emojis * use pst-color-primary instead of sd-text-primary * make our semantic colors available as classes * try again --------- Co-authored-by: Daniel McCloy <[email protected]>
1 parent bcc1471 commit 75ee781

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/tests.yml

-4
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ jobs:
104104
cache: "pip"
105105
cache-dependency-path: "pyproject.toml"
106106
- name: Install dependencies
107-
shell: bash
108-
# setting shell to BASH and using PYTHONUTF8 env var makes the editable
109-
# install work on Windows even though there are emoji in our README
110107
run: |
111-
export PYTHONUTF8=1
112108
python -m pip install --upgrade pip wheel setuptools
113109
python -m pip install -e .[doc]
114110
- name: Show installed versions

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
A clean, three-column, Bootstrap-based Sphinx theme by and for the [PyData community](https://pydata.org).
1111

12-
- 📚 Documentation: https://pydata-sphinx-theme.readthedocs.io/en/stable
13-
- 💡 Examples: https://pydata-sphinx-theme.readthedocs.io/en/stable/examples
14-
- 🙌 Contribute: https://pydata-sphinx-theme.readthedocs.io/en/stable/community
12+
- :books: Documentation: https://pydata-sphinx-theme.readthedocs.io/en/stable
13+
- :bulb: Examples: https://pydata-sphinx-theme.readthedocs.io/en/stable/examples
14+
- :raised_hands: Contribute: https://pydata-sphinx-theme.readthedocs.io/en/stable/community
1515

1616
[![Example documentation with this theme](./docs/_static/theme_landing.png)](https://pydata-sphinx-theme.readthedocs.io/en/stable)
1717

docs/index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ A clean, Bootstrap-based Sphinx theme by and for [the PyData community](https://
1414
```{gallery-grid}
1515
:grid-columns: 1 2 2 3
1616
17-
- header: "{guilabel}`B` Built with Bootstrap"
17+
- header: "{fab}`bootstrap;pst-color-primary` Built with Bootstrap"
1818
content: "Use Bootstrap classes and functionality in your documentation."
19-
- header: " Responsive Design"
19+
- header: "{fas}`bolt;pst-color-primary` Responsive Design"
2020
content: "Site sections will change behavior and size at different screen sizes."
21-
- header: "🌗 Light / Dark theme"
21+
- header: "{fas}`circle-half-stroke;pst-color-primary` Light / Dark theme"
2222
content: "Users can toggle between light and dark themes interactively."
23-
- header: "🎨 Customizable UI and themes"
23+
- header: "{fas}`palette;pst-color-primary` Customizable UI and themes"
2424
content: "Customize colors and branding with CSS variables, and build custom UIs with [Sphinx Design](user_guide/web-components)."
25-
- header: "{fab}`python` Supports PyData and Jupyter"
25+
- header: "{fab}`python;pst-color-primary` Supports PyData and Jupyter"
2626
content: "CSS and UI support for Jupyter extensions and PyData execution outputs."
2727
link: "examples/pydata.html"
28-
- header: "💡 Example Gallery"
28+
- header: "{fas}`lightbulb;pst-color-primary` Example Gallery"
2929
content: "See our gallery of projects that use this theme."
3030
link: "examples/gallery.html"
3131
```

src/pydata_sphinx_theme/assets/styles/variables/_color.scss

+7
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,10 @@ $pst-semantic-colors: (
129129
}
130130
}
131131
}
132+
133+
// assign classes too, for runtime use of theme colors
134+
@each $name, $value in $pst-semantic-colors {
135+
.pst-color-#{$name} {
136+
color: var(--pst-color-#{$name});
137+
}
138+
}

0 commit comments

Comments
 (0)