Skip to content

Commit 1291e3e

Browse files
fix: brand-sample jsdelivr URLs (#39)
* fix: restore `brand-sample`'s checked-in `dist` dir without this, `jsdelivr` URLs point to CSS files that don't exist. * fix(docs): update `brand-sample` `README` URLs A few examples were added from a branch made before the directory rename. This fixes those new examples to use the new directory in the `jsdelivr` URLs
1 parent 27f27c4 commit 1291e3e

7 files changed

Lines changed: 55 additions & 2 deletions

File tree

brand-sample/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!dist

brand-sample/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const config = {
8484
light: {
8585
urls: {
8686
"default": "https://cdn.jsdelivr.net/npm/@openedx/paragon@$paragonVersion/dist/light.min.css",
87-
"brandOverride": "https://cdn.jsdelivr.net/gh/openedx/sample-plugin@main/brand/dist/light.min.css"
87+
"brandOverride": "https://cdn.jsdelivr.net/gh/openedx/sample-plugin@main/brand-sample/dist/light.min.css"
8888
},
8989
},
9090
},
@@ -103,7 +103,7 @@ const siteConfig: SiteConfig = {
103103
theme: {
104104
variants: {
105105
light: {
106-
url: 'https://cdn.jsdelivr.net/gh/openedx/sample-plugin@main/brand/dist/light.min.css
106+
url: 'https://cdn.jsdelivr.net/gh/openedx/sample-plugin@main/brand-sample/dist/light.min.css
107107
},
108108
},
109109
},

brand-sample/dist/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Compiled Theme
2+
3+
This directory contains the compiled theme stylesheets referenced by the [`jsdelivr`](https://www.jsdelivr.com/) example plugin.

brand-sample/dist/light.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated.
3+
* See <PARAGON_ROOT>/tokens/README.md for more details.
4+
*/
5+
6+
:root {
7+
--pgn-size-btn-focus-width: 2px;
8+
--pgn-size-input-btn-focus-width: 1px;
9+
--pgn-spacing-input-btn-padding-y: 0.5625rem;
10+
--pgn-color-brand-100: #E9D4FFFF;
11+
--pgn-color-brand-200: #DAB2FFFF;
12+
--pgn-color-brand-300: #C27AFFFF;
13+
--pgn-color-brand-400: #AD46FFFF;
14+
--pgn-color-brand-600: #8200DBFF;
15+
--pgn-color-brand-700: #6E11B0FF;
16+
--pgn-color-brand-800: #59168BFF;
17+
--pgn-color-brand-900: #3C0366FF;
18+
--pgn-color-brand-base: #9810FAFF;
19+
--pgn-spacing-form-input-padding-y-base: var(--pgn-spacing-input-btn-padding-y);
20+
--pgn-color-brand-500: var(--pgn-color-brand-base); /** Brand color of level 500. */
21+
--pgn-color-action-default-brand-100: #CFA1FFFF;
22+
--pgn-color-action-default-brand-200: #C17FFFFF;
23+
--pgn-color-action-default-brand-300: #AB47FFFF;
24+
--pgn-color-action-default-brand-400: #9613FFFF;
25+
--pgn-color-action-default-brand-600: #6400A8FF;
26+
--pgn-color-action-default-brand-700: #510D81FF;
27+
--pgn-color-action-default-brand-800: #3D0F5FFF;
28+
--pgn-color-action-default-brand-900: #1F0234FF;
29+
--pgn-color-action-default-brand-base: #7C04D3FF;
30+
--pgn-color-action-default-brand-500: #7C04D3FF;
31+
}

brand-sample/dist/light.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

brand-sample/dist/light.min.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

brand-sample/dist/theme-urls.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"themeUrls": {
3+
"defaults": {
4+
"light": "light"
5+
},
6+
"variants": {
7+
"light": {
8+
"paths": {
9+
"default": "./light.css",
10+
"minified": "./light.min.css"
11+
}
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)