Skip to content

Commit 3e02d4d

Browse files
12rambaucholdgrafdrammocknicoadependabot[bot]
authored
update branch (#7)
* Fix extra whitespace in sidebars (pydata#1115) * Fix extra whitespace in sidebars * Searchbox * Update src/pydata_sphinx_theme/__init__.py Co-authored-by: Daniel McCloy <[email protected]> * make test pass * Fix template filter to remove empty files * ABlog in template test * Move clear search button to primary sidebar * Move search clear button to top of article Co-authored-by: Daniel McCloy <[email protected]> * FIX: Use logo_url instead deprecated logo in theme (pydata#1094) (pydata#1097) resolves pydata#1094 * ENH/MAINT: avoid overwriting the HtmlTranslator (pydata#1105) Co-authored-by: Chris Holdgraf <[email protected]> Fix pydata#143 Fix pydata#94 * fix: align sidebar sliding with the buttons (pydata#1123) * fix: aline the sidebar sliding with the buttons * build: force test to run on all platform if one platform is failing we cannot see if it's platform related as the other were closed * fix: use correct path for documentation logo * MAINT: Improve font sizing (pydata#1129) Fix pydata#1001 * MAINT: Refactor workflows to reduce test dependencies (pydata#1136) * MAINT: update prerelease workflow (pydata#1140) * ABlog: Updates for new HTML structure (pydata#1118) * ABlog: Updates for new HTML structure * Update templates for latest release * Bump to dev0 * Standardize logo image behavior between Sphinx and this theme (pydata#1132) Co-authored-by: Daniel McCloy <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]> * 0.13.0rc1 * Build(deps): Bump http-cache-semantics from 4.1.0 to 4.1.1 (pydata#1154) * DOC: Use only shield.io for badges in README (pydata#1152) * Copyright semicolon (pydata#1160) * FIX: Flex behavior should shrink header items instead of brand (pydata#1158) Co-authored-by: Chris Holdgraf <[email protected]> Fixes pydata#1143 * STYLE: lint the documentation with Doc8 (pydata#1150) Fix pydata#1139 * Add test for internationalization and translations (pydata#1138) * FIX: Javascript incorrect check for variable (pydata#1166) * MAINT: update pypi classifiers (pydata#1153) Fix pydata#1106 * remove emoji from landing page (pydata#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]> * FIX: Narrow scope of style rule for GitHub & GitLab link shortening (pydata#1167) Fixes pydata#1156 * ENH: Add breadcrumbs to article header (pydata#1142) * ENH: Add breadcrumbs to article header * Update src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html Co-authored-by: Tania Allard <[email protected]> * More fixes * Improving nested page behavior * Documenting breadcrumbs * Update src/pydata_sphinx_theme/assets/styles/components/_breadcrumbs.scss Co-authored-by: Rambaud Pierrick <[email protected]> * Breacrumbs have link color --------- Co-authored-by: Tania Allard <[email protected]> Co-authored-by: Rambaud Pierrick <[email protected]> * Degrade gracefully when JavaScript is disabled (pydata#1146) * Fix header vertical spacing and jupyter-sphinx cells (pydata#1164) Fixes undefined * RLS: v0.13.0rc2 (pydata#1170) * DOCS: admonition customization (pydata#1155) * first draft of the admonition customization * typo in doc link * flesh out admon. customization example; DRY * use :code:rst instead of :literal: * Update docs/_static/custom.css --------- Co-authored-by: Daniel McCloy <[email protected]> * Fix article header CSS (pydata#1171) * “Edit this page” → “Edit on GitHub/GitLab/Bitbucket” (pydata#1177) * “Edit this page” → “Edit on GitHub/GitLab/Bitbucket” Fixes pydata#1172 * Add tests * Fix typo * Properly handle default_mode=auto when writing logos (pydata#1183) We used to only defaulting to the light version when `default_mode` was undefined, not when it was explicitly set to `auto`. We also need to handle the latter, as the new test shows. Closes pydata#1180 Co-authored-by: Jérémy Bobbio (Lunar) <[email protected]> * fix: correctly add DOM listeners (pydata#1179) fix adding DOM listeners * maint: update GitLab URL tests (pydata#1186) Co-authored-by: JoerivanEngelen <[email protected]> * Standardize template structure in more sections (pydata#1184) * Standardize template structure in all sections * Fixing footer behavior * Update docs/user_guide/layout.rst Co-authored-by: Daniel McCloy <[email protected]> * Remove use of id= as much as possible --------- Co-authored-by: Daniel McCloy <[email protected]> * maint: remove sphinx-panels support; remove deprecated config shims (pydata#1188) * Minor style improvements to ablog (pydata#1185) * RLS: v0.13.0rc3 * dev0 * FIX: Some style bugs (pydata#1191) * FIX: Some style bugs * Move link word wrap to global rule * DOCS: Add internationalization instructions (pydata#1178) Co-authored-by: James McKinney <[email protected]> * Refactor contributing docs to be more modular (pydata#1173) * Dev0 * Fix github gitlab brand (pydata#1194) * RLS: v0.13.0rc4 * FIX: Make wide equations scroll (pydata#1196) * Fix math scrollbars for realz (pydata#1198) * Fix math scrollbars for realz * Update src/pydata_sphinx_theme/assets/styles/content/_math.scss * Update src/pydata_sphinx_theme/assets/styles/content/_math.scss * copy_logo_images: do not render dynamic Sphinx template content (pydata#1204) * copy_logo_images: do not render dynamic Sphinx template content when copying logo image files * Update src/pydata_sphinx_theme/__init__.py --------- Co-authored-by: Chris Holdgraf <[email protected]> * Add conditional check for last-updated template (pydata#1201) * Add conditional check for last-updated template * Whitespace * Properly set configuration with app.builder.theme_options (pydata#1199) * Properly set configuration * Dict to values * Making it explicit in a function * Better name * Fix test * Foot * Revert complex config set * Clarify docs * Use CSS transform for skip link (pydata#1206) * feat: Add full i18n support (pydata#1192) Co-authored-by: Daniel McCloy <[email protected]> Co-authored-by: James McKinney <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]> * Dev0 * FIX: Remove icon links component when no icon links given (pydata#1209) * RLS: 0.13.0rc5 * dev0 * FIX: Get theme options in a more robust way (pydata#1214) * RLS: v0.13.0rc6 * Make heading-style use the font-weight-heading value (pydata#1213) * Make heading-style use the font-weight-heading value * Separate font-weight setting for content headers and admonitions * Flip var to be consistent with --pst-font-weight-heading instead * RLS: v0.13.0 * bump: dev0 * DOCS: Remove <p> from announcement sample text (pydata#1223) --------- Co-authored-by: Chris Holdgraf <[email protected]> Co-authored-by: Daniel McCloy <[email protected]> Co-authored-by: Nico Albers <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brendan Heberlein <[email protected]> Co-authored-by: Tania Allard <[email protected]> Co-authored-by: Lunar <[email protected]> Co-authored-by: Jean Abou-Samra <[email protected]> Co-authored-by: Jérémy Bobbio (Lunar) <[email protected]> Co-authored-by: JoerivanEngelen <[email protected]> Co-authored-by: James McKinney <[email protected]> Co-authored-by: James Addison <[email protected]> Co-authored-by: Veronica Berglyd Olsen <[email protected]>
1 parent 6dd4e7b commit 3e02d4d

File tree

140 files changed

+3061
-1159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+3061
-1159
lines changed

.github/workflows/prerelease.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install (prerelease) dependencies
2929
run: |
3030
python -m pip install --upgrade pip wheel setuptools
31-
python -m pip install --upgrade --pre -e .[test]
31+
python -m pip install --upgrade --pre -e .[doc,test]
3232
3333
- name: Build docs to store
3434
run: |

.github/workflows/publish.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: "3.9"
23+
- name: Install gettext for translations
24+
run: |
25+
sudo apt-get install gettext
2326
- name: Build package
2427
run: |
2528
python -m pip install -U pip build

.github/workflows/tests.yml

+91-48
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
name: continuous-integration
22

3+
# README
4+
# ======
5+
#
6+
# All the jobs are defined with `matrix` for OS and Python version, even if we
7+
# only run them on one combination of OS/Python. The reason for this is you get
8+
# a nice side-effect that the OS and Python version of the job are listed in
9+
# parentheses next to the job name in the Actions UI.
10+
311
# This prevents workflows from being run twice on PRs
412
# ref: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
513
on:
@@ -14,85 +22,123 @@ env:
1422

1523
jobs:
1624
lint:
17-
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest]
28+
python-version: ["3.11"]
29+
runs-on: ${{ matrix.os }}
1830
steps:
1931
- uses: actions/checkout@v3
20-
- uses: actions/setup-python@v4
32+
- name: Setup Python
33+
uses: actions/setup-python@v4
2134
with:
22-
python-version: "3.9"
35+
python-version: ${{ matrix.python-version }}
2336
cache: "pip"
2437
cache-dependency-path: "pyproject.toml"
2538
- uses: pre-commit/[email protected]
2639

27-
tests:
28-
runs-on: ${{ matrix.os }}
40+
# run our test suite on various combinations of OS / Python / Sphinx version
41+
run-pytest:
2942
strategy:
43+
fail-fast: false
3044
matrix:
3145
os: [ubuntu-latest]
32-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
46+
python-version: ["3.8", "3.9", "3.10", "3.11"]
3347
include:
48+
# legacy test
49+
- os: ubuntu-latest
50+
python-version: "3.7"
51+
sphinx-version: "4.2"
52+
# macos test
3453
- os: macos-latest
35-
python-version: "3.9"
54+
python-version: "3.11"
55+
# windows test
3656
- os: windows-latest
37-
python-version: "3.9"
38-
57+
python-version: "3.11"
58+
runs-on: ${{ matrix.os }}
3959
steps:
4060
- uses: actions/checkout@v3
41-
- name: Set up Python ${{ matrix.python-version }}
61+
- name: Setup Python
4262
uses: actions/setup-python@v4
4363
with:
4464
python-version: ${{ matrix.python-version }}
4565
cache: "pip"
4666
cache-dependency-path: "pyproject.toml"
47-
4867
- name: Install dependencies
68+
# if Sphinx version not specified in matrix, the constraints in the
69+
# pyproject.toml file determine Sphinx version
70+
if: false == matrix.sphinx-version
71+
shell: bash
72+
# setting shell to BASH and using PYTHONUTF8 env var makes the editable
73+
# install work on Windows even though there are emoji in our README
4974
run: |
75+
export PYTHONUTF8=1
5076
python -m pip install --upgrade pip wheel setuptools
51-
python -m pip install -e .[coverage]
52-
python -m pip list
53-
54-
- name: Test Sphinx==4.2
55-
if: matrix.python-version == '3.7'
77+
python -m pip install -e .[test]
78+
- name: Install dependencies (legacy Sphinx)
79+
# here we override the pyproject.toml constraints to get a specific
80+
# Sphinx version.
81+
if: matrix.sphinx-version
5682
run: |
57-
python -m pip install sphinx==4.2
58-
python -m pip list
83+
python -m pip install --upgrade pip wheel setuptools
84+
python -m pip install -e .[test] sphinx==${{ matrix.sphinx-version }}
85+
- name: Show installed versions
86+
run: python -m pip list
87+
- name: Compile MO files
88+
run: |
89+
pip install nox
90+
nox -s compile
91+
- name: Run tests
92+
run: pytest --color=yes --cov pydata_sphinx_theme --cov-branch --cov-report term-missing:skip-covered --cov-fail-under ${{ env.COVERAGE_THRESHOLD }}
5993

60-
- name: Build docs to store
94+
# Build our site on the 3 major OSes and check for Sphinx warnings
95+
build-site:
96+
strategy:
97+
fail-fast: false
98+
matrix:
99+
os: [ubuntu-latest, macos-latest, windows-latest]
100+
python-version: ["3.11"]
101+
runs-on: ${{ matrix.os }}
102+
steps:
103+
- uses: actions/checkout@v3
104+
- name: Setup Python
105+
uses: actions/setup-python@v4
106+
with:
107+
python-version: ${{ matrix.python-version }}
108+
cache: "pip"
109+
cache-dependency-path: "pyproject.toml"
110+
- name: Install dependencies
111+
run: |
112+
python -m pip install --upgrade pip wheel setuptools
113+
python -m pip install -e .[doc]
114+
- name: Show installed versions
115+
run: python -m pip list
116+
- name: Build docs
61117
run: sphinx-build -b html docs/ docs/_build/html --keep-going -w warnings.txt
62-
63-
- name: Check that there are no unexpected Sphinx warnings
64-
if: matrix.python-version == '3.9'
118+
- name: Check for unexpected Sphinx warnings
65119
run: python tests/check_warnings.py
66120

67-
- name: Run the tests
68-
run: pytest --color=yes --cov pydata_sphinx_theme --cov-branch --cov-report term-missing:skip-covered --cov-fail-under ${{ env.COVERAGE_THRESHOLD }}
69-
70-
- name: Upload coverage
71-
if: ${{ always() }}
72-
run: codecov
73-
74121
# Run local Lighthouse audit against built site
75122
audit:
76-
runs-on: ubuntu-latest
77123
strategy:
78124
matrix:
79-
python-version: ["3.8"]
80-
125+
os: [ubuntu-latest]
126+
python-version: ["3.11"]
127+
runs-on: ${{ matrix.os }}
81128
steps:
82129
- uses: actions/checkout@v3
83-
84-
- name: Set up Python ${{ matrix.python-version }}
130+
- name: Setup Python
85131
uses: actions/setup-python@v4
86132
with:
87133
python-version: ${{ matrix.python-version }}
88134
cache: "pip"
89135
cache-dependency-path: "pyproject.toml"
90-
91136
- name: Install dependencies
92137
run: |
93138
python -m pip install --upgrade pip wheel setuptools
94-
python -m pip install -e .[coverage]
95-
139+
python -m pip install -e .[doc]
140+
- name: Show installed versions
141+
run: python -m pip list
96142
# We want to run the audit on a simplified documentation build so that
97143
# the audit results aren't affected by non-theme things like extensions.
98144
# Here we copy over just the kitchen sink into an empty docs site with
@@ -106,7 +152,6 @@ jobs:
106152
echo 'html_theme = "pydata_sphinx_theme"' > audit/site/conf.py
107153
echo '.. toctree::\n :glob:\n\n *' >> audit/site/index.rst
108154
sphinx-build audit/site audit/_build
109-
110155
# The lighthouse audit runs directly on the HTML files, no serving needed
111156
- name: Audit with Lighthouse
112157
uses: treosh/lighthouse-ci-action@v9
@@ -118,30 +163,28 @@ jobs:
118163

119164
# Generate a profile of the code and upload as an artifact
120165
profile:
121-
runs-on: ubuntu-latest
122166
strategy:
123167
matrix:
124-
python-version: ["3.8"]
125-
168+
os: [ubuntu-latest]
169+
python-version: ["3.11"]
170+
runs-on: ${{ matrix.os }}
126171
steps:
127172
- uses: actions/checkout@v3
128-
129-
- name: Set up Python ${{ matrix.python-version }}
173+
- name: Setup Python
130174
uses: actions/setup-python@v4
131175
with:
132176
python-version: ${{ matrix.python-version }}
133177
cache: "pip"
134178
cache-dependency-path: "pyproject.toml"
135-
136179
- name: Install dependencies
137180
run: |
138181
python -m pip install --upgrade pip wheel setuptools nox
139-
182+
python -m pip install -e .[test]
183+
- name: Show installed versions
184+
run: python -m pip list
140185
- name: Generate a profile
141-
run: |
142-
nox -s profile
186+
run: nox -s profile
143187
continue-on-error: true
144-
145188
- uses: actions/upload-artifact@v3
146189
with:
147190
name: profile-results

.gitignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848

49-
# Translations
50-
*.mo
51-
*.pot
52-
5349
# Django stuff:
5450
*.log
5551
local_settings.py
@@ -113,11 +109,15 @@ node_modules/
113109
.vscode
114110
.idea
115111

112+
# MacOSX store files
113+
**/.DS_Store
114+
115+
# THEME FILES
116116
# files from the gallery screenshots
117117
docs/_static/gallery
118118

119119
# Our site profile tests
120120
profile.svg
121121

122-
# MacOSX store files
123-
**/.DS_Store
122+
# Compiled translation files (are compiled at build time)
123+
src/pydata_sphinx_theme/locale/*/*/*.mo

.pre-commit-config.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_language_version:
55

66
repos:
77
- repo: https://github.com/pre-commit/mirrors-prettier
8-
rev: v3.0.0-alpha.4
8+
rev: v2.7.1
99
hooks:
1010
- id: prettier
1111
# Exclude the HTML, since it doesn't understand Jinja2
@@ -43,3 +43,8 @@ repos:
4343
hooks:
4444
- id: djlint-jinja
4545
types_or: ["html"]
46+
47+
- repo: https://github.com/PyCQA/doc8
48+
rev: v1.1.1
49+
hooks:
50+
- id: doc8

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# The PyData Sphinx Theme
22

3-
[![pypi](https://img.shields.io/pypi/v/pydata-sphinx-theme)](https://pypi.org/project/pydata-sphinx-theme/)
4-
[![conda-forge](https://img.shields.io/conda/vn/conda-forge/pydata-sphinx-theme.svg)](https://anaconda.org/conda-forge/pydata-sphinx-theme)
5-
[![continuous-integration](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml/badge.svg)](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml)
6-
[![docs](https://readthedocs.org/projects/pydata-sphinx-theme/badge/)](https://readthedocs.org/projects/pydata-sphinx-theme/builds/)
7-
[![codecov](https://codecov.io/gh/pydata/pydata-sphinx-theme/branch/main/graph/badge.svg?token=NwOObjYacn)](https://codecov.io/gh/pydata/pydata-sphinx-theme)
3+
[![License](https://img.shields.io/badge/License-BSD_3--Clause-yellow.svg)](https://github.com/pydata/pydata-sphinx-theme/blob/main/LICENSE)
4+
[![PyPI](https://img.shields.io/pypi/v/pydata-sphinx-theme?logo=python&logoColor=white&color=orange)](https://pypi.org/project/pydata-sphinx-theme/)
5+
[![conda-forge](https://img.shields.io/conda/vn/conda-forge/pydata-sphinx-theme.svg?logo=anaconda&logoColor=white&color=orange)](https://anaconda.org/conda-forge/pydata-sphinx-theme)
6+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/pydata/pydata-sphinx-theme/tests.yml?logo=github&logoColor=white)](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml)
7+
[![Read the Docs (version)](https://img.shields.io/readthedocs/pydata-sphinx-theme/latest?logo=readthedocs&logoColor=white)](https://readthedocs.org/projects/pydata-sphinx-theme/builds/)
8+
[![Codecov](https://img.shields.io/codecov/c/github/pydata/pydata-sphinx-theme?logo=codecov&logoColor=white)](https://codecov.io/gh/pydata/pydata-sphinx-theme)
89

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

11-
- 📚 Documentation: https://pydata-sphinx-theme.readthedocs.io/en/stable
12-
- 💡 Examples: https://pydata-sphinx-theme.readthedocs.io/en/stable/examples
13-
- 🙌 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
1415

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

babel.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See https://github.com/sphinx-doc/sphinx/blob/6.1.x/babel.cfg
2+
[jinja2: **.html]
3+
encoding = utf-8
4+
ignore_tags = script,style
5+
include_attrs = alt title summary placeholder

docs/_static/contributors.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
- header: "@bollwyvl"
22
image: https://avatars.githubusercontent.com/u/45380
3-
link: https://github.com/bollwyvl
3+
website: https://github.com/bollwyvl
44
- header: "@jarrodmillman"
55
image: https://avatars.githubusercontent.com/u/123428
6-
link: https://github.com/jarrodmillman
6+
website: https://github.com/jarrodmillman
77
- header: "@hoetmaaiers"
88
image: https://avatars.githubusercontent.com/u/468045
9-
link: https://github.com/hoetmaaiers
9+
website: https://github.com/hoetmaaiers
1010
- header: "@jorisvandenbossche"
1111
image: https://avatars.githubusercontent.com/u/1020496
12-
link: https://github.com/jorisvandenbossche
12+
website: https://github.com/jorisvandenbossche
1313
- header: "@damianavila"
1414
image: https://avatars.githubusercontent.com/u/1640669
15-
link: https://github.com/damianavila
15+
website: https://github.com/damianavila
1616
- header: "@drammock"
1717
image: https://avatars.githubusercontent.com/u/1810515
18-
link: https://github.com/drammock
18+
website: https://github.com/drammock
1919
- header: "@choldgraf"
2020
image: https://avatars.githubusercontent.com/u/1839645
21-
link: https://github.com/choldgraf
21+
website: https://github.com/choldgraf
2222
- header: "@12rambau"
2323
image: https://avatars.githubusercontent.com/u/12596392
24-
link: https://github.com/12rambau
24+
website: https://github.com/12rambau

docs/_static/custom.css

+38
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,41 @@
1717
background-color: var(--pst-color-success);
1818
opacity: 0.1;
1919
}
20+
21+
/* custom CSS classes (used in docs/user_guide/extending.rst) NOTE: the begin
22+
* and end markers are necessary for partial file includes! don't remove them.
23+
*/
24+
25+
/* begin-custom-color/* <your static path>/custom.css */
26+
27+
div.admonition.admonition-olive {
28+
border-color: olive;
29+
}
30+
div.admonition.admonition-olive > .admonition-title:before {
31+
background-color: olive;
32+
}
33+
div.admonition.admonition-olive > .admonition-title:after {
34+
color: olive;
35+
}
36+
/* end-custom-color */
37+
38+
/* begin-custom-icon/* <your static path>/custom.css */
39+
40+
div.admonition.admonition-icon > .admonition-title:after {
41+
content: "\f24e"; /* the fa-scale icon */
42+
}
43+
/* end-custom-icon */
44+
45+
/* begin-custom-youtube/* <your static path>/custom.css */
46+
47+
div.admonition.admonition-youtube {
48+
border-color: #ff0000; /* YouTube red */
49+
}
50+
div.admonition.admonition-youtube > .admonition-title:before {
51+
background-color: #ff0000;
52+
}
53+
div.admonition.admonition-youtube > .admonition-title:after {
54+
color: #ff0000;
55+
content: "\f26c"; /* fa-solid fa-tv */
56+
}
57+
/* end-custom-youtube */

0 commit comments

Comments
 (0)