@riebeckite/honox 0.0.17 → 0.0.18
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/README.md +4 -4
- package/README_ja.md +4 -4
- package/dist/index.d.ts +0 -7
- package/dist/index.js +255 -4660
- package/package.json +3 -10
- package/assets/favicon.ico +0 -0
- package/assets/riebeckite-logo.png +0 -0
- package/dist/src/scaffold/app-templates.d.ts +0 -15
- package/dist/src/scaffold/deployment.d.ts +0 -8
- package/dist/src/scaffold/index.d.ts +0 -26
- package/dist/src/scaffold/localized-content.d.ts +0 -13
- package/dist/src/scaffold/next-steps.d.ts +0 -7
- package/dist/src/scaffold/presets.d.ts +0 -103
- package/dist/src/scaffold/presets.js +0 -550
- package/dist/src/scaffold/templates.d.ts +0 -53
- package/dist/src/scaffold/version.d.ts +0 -1
- package/dist/src/scaffold/wrangler-defaults.d.ts +0 -59
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
// src/scaffold/presets.ts
|
|
2
|
-
var SCAFFOLD_LANGUAGES = [
|
|
3
|
-
"en",
|
|
4
|
-
"ja",
|
|
5
|
-
"zh-CN",
|
|
6
|
-
"es",
|
|
7
|
-
"de",
|
|
8
|
-
"fr",
|
|
9
|
-
"ko"
|
|
10
|
-
];
|
|
11
|
-
function defaultLanguageForLocale(locale) {
|
|
12
|
-
const normalized = locale.toLowerCase();
|
|
13
|
-
if (normalized.startsWith("ja")) return "ja";
|
|
14
|
-
if (normalized.startsWith("zh")) return "zh-CN";
|
|
15
|
-
if (normalized.startsWith("es")) return "es";
|
|
16
|
-
if (normalized.startsWith("de")) return "de";
|
|
17
|
-
if (normalized.startsWith("fr")) return "fr";
|
|
18
|
-
if (normalized.startsWith("ko")) return "ko";
|
|
19
|
-
return "en";
|
|
20
|
-
}
|
|
21
|
-
var SCAFFOLD_PRESET_NAMES = [
|
|
22
|
-
"starter",
|
|
23
|
-
"minimal",
|
|
24
|
-
"showcase",
|
|
25
|
-
"empty"
|
|
26
|
-
];
|
|
27
|
-
function isScaffoldPresetName(value) {
|
|
28
|
-
return SCAFFOLD_PRESET_NAMES.includes(value);
|
|
29
|
-
}
|
|
30
|
-
var np = (package_, factory, options) => ({
|
|
31
|
-
package: package_,
|
|
32
|
-
factory,
|
|
33
|
-
options
|
|
34
|
-
});
|
|
35
|
-
var obsidianMarkdown = np(
|
|
36
|
-
"@riebeckite/plugin-obsidian-markdown",
|
|
37
|
-
"obsidianMarkdown"
|
|
38
|
-
);
|
|
39
|
-
var colorMode = np("@riebeckite/plugin-color-mode", "colorModePlugin");
|
|
40
|
-
var l10n = np("@riebeckite/plugin-l10n", "l10n", (context) => {
|
|
41
|
-
const defaultLang = defaultLanguageForLocale(context.variables.locale);
|
|
42
|
-
return `{ defaultLang: ${JSON.stringify(defaultLang)}, languages: ${JSON.stringify(context.languages)} }`;
|
|
43
|
-
});
|
|
44
|
-
var seo = np("@riebeckite/plugin-seo", "seo", {
|
|
45
|
-
sitemap: { depth: 1, value: "true" },
|
|
46
|
-
robots: { depth: 2, value: "true" },
|
|
47
|
-
feed: { depth: 3, value: "{ rss: true, atom: true, json: true }" }
|
|
48
|
-
});
|
|
49
|
-
var toc = np("@riebeckite/plugin-toc", "tocPlugin");
|
|
50
|
-
var properties = np("@riebeckite/plugin-properties", "properties", {
|
|
51
|
-
render: { depth: 1, value: '"slot"' },
|
|
52
|
-
include: { depth: 2, value: '["created", "modified", "tags", "status"]' },
|
|
53
|
-
order: { depth: 2, value: '["created", "modified", "tags", "status"]' }
|
|
54
|
-
});
|
|
55
|
-
var alias = np("@riebeckite/plugin-alias", "aliasPlugin", `{ status: 308 }`);
|
|
56
|
-
var codeEnhance = np("@riebeckite/plugin-code-enhance", "codeEnhance", {
|
|
57
|
-
lineNumbers: { depth: 1, value: "true" },
|
|
58
|
-
copyButton: { depth: 1, value: "true" },
|
|
59
|
-
filename: { depth: 2, value: "true" },
|
|
60
|
-
lineHighlight: { depth: 2, value: "true" },
|
|
61
|
-
diffHighlight: { depth: 2, value: "true" },
|
|
62
|
-
theme: { depth: 3, value: '{ light: "github-light", dark: "github-dark" }' },
|
|
63
|
-
wrapToggle: { depth: 3, value: "true" }
|
|
64
|
-
});
|
|
65
|
-
var search = np("@riebeckite/plugin-search", "searchPlugin");
|
|
66
|
-
var backlinks = np("@riebeckite/plugin-backlinks", "backlinksPlugin");
|
|
67
|
-
var breadcrumbs = np("@riebeckite/plugin-breadcrumbs", "breadcrumbsPlugin");
|
|
68
|
-
var navigationStarter = np(
|
|
69
|
-
"@riebeckite/plugin-navigation",
|
|
70
|
-
"navigation",
|
|
71
|
-
`{ items: [{ label: "Guide", href: "/guide" }, { label: "Examples", href: "/examples" }, { label: "Notes", href: "/notes/planning", children: [{ label: "Planning", href: "/notes/planning" }, { label: "Writing", href: "/notes/writing" }] }], secondary: [{ label: "Guide", href: "/guide" }, { label: "Examples", href: "/examples" }] }`
|
|
72
|
-
);
|
|
73
|
-
var navigationShowcase = np(
|
|
74
|
-
"@riebeckite/plugin-navigation",
|
|
75
|
-
"navigation",
|
|
76
|
-
`{ items: [{ label: "Guide", href: "/guide" }, { label: "Examples", href: "/examples" }, { label: "Framework", href: "/framework/plugins", children: [{ label: "Plugins", href: "/framework/plugins" }, { label: "Themes", href: "/framework/themes" }] }], secondary: [{ label: "Guide", href: "/guide" }, { label: "Examples", href: "/examples" }] }`
|
|
77
|
-
);
|
|
78
|
-
var relatedPosts = np("@riebeckite/plugin-related-posts", "relatedPosts", {
|
|
79
|
-
limit: { depth: 2, value: "5" },
|
|
80
|
-
useTags: { depth: 2, value: "true" },
|
|
81
|
-
useBacklinks: { depth: 2, value: "true" },
|
|
82
|
-
minScore: { depth: 3, value: "1" },
|
|
83
|
-
heading: { depth: 3, value: "true" },
|
|
84
|
-
headingText: { depth: 3, value: '"Related"' },
|
|
85
|
-
className: { depth: 3, value: '"rb-related-posts"' }
|
|
86
|
-
});
|
|
87
|
-
var share = np("@riebeckite/plugin-share", "share", {
|
|
88
|
-
placement: { depth: 2, value: '"bottom"' },
|
|
89
|
-
services: {
|
|
90
|
-
depth: 3,
|
|
91
|
-
value: '["x", "bluesky", "mastodon", "facebook", "linkedin", "hatena", "copy"]'
|
|
92
|
-
},
|
|
93
|
-
mastodonInstance: { depth: 3, value: '"mastodon.social"' }
|
|
94
|
-
});
|
|
95
|
-
var recentPosts = np("@riebeckite/plugin-recent-posts", "recentPostsPlugin");
|
|
96
|
-
var changelog = np("@riebeckite/plugin-changelog", "changelog", {
|
|
97
|
-
perNote: { depth: 2, value: "true" },
|
|
98
|
-
lookbackDays: { depth: 3, value: "90" },
|
|
99
|
-
dateFormat: { depth: 3, value: '"iso"' },
|
|
100
|
-
siteWide: { depth: 3, value: "false" }
|
|
101
|
-
});
|
|
102
|
-
var webmention = np("@riebeckite/plugin-webmention", "webmention", {
|
|
103
|
-
headingText: { depth: 2, value: '"Mentions"' },
|
|
104
|
-
limit: { depth: 3, value: "20" }
|
|
105
|
-
});
|
|
106
|
-
var attachment = np(
|
|
107
|
-
"@riebeckite/plugin-attachment",
|
|
108
|
-
"attachment",
|
|
109
|
-
`{ showSize: true }`
|
|
110
|
-
);
|
|
111
|
-
var pdf = np("@riebeckite/plugin-pdf", "pdf", {
|
|
112
|
-
height: { depth: 2, value: '"640px"' },
|
|
113
|
-
initialPage: { depth: 2, value: "1" },
|
|
114
|
-
toolbar: { depth: 2, value: "true" },
|
|
115
|
-
showMetadata: { depth: 3, value: "true" },
|
|
116
|
-
downloadLabel: { depth: 3, value: '"Download PDF"' }
|
|
117
|
-
});
|
|
118
|
-
var media = np("@riebeckite/plugin-media", "media", {
|
|
119
|
-
preload: { depth: 2, value: '"metadata"' },
|
|
120
|
-
lazy: { depth: 2, value: "true" },
|
|
121
|
-
showCaption: { depth: 3, value: "true" },
|
|
122
|
-
showDownload: { depth: 3, value: "false" },
|
|
123
|
-
showOpenOriginal: { depth: 3, value: "true" }
|
|
124
|
-
});
|
|
125
|
-
var responsiveImage = np(
|
|
126
|
-
"@riebeckite/plugin-responsive-image",
|
|
127
|
-
"responsiveImage",
|
|
128
|
-
{
|
|
129
|
-
lazy: { depth: 2, value: "true" },
|
|
130
|
-
decoding: { depth: 2, value: "true" },
|
|
131
|
-
sizes: { depth: 2, value: '"100vw"' },
|
|
132
|
-
widths: { depth: 2, value: "[640, 1280, 1920]" },
|
|
133
|
-
formats: { depth: 3, value: '["webp", "avif"]' },
|
|
134
|
-
className: { depth: 3, value: '"rb-responsive-image"' }
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
var lightbox = np(
|
|
138
|
-
"@riebeckite/plugin-lightbox",
|
|
139
|
-
"lightboxPlugin",
|
|
140
|
-
`{ selectorClass: "rr-lightbox-trigger" }`
|
|
141
|
-
);
|
|
142
|
-
var highlight = np("@riebeckite/plugin-highlight", "highlight", {
|
|
143
|
-
tag: { depth: 2, value: '"mark"' },
|
|
144
|
-
className: { depth: 3, value: '"rb-mark"' }
|
|
145
|
-
});
|
|
146
|
-
var codeTabs = np(
|
|
147
|
-
"@riebeckite/plugin-code-tabs",
|
|
148
|
-
"codeTabs",
|
|
149
|
-
`{ syncTabs: true }`
|
|
150
|
-
);
|
|
151
|
-
var codeAnnotations = np(
|
|
152
|
-
"@riebeckite/plugin-code-annotations",
|
|
153
|
-
"codeAnnotations",
|
|
154
|
-
`{ className: "rb-code" }`
|
|
155
|
-
);
|
|
156
|
-
var shortcodes = np(
|
|
157
|
-
"@riebeckite/plugin-shortcodes",
|
|
158
|
-
"shortcodes",
|
|
159
|
-
`{ builtins: true }`
|
|
160
|
-
);
|
|
161
|
-
var series = np("@riebeckite/plugin-series", "series", {
|
|
162
|
-
key: { depth: 2, value: '"series"' },
|
|
163
|
-
orderKey: { depth: 2, value: '"series_order"' },
|
|
164
|
-
titleKey: { depth: 2, value: '"series_title"' },
|
|
165
|
-
positionLabel: { depth: 2, value: "false" },
|
|
166
|
-
heading: { depth: 3, value: "true" },
|
|
167
|
-
className: { depth: 3, value: '"rb-series"' }
|
|
168
|
-
});
|
|
169
|
-
var taxonomy = np("@riebeckite/plugin-taxonomy", "taxonomy", {
|
|
170
|
-
tags: { depth: 2, value: "true" },
|
|
171
|
-
folders: { depth: 2, value: "true" },
|
|
172
|
-
related: { depth: 2, value: "true" },
|
|
173
|
-
feeds: { depth: 3, value: "{ rss: true, atom: true, json: true }" },
|
|
174
|
-
relatedLimit: { depth: 3, value: "8" }
|
|
175
|
-
});
|
|
176
|
-
var folderPages = np("@riebeckite/plugin-folder-pages", "folderPagesPlugin");
|
|
177
|
-
var autoCardLink = np(
|
|
178
|
-
"@riebeckite/plugin-autocardlink",
|
|
179
|
-
"autoCardLinkPlugin",
|
|
180
|
-
`{ className: "rb-cardlink" }`
|
|
181
|
-
);
|
|
182
|
-
var richEmbed = np(
|
|
183
|
-
"@riebeckite/plugin-rich-embed",
|
|
184
|
-
"richEmbed",
|
|
185
|
-
`{ providers: ["youtube", "vimeo", "spotify"] }`
|
|
186
|
-
);
|
|
187
|
-
var gallery = np("@riebeckite/plugin-gallery", "gallery", {
|
|
188
|
-
columns: { depth: 2, value: "3" },
|
|
189
|
-
aspect: { depth: 2, value: '"4/3"' },
|
|
190
|
-
language: { depth: 3, value: '"gallery"' }
|
|
191
|
-
});
|
|
192
|
-
var mermaid = np("@riebeckite/plugin-mermaid", "mermaid", {
|
|
193
|
-
render: { depth: 2, value: '"build"' },
|
|
194
|
-
theme: { depth: 2, value: '{ light: "default", dark: "dark" }' },
|
|
195
|
-
caption: { depth: 3, value: "true" },
|
|
196
|
-
fallback: { depth: 3, value: "true" }
|
|
197
|
-
});
|
|
198
|
-
var graphviz = np("@riebeckite/plugin-graphviz", "graphviz", {
|
|
199
|
-
render: { depth: 2, value: '"build"' },
|
|
200
|
-
engine: { depth: 2, value: '"dot"' },
|
|
201
|
-
caption: { depth: 3, value: "true" },
|
|
202
|
-
fallback: { depth: 3, value: "true" }
|
|
203
|
-
});
|
|
204
|
-
var d2 = np("@riebeckite/plugin-d2", "d2", {
|
|
205
|
-
render: { depth: 2, value: '"build"' },
|
|
206
|
-
theme: { depth: 2, value: "{ light: 0, dark: 1 }" },
|
|
207
|
-
layout: { depth: 2, value: '"dagre"' },
|
|
208
|
-
caption: { depth: 3, value: "true" }
|
|
209
|
-
});
|
|
210
|
-
var plantuml = np("@riebeckite/plugin-plantuml", "plantuml", {
|
|
211
|
-
server: { depth: 2, value: '"https://www.plantuml.com/plantuml"' },
|
|
212
|
-
format: { depth: 2, value: '"svg"' },
|
|
213
|
-
caption: { depth: 3, value: "true" },
|
|
214
|
-
fallback: { depth: 3, value: "true" }
|
|
215
|
-
});
|
|
216
|
-
var chartjs = np("@riebeckite/plugin-chartjs", "chartjs", {
|
|
217
|
-
responsive: { depth: 2, value: "true" },
|
|
218
|
-
caption: { depth: 2, value: "true" },
|
|
219
|
-
className: { depth: 3, value: '"rb-chartjs"' }
|
|
220
|
-
});
|
|
221
|
-
var vegaLite = np("@riebeckite/plugin-vega-lite", "vegaLite", {
|
|
222
|
-
caption: { depth: 2, value: "true" },
|
|
223
|
-
theme: { depth: 2, value: '"light"' },
|
|
224
|
-
renderer: { depth: 2, value: '"canvas"' },
|
|
225
|
-
actions: { depth: 3, value: "false" },
|
|
226
|
-
className: { depth: 3, value: '"rb-vega-lite"' }
|
|
227
|
-
});
|
|
228
|
-
var wavedrom = np("@riebeckite/plugin-wavedrom", "wavedrom", {
|
|
229
|
-
skin: { depth: 2, value: '"default"' },
|
|
230
|
-
caption: { depth: 2, value: "true" },
|
|
231
|
-
fallback: { depth: 3, value: "true" },
|
|
232
|
-
className: { depth: 3, value: '"rb-wavedrom"' }
|
|
233
|
-
});
|
|
234
|
-
var markmap = np("@riebeckite/plugin-markmap", "markmap", {
|
|
235
|
-
caption: { depth: 2, value: "true" },
|
|
236
|
-
height: { depth: 2, value: "320" },
|
|
237
|
-
colorFreezeLevel: { depth: 3, value: "2" }
|
|
238
|
-
});
|
|
239
|
-
var map = np("@riebeckite/plugin-map", "map", {
|
|
240
|
-
zoom: { depth: 2, value: "13" },
|
|
241
|
-
height: { depth: 2, value: "320" },
|
|
242
|
-
tileUrl: {
|
|
243
|
-
depth: 3,
|
|
244
|
-
value: JSON.stringify("https://tile.openstreetmap.org/{z}/{x}/{y}.png")
|
|
245
|
-
},
|
|
246
|
-
attribution: {
|
|
247
|
-
depth: 3,
|
|
248
|
-
value: JSON.stringify(
|
|
249
|
-
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
250
|
-
)
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
var marp = np("@riebeckite/plugin-marp", "marp", {
|
|
254
|
-
theme: { depth: 2, value: '"default"' },
|
|
255
|
-
allowHtml: { depth: 2, value: "true" },
|
|
256
|
-
math: { depth: 2, value: "true" },
|
|
257
|
-
caption: { depth: 3, value: "true" }
|
|
258
|
-
});
|
|
259
|
-
var qrCode = np("@riebeckite/plugin-qr-code", "qrCode", {
|
|
260
|
-
level: { depth: 2, value: '"M"' },
|
|
261
|
-
margin: { depth: 2, value: "1" },
|
|
262
|
-
width: { depth: 2, value: "160" },
|
|
263
|
-
dark: { depth: 3, value: '"#000000"' },
|
|
264
|
-
light: { depth: 3, value: '"#ffffff"' },
|
|
265
|
-
caption: { depth: 3, value: "true" },
|
|
266
|
-
className: { depth: 3, value: '"rb-qr"' }
|
|
267
|
-
});
|
|
268
|
-
var discordEmbed = np("@riebeckite/plugin-discord-embed", "discordEmbed", {
|
|
269
|
-
themeColor: { depth: 2, value: '"#5865F2"' },
|
|
270
|
-
imageAlt: { depth: 3, value: "true" },
|
|
271
|
-
imageDimensions: { depth: 3, value: "true" }
|
|
272
|
-
});
|
|
273
|
-
var excalidraw = np(
|
|
274
|
-
"@riebeckite/plugin-excalidraw",
|
|
275
|
-
"excalidraw",
|
|
276
|
-
`{ lazy: true }`
|
|
277
|
-
);
|
|
278
|
-
var excaliBrain = np("@riebeckite/plugin-excalibrain", "excaliBrain", {
|
|
279
|
-
render: { depth: 2, value: '"build"' },
|
|
280
|
-
auto: { depth: 2, value: "true" },
|
|
281
|
-
heading: { depth: 2, value: "true" },
|
|
282
|
-
infer: { depth: 2, value: "true" },
|
|
283
|
-
siblings: { depth: 2, value: "true" },
|
|
284
|
-
headingText: { depth: 3, value: '"ExcaliBrain"' },
|
|
285
|
-
width: { depth: 3, value: "720" },
|
|
286
|
-
height: { depth: 3, value: "480" }
|
|
287
|
-
});
|
|
288
|
-
var canvas = np("@riebeckite/plugin-canvas", "canvas", {
|
|
289
|
-
language: { depth: 2, value: '"canvas"' },
|
|
290
|
-
render: { depth: 2, value: '"both"' },
|
|
291
|
-
className: { depth: 3, value: '"rb-canvas"' }
|
|
292
|
-
});
|
|
293
|
-
var bases = np("@riebeckite/plugin-bases", "bases", {
|
|
294
|
-
language: { depth: 2, value: '"base"' },
|
|
295
|
-
limit: { depth: 2, value: "100" },
|
|
296
|
-
className: { depth: 3, value: '"rb-bases"' },
|
|
297
|
-
showFallback: { depth: 3, value: "true" }
|
|
298
|
-
});
|
|
299
|
-
var dataview = np("@riebeckite/plugin-dataview", "dataviewPlugin", {
|
|
300
|
-
limit: { depth: 2, value: "50" },
|
|
301
|
-
className: { depth: 3, value: '"rb-dataview"' },
|
|
302
|
-
hideFallback: { depth: 3, value: "false" }
|
|
303
|
-
});
|
|
304
|
-
var flashcards = np("@riebeckite/plugin-flashcards", "flashcardsPlugin", {
|
|
305
|
-
shuffle: { depth: 2, value: "true" },
|
|
306
|
-
fallback: { depth: 2, value: "true" },
|
|
307
|
-
className: { depth: 3, value: '"rb-flashcards"' }
|
|
308
|
-
});
|
|
309
|
-
var kanban = np("@riebeckite/plugin-kanban", "kanban", {
|
|
310
|
-
columnMarker: { depth: 2, value: '"##"' },
|
|
311
|
-
autoDetect: { depth: 2, value: "true" },
|
|
312
|
-
className: { depth: 3, value: '"rb-kanban"' },
|
|
313
|
-
fallback: { depth: 3, value: "true" }
|
|
314
|
-
});
|
|
315
|
-
var query = np("@riebeckite/plugin-query", "queryPlugin", {
|
|
316
|
-
defaultFormat: { depth: 2, value: '"list"' },
|
|
317
|
-
defaultLimit: { depth: 2, value: "50" },
|
|
318
|
-
className: { depth: 3, value: '"rb-query"' },
|
|
319
|
-
excludeSelf: { depth: 3, value: "true" }
|
|
320
|
-
});
|
|
321
|
-
var localGraph = np("@riebeckite/plugin-local-graph", "localGraphPlugin");
|
|
322
|
-
var hoverPreview = np(
|
|
323
|
-
"@riebeckite/plugin-hover-preview",
|
|
324
|
-
"hoverPreviewPlugin",
|
|
325
|
-
{
|
|
326
|
-
delay: { depth: 2, value: "120" },
|
|
327
|
-
excerptLength: { depth: 2, value: "160" },
|
|
328
|
-
selector: { depth: 2, value: `'a[href^="/"]'` },
|
|
329
|
-
includeTitles: { depth: 3, value: "true" }
|
|
330
|
-
}
|
|
331
|
-
);
|
|
332
|
-
var gardenExplorer = np(
|
|
333
|
-
"@riebeckite/plugin-garden-explorer",
|
|
334
|
-
"gardenExplorerPlugin"
|
|
335
|
-
);
|
|
336
|
-
var ux = np("@riebeckite/plugin-ux", "uxPlugin", {
|
|
337
|
-
progress: { depth: 2, value: "true" },
|
|
338
|
-
backToTop: { depth: 2, value: "true" },
|
|
339
|
-
tocScrollSpy: { depth: 2, value: "true" },
|
|
340
|
-
codeCopy: { depth: 3, value: "true" }
|
|
341
|
-
});
|
|
342
|
-
var dailyNotes = np(
|
|
343
|
-
"@riebeckite/plugin-daily-notes",
|
|
344
|
-
"dailyNotesPlugin",
|
|
345
|
-
`{ source: { directory: "Daily", pathPattern: "Daily/{YYYY}-{MM}-{DD}" }, extract: { frontmatter: "daily-summary", codeBlock: "daily-snippet" }, widget: { limit: 5 } }`
|
|
346
|
-
);
|
|
347
|
-
var rename = np(
|
|
348
|
-
"@riebeckite/plugin-rename",
|
|
349
|
-
"renamePlugin",
|
|
350
|
-
`{ enabled: true, status: 308, onUnexpectedRemoval: "warning" }`
|
|
351
|
-
);
|
|
352
|
-
var textFragment = np(
|
|
353
|
-
"@riebeckite/plugin-text-fragment",
|
|
354
|
-
"textFragmentPlugin",
|
|
355
|
-
(context) => `{ prefix: ${JSON.stringify(`${context.variables.title}: `)} }`
|
|
356
|
-
);
|
|
357
|
-
var quality = np(
|
|
358
|
-
"@riebeckite/plugin-quality",
|
|
359
|
-
"qualityPlugin",
|
|
360
|
-
`{ a11y: { enabled: true }, ignoreRules: [] }`
|
|
361
|
-
);
|
|
362
|
-
var deploy = np(
|
|
363
|
-
"@riebeckite/plugin-deploy",
|
|
364
|
-
"deployPlugin",
|
|
365
|
-
`{ provider: "cloudflare-pages" }`
|
|
366
|
-
);
|
|
367
|
-
var diagnostics = np(
|
|
368
|
-
"@riebeckite/plugin-diagnostics",
|
|
369
|
-
"diagnostics",
|
|
370
|
-
`{ reportUnusedAssets: true, reportOrphans: true, requiredFrontmatter: ["title"] }`
|
|
371
|
-
);
|
|
372
|
-
var defaultTheme = {
|
|
373
|
-
package: "@riebeckite/theme-default",
|
|
374
|
-
factory: "defaultTheme"
|
|
375
|
-
};
|
|
376
|
-
var showCaseTheme = {
|
|
377
|
-
package: "@riebeckite/theme-default",
|
|
378
|
-
factory: "defaultTheme",
|
|
379
|
-
options: '{ colorMode: "system", typography: "system", articleLayout: "article", userCss: [] }'
|
|
380
|
-
};
|
|
381
|
-
var minimalTheme = {
|
|
382
|
-
package: "@riebeckite/theme-minimal",
|
|
383
|
-
factory: "minimalTheme"
|
|
384
|
-
};
|
|
385
|
-
var BASE_APP_FILES = [
|
|
386
|
-
"server",
|
|
387
|
-
"client",
|
|
388
|
-
"config",
|
|
389
|
-
"content",
|
|
390
|
-
"paths",
|
|
391
|
-
"global",
|
|
392
|
-
"style",
|
|
393
|
-
"renderer"
|
|
394
|
-
];
|
|
395
|
-
var empty = {
|
|
396
|
-
name: "empty",
|
|
397
|
-
description: "A blank application shell: no plugins, no theme, no content, no components.",
|
|
398
|
-
languages: [],
|
|
399
|
-
theme: null,
|
|
400
|
-
plugins: [],
|
|
401
|
-
contentPages: [],
|
|
402
|
-
appFiles: [...BASE_APP_FILES, "index"],
|
|
403
|
-
readme: "short"
|
|
404
|
-
};
|
|
405
|
-
var minimal = {
|
|
406
|
-
name: "minimal",
|
|
407
|
-
description: "The smallest useful site: Obsidian Markdown, the minimal theme, and one page.",
|
|
408
|
-
languages: ["en"],
|
|
409
|
-
theme: minimalTheme,
|
|
410
|
-
plugins: [obsidianMarkdown],
|
|
411
|
-
contentPages: ["index"],
|
|
412
|
-
appFiles: [...BASE_APP_FILES, "index", "slug", "article"],
|
|
413
|
-
readme: "short"
|
|
414
|
-
};
|
|
415
|
-
var starter = {
|
|
416
|
-
name: "starter",
|
|
417
|
-
description: "Recommended for most sites: a practical Markdown garden with search, discovery, and reading essentials.",
|
|
418
|
-
languages: [...SCAFFOLD_LANGUAGES],
|
|
419
|
-
theme: defaultTheme,
|
|
420
|
-
plugins: [
|
|
421
|
-
obsidianMarkdown,
|
|
422
|
-
colorMode,
|
|
423
|
-
l10n,
|
|
424
|
-
seo,
|
|
425
|
-
toc,
|
|
426
|
-
properties,
|
|
427
|
-
alias,
|
|
428
|
-
codeEnhance,
|
|
429
|
-
search,
|
|
430
|
-
backlinks,
|
|
431
|
-
breadcrumbs,
|
|
432
|
-
navigationStarter,
|
|
433
|
-
relatedPosts,
|
|
434
|
-
recentPosts,
|
|
435
|
-
responsiveImage,
|
|
436
|
-
lightbox,
|
|
437
|
-
series,
|
|
438
|
-
taxonomy
|
|
439
|
-
],
|
|
440
|
-
contentPages: ["index", "guide", "examples"],
|
|
441
|
-
appFiles: [...BASE_APP_FILES, "index", "slug", "header", "article"],
|
|
442
|
-
readme: "standard"
|
|
443
|
-
};
|
|
444
|
-
var showcase = {
|
|
445
|
-
name: "showcase",
|
|
446
|
-
description: "Explore the complete Riebeckite ecosystem with rendered examples, reference pages, and local fixtures.",
|
|
447
|
-
languages: [...SCAFFOLD_LANGUAGES],
|
|
448
|
-
theme: showCaseTheme,
|
|
449
|
-
plugins: [
|
|
450
|
-
obsidianMarkdown,
|
|
451
|
-
colorMode,
|
|
452
|
-
l10n,
|
|
453
|
-
seo,
|
|
454
|
-
toc,
|
|
455
|
-
properties,
|
|
456
|
-
alias,
|
|
457
|
-
codeEnhance,
|
|
458
|
-
search,
|
|
459
|
-
backlinks,
|
|
460
|
-
breadcrumbs,
|
|
461
|
-
navigationShowcase,
|
|
462
|
-
relatedPosts,
|
|
463
|
-
share,
|
|
464
|
-
changelog,
|
|
465
|
-
webmention,
|
|
466
|
-
recentPosts,
|
|
467
|
-
attachment,
|
|
468
|
-
pdf,
|
|
469
|
-
media,
|
|
470
|
-
responsiveImage,
|
|
471
|
-
lightbox,
|
|
472
|
-
highlight,
|
|
473
|
-
codeTabs,
|
|
474
|
-
codeAnnotations,
|
|
475
|
-
shortcodes,
|
|
476
|
-
series,
|
|
477
|
-
taxonomy,
|
|
478
|
-
folderPages,
|
|
479
|
-
autoCardLink,
|
|
480
|
-
richEmbed,
|
|
481
|
-
gallery,
|
|
482
|
-
mermaid,
|
|
483
|
-
graphviz,
|
|
484
|
-
d2,
|
|
485
|
-
plantuml,
|
|
486
|
-
chartjs,
|
|
487
|
-
vegaLite,
|
|
488
|
-
wavedrom,
|
|
489
|
-
markmap,
|
|
490
|
-
map,
|
|
491
|
-
marp,
|
|
492
|
-
qrCode,
|
|
493
|
-
discordEmbed,
|
|
494
|
-
excalidraw,
|
|
495
|
-
excaliBrain,
|
|
496
|
-
canvas,
|
|
497
|
-
bases,
|
|
498
|
-
dataview,
|
|
499
|
-
flashcards,
|
|
500
|
-
kanban,
|
|
501
|
-
query,
|
|
502
|
-
localGraph,
|
|
503
|
-
hoverPreview,
|
|
504
|
-
gardenExplorer,
|
|
505
|
-
ux,
|
|
506
|
-
dailyNotes,
|
|
507
|
-
rename,
|
|
508
|
-
textFragment,
|
|
509
|
-
quality,
|
|
510
|
-
deploy,
|
|
511
|
-
diagnostics
|
|
512
|
-
],
|
|
513
|
-
contentPages: [
|
|
514
|
-
"index",
|
|
515
|
-
"framework/plugins",
|
|
516
|
-
"framework/themes",
|
|
517
|
-
"guide",
|
|
518
|
-
"examples",
|
|
519
|
-
"reference/plugins",
|
|
520
|
-
"reference/themes"
|
|
521
|
-
],
|
|
522
|
-
appFiles: [...BASE_APP_FILES, "index", "slug", "header", "article"],
|
|
523
|
-
readme: "rich"
|
|
524
|
-
};
|
|
525
|
-
var scaffoldPresets = { starter, minimal, showcase, empty };
|
|
526
|
-
var SCAFFOLD_DEFAULT_PRESET = "starter";
|
|
527
|
-
function resolveScaffoldPreset(value) {
|
|
528
|
-
if (value === void 0) return scaffoldPresets[SCAFFOLD_DEFAULT_PRESET];
|
|
529
|
-
if (typeof value === "object") return value;
|
|
530
|
-
const preset = scaffoldPresets[value];
|
|
531
|
-
if (!preset) {
|
|
532
|
-
throw new Error(
|
|
533
|
-
`Unknown scaffold preset: ${value}. Available presets: ${SCAFFOLD_PRESET_NAMES.join(", ")}.`
|
|
534
|
-
);
|
|
535
|
-
}
|
|
536
|
-
return preset;
|
|
537
|
-
}
|
|
538
|
-
export {
|
|
539
|
-
SCAFFOLD_DEFAULT_PRESET,
|
|
540
|
-
SCAFFOLD_LANGUAGES,
|
|
541
|
-
SCAFFOLD_PRESET_NAMES,
|
|
542
|
-
defaultLanguageForLocale,
|
|
543
|
-
empty,
|
|
544
|
-
isScaffoldPresetName,
|
|
545
|
-
minimal,
|
|
546
|
-
resolveScaffoldPreset,
|
|
547
|
-
scaffoldPresets,
|
|
548
|
-
showcase,
|
|
549
|
-
starter
|
|
550
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type ScaffoldOptionContext, type ScaffoldOptions, type ScaffoldPreset } from "./presets.js";
|
|
2
|
-
export type SiteTemplateVariables = {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly title: string;
|
|
5
|
-
readonly description: string;
|
|
6
|
-
readonly baseUrl: string;
|
|
7
|
-
readonly locale: string;
|
|
8
|
-
readonly externalContent?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type SiteTemplateOptions = {
|
|
11
|
-
readonly cloudflareWorkers?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type SiteTemplateFile = {
|
|
14
|
-
readonly path: string;
|
|
15
|
-
readonly content: string | Uint8Array;
|
|
16
|
-
};
|
|
17
|
-
export declare function siteTemplateFiles(preset: ScaffoldPreset, variables: SiteTemplateVariables, options?: SiteTemplateOptions): readonly SiteTemplateFile[];
|
|
18
|
-
/**
|
|
19
|
-
* Resolve a plugin's options literal for the preset's depth, or `null` when
|
|
20
|
-
* the plugin takes no options at that depth (and should be called bare).
|
|
21
|
-
*/
|
|
22
|
-
export declare function renderOptions(options: ScaffoldOptions | undefined, context: ScaffoldOptionContext): string | null;
|
|
23
|
-
export type ReadmeDemo = {
|
|
24
|
-
readonly title: {
|
|
25
|
-
readonly en: string;
|
|
26
|
-
readonly ja: string;
|
|
27
|
-
};
|
|
28
|
-
readonly intro: {
|
|
29
|
-
readonly en: string;
|
|
30
|
-
readonly ja: string;
|
|
31
|
-
};
|
|
32
|
-
readonly markdown: string;
|
|
33
|
-
};
|
|
34
|
-
export declare const README_DEMOS: Readonly<Record<string, ReadmeDemo>>;
|
|
35
|
-
/**
|
|
36
|
-
* English-only content pages keep a `.en` suffix unless `en` is the default
|
|
37
|
-
* language. `examples` is intentionally absent: it is localized like the
|
|
38
|
-
* tour pages, with English as the fallback for untranslated languages.
|
|
39
|
-
*/
|
|
40
|
-
export declare const ENGLISH_ONLY_PAGES: Set<string>;
|
|
41
|
-
export declare function fence(language: string, body: string): string;
|
|
42
|
-
export declare function hasPlugin(preset: ScaffoldPreset, packageName: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* A demo key is either `@scope/package` or `@scope/package/topic`. Recover the
|
|
45
|
-
* package name: the first two `/`-separated segments form the scoped name.
|
|
46
|
-
*/
|
|
47
|
-
export declare function demoPackage(key: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* The options object literal used for a plugin at this preset's depth, or
|
|
50
|
-
* `null` when it takes no options at that depth.
|
|
51
|
-
*/
|
|
52
|
-
export declare function readmePluginOptions(variables: SiteTemplateVariables, preset: ScaffoldPreset, plugin: ScaffoldPreset["plugins"][number]): string | null;
|
|
53
|
-
export declare const README_DEMO_ORDER: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RIEBECKITE_VERSION = "^0.0.17";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for Wrangler configuration defaults.
|
|
3
|
-
*
|
|
4
|
-
* This module is imported by:
|
|
5
|
-
* - scaffold generator (deployment.ts)
|
|
6
|
-
* - contract tests (to verify generated output)
|
|
7
|
-
* - templates/cloudflare/wrangler.jsonc is the human-readable canonical form
|
|
8
|
-
*
|
|
9
|
-
* When updating these values, update all three places:
|
|
10
|
-
* 1. This file (the programmatic source of truth)
|
|
11
|
-
* 2. templates/cloudflare/wrangler.jsonc (the human-readable template)
|
|
12
|
-
* 3. Contract tests will verify consistency automatically
|
|
13
|
-
*/
|
|
14
|
-
export declare const WRANGLER_DEFAULTS: {
|
|
15
|
-
/** JSON schema for IDE support and validation */
|
|
16
|
-
readonly $schema: "node_modules/wrangler/config-schema.json";
|
|
17
|
-
/** Worker name - becomes <name>.<account>.workers.dev */
|
|
18
|
-
readonly name: "riebeckite-site";
|
|
19
|
-
/** Compatibility date - update when Workers runtime changes require it */
|
|
20
|
-
readonly compatibility_date: "2026-06-09";
|
|
21
|
-
/** Required for Node.js APIs used by Riebeckite */
|
|
22
|
-
readonly compatibility_flags: readonly ["nodejs_compat"];
|
|
23
|
-
/** Static assets directory - Riebeckite builds to ./dist */
|
|
24
|
-
readonly assets: {
|
|
25
|
-
readonly directory: "./dist";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
/** Type for the wrangler config object */
|
|
29
|
-
export type WranglerDefaults = typeof WRANGLER_DEFAULTS;
|
|
30
|
-
export declare const WRANGLER_VERSION = "^4.83.0";
|
|
31
|
-
export declare const DEFAULT_WORKER_NAME = "riebeckite-site";
|
|
32
|
-
export declare const WORKER_NAME_MAX_LENGTH = 63;
|
|
33
|
-
export declare function workerNameFromDirectory(directoryName: string): string;
|
|
34
|
-
export declare function buildDefaultWranglerConfig(workerName: string): string;
|
|
35
|
-
/** Expected secret names in GitHub Actions workflow */
|
|
36
|
-
export declare const GITHUB_ACTIONS_SECRETS: {
|
|
37
|
-
/** Cloudflare API token with Workers Scripts: Edit permission */
|
|
38
|
-
readonly CLOUDFLARE_API_TOKEN: "CLOUDFLARE_API_TOKEN";
|
|
39
|
-
/** Cloudflare Account ID (found in Workers & Pages dashboard URL) */
|
|
40
|
-
readonly CLOUDFLARE_ACCOUNT_ID: "CLOUDFLARE_ACCOUNT_ID";
|
|
41
|
-
/** Optional: Token for content repo to dispatch to site repo */
|
|
42
|
-
readonly SITE_DISPATCH_TOKEN: "SITE_DISPATCH_TOKEN";
|
|
43
|
-
/** Optional: Token for site repo to read content repo */
|
|
44
|
-
readonly RIEBECKITE_CONTENT_READ_TOKEN: "RIEBECKITE_CONTENT_READ_TOKEN";
|
|
45
|
-
};
|
|
46
|
-
/** Package manager used by generated sites and workflows */
|
|
47
|
-
export declare const PACKAGE_MANAGER: "npm";
|
|
48
|
-
/** Lockfile name that must be committed */
|
|
49
|
-
export declare const LOCKFILE_NAME: "package-lock.json";
|
|
50
|
-
/** Files/directories that must be in .gitignore */
|
|
51
|
-
export declare const GITIGNORE_REQUIRED: readonly ["node_modules/", "dist/", ".riebeckite/", "app/.riebeckite/"];
|
|
52
|
-
/** Files that must NOT be in .gitignore */
|
|
53
|
-
export declare const GITIGNORE_FORBIDDEN: readonly ["package-lock.json"];
|
|
54
|
-
/** Default preset name used by create-riebeckite */
|
|
55
|
-
export declare const DEFAULT_PRESET: "starter";
|
|
56
|
-
/** Starter preset content pages (base names without language suffixes) */
|
|
57
|
-
export declare const STARTER_CONTENT_PAGES: readonly ["index", "guide", "examples", "notes/planning", "notes/writing"];
|
|
58
|
-
/** Starter preset languages */
|
|
59
|
-
export declare const STARTER_LANGUAGES: readonly ["en", "ja", "zh-CN", "es", "de", "fr", "ko"];
|