starlight-cannoli-plugins 2.5.4 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,6 +29,12 @@ function syncTocLabelsFromHeadings() {
|
|
|
29
29
|
if (!span) return;
|
|
30
30
|
span.innerHTML = heading.innerHTML;
|
|
31
31
|
});
|
|
32
|
+
document.querySelectorAll("starlight-toc ul > li > a > span").forEach((span) => {
|
|
33
|
+
if (span.childElementCount !== 1) return;
|
|
34
|
+
const child = span.children[0];
|
|
35
|
+
if (child.tagName !== "STRONG") return;
|
|
36
|
+
span.innerHTML = child.innerHTML;
|
|
37
|
+
});
|
|
32
38
|
}
|
|
33
39
|
function wrapDetailsContent() {
|
|
34
40
|
console.log("Wrapping details element contents");
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/********** Starlight Overrides **********/
|
|
2
2
|
|
|
3
|
+
$DARK_MODE_ROTATE: 178deg;
|
|
4
|
+
|
|
3
5
|
.sl-container:where(.astro-7nkwcw3z) {
|
|
4
6
|
max-width: 50rem;
|
|
5
7
|
}
|
|
@@ -127,7 +129,7 @@ div > div[class="page"] > svg {
|
|
|
127
129
|
html:not([data-theme="light"]) & {
|
|
128
130
|
stroke: white;
|
|
129
131
|
fill: white;
|
|
130
|
-
filter: invert(1) hue-rotate(
|
|
132
|
+
filter: invert(1) hue-rotate($DARK_MODE_ROTATE);
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
|
|
@@ -175,7 +177,7 @@ img.note-svg {
|
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
html:not([data-theme="light"]) & {
|
|
178
|
-
filter: invert(1) hue-rotate(
|
|
180
|
+
filter: invert(1) hue-rotate($DARK_MODE_ROTATE);
|
|
179
181
|
}
|
|
180
182
|
}
|
|
181
183
|
|
|
@@ -183,6 +185,6 @@ img.note-svg {
|
|
|
183
185
|
background-color: transparent;
|
|
184
186
|
|
|
185
187
|
html[data-theme="dark"] & {
|
|
186
|
-
filter: invert(1) hue-rotate(
|
|
188
|
+
filter: invert(1) hue-rotate($DARK_MODE_ROTATE);
|
|
187
189
|
}
|
|
188
190
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starlight-cannoli-plugins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.6",
|
|
5
5
|
"description": "Starlight plugins for automatic sidebar generation and link validation",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"url": "https://github.com/OccasionalCoderByTrade/astro-starlight-plugins"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"app:dev": "npm run app:preprocess && rm -rf .astro/ && astro dev --port 5600",
|
|
60
|
+
"app:dev": "npm run app:preprocess && rm -rf .astro/ && astro dev --host --port 5600",
|
|
61
61
|
"app:build": "npm run app:preprocess && rm -rf .astro/ && astro build",
|
|
62
62
|
"app:preview": "astro build && astro preview --port 5600",
|
|
63
63
|
"app:preprocess": "npx sass --quiet --no-source-map src/styles/_bootstrap-utilities-builder.scss src/styles/_bootstrap-utilities.scss",
|