@hagicode/hagilight-starlight 0.2.3-dev.34.1.b35259f → 0.2.4-dev.36.1.9b5c546
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.
- package/index.mjs +9 -1
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { resolveFaviconHeadEntry } from '@hagicode/hagilight/favicon';
|
|
3
4
|
import { resolveRssLocales, resolveRssOptions } from './rss-utils.mjs';
|
|
4
5
|
import {
|
|
5
6
|
isValidSeoImageReference,
|
|
@@ -499,6 +500,13 @@ export default function hagilight(options = {}) {
|
|
|
499
500
|
attrs: { rel: 'alternate', type: 'application/rss+xml', href: rssFeedUrl },
|
|
500
501
|
}] : []),
|
|
501
502
|
{ tag: 'script', content: contentWidthHeadScript },
|
|
503
|
+
...(() => {
|
|
504
|
+
const entry = resolveFaviconHeadEntry(
|
|
505
|
+
config.head,
|
|
506
|
+
config.favicon === undefined ? {} : { href: config.favicon },
|
|
507
|
+
);
|
|
508
|
+
return entry ? [entry] : [];
|
|
509
|
+
})(),
|
|
502
510
|
],
|
|
503
511
|
components: {
|
|
504
512
|
...config.components,
|
|
@@ -513,4 +521,4 @@ export default function hagilight(options = {}) {
|
|
|
513
521
|
},
|
|
514
522
|
},
|
|
515
523
|
};
|
|
516
|
-
}
|
|
524
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/hagilight-starlight",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4-dev.36.1.9b5c546",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Starlight customizations for HagiCode documentation",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@astrojs/rss": "^4.0.19",
|
|
41
|
-
"@hagicode/hagilight": "0.2.
|
|
41
|
+
"@hagicode/hagilight": "0.2.4-dev.36.1.9b5c546"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@astrojs/starlight": "^0.42.4",
|