@dogsbay/format-astro 0.2.0-beta.150 → 0.2.0-beta.151
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/dist/site-chrome.d.ts +2 -0
- package/dist/site-chrome.js +1 -1
- package/package.json +8 -8
package/dist/site-chrome.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ export interface ChromeData {
|
|
|
8
8
|
alt: string;
|
|
9
9
|
replacesName: boolean;
|
|
10
10
|
};
|
|
11
|
+
/** `key`: what a reader's close is stored under, the id with the site's prefix (sites on one origin keep their own). */
|
|
11
12
|
announcement?: {
|
|
12
13
|
id: string;
|
|
14
|
+
key: string;
|
|
13
15
|
html: string;
|
|
14
16
|
tone: string;
|
|
15
17
|
closeable: boolean;
|
package/dist/site-chrome.js
CHANGED
|
@@ -30,7 +30,7 @@ export function chromeData(chrome, outputDir, o) {
|
|
|
30
30
|
};
|
|
31
31
|
if (chrome.announcement) {
|
|
32
32
|
const a = chrome.announcement;
|
|
33
|
-
data.announcement = { id: a.id, html: inlineMarkdownHtml(a.text, { href }), tone: a.tone, closeable: a.closeable };
|
|
33
|
+
data.announcement = { id: a.id, key: o.combined ? `${o.combined}#${a.id}` : a.id, html: inlineMarkdownHtml(a.text, { href }), tone: a.tone, closeable: a.closeable };
|
|
34
34
|
}
|
|
35
35
|
if (chrome.logo && o.logoFiles) {
|
|
36
36
|
const dir = join(outputDir, "public", "_dogsbay", "site");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/format-astro",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.151",
|
|
4
4
|
"description": "Astro format plugin for Dogsbay — export TreeNode[] to Astro component markup",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"markdown-it": "^14.3.0",
|
|
35
|
-
"@dogsbay/format-dogsbay-md": "0.2.0-beta.
|
|
36
|
-
"@dogsbay/
|
|
37
|
-
"@dogsbay/
|
|
38
|
-
"@dogsbay/
|
|
39
|
-
"@dogsbay/
|
|
40
|
-
"@dogsbay/types": "0.2.0-beta.
|
|
41
|
-
"@dogsbay/ui": "0.2.0-beta.
|
|
35
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.151",
|
|
36
|
+
"@dogsbay/render-html": "0.2.0-beta.151",
|
|
37
|
+
"@dogsbay/icons": "0.2.0-beta.151",
|
|
38
|
+
"@dogsbay/serialize-core": "0.2.0-beta.151",
|
|
39
|
+
"@dogsbay/site-files": "0.2.0-beta.151",
|
|
40
|
+
"@dogsbay/types": "0.2.0-beta.151",
|
|
41
|
+
"@dogsbay/ui": "0.2.0-beta.151"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|