@axerity/cli 0.2.0 → 0.2.1
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/bin/axerity.js +6 -3
- package/dist/client/_app/immutable/chunks/{m89wIWMZ.js → Dt_5ZQE2.js} +1 -1
- package/dist/client/_app/immutable/chunks/O1MNaiG9.js +3 -0
- package/dist/client/_app/immutable/entry/{app.BxBJhrll.js → app.D6KBNU0y.js} +2 -2
- package/dist/client/_app/immutable/entry/start.CQdeQUt-.js +1 -0
- package/dist/client/_app/immutable/nodes/{0.C7MOOY8s.js → 0.DBZ13WOO.js} +1 -1
- package/dist/client/_app/immutable/nodes/{1.C1SZKZS6.js → 1.B_AZbN4M.js} +1 -1
- package/dist/client/_app/immutable/nodes/{2.C9w6NQmI.js → 2.OqcLisIf.js} +1 -1
- package/dist/client/_app/version.json +1 -1
- package/dist/server/chunks/{0-lMxIppsX.js → 0-oTZ8HCk-.js} +6 -6
- package/dist/server/chunks/{0-lMxIppsX.js.map → 0-oTZ8HCk-.js.map} +1 -1
- package/dist/server/chunks/1-nu6YvZRQ.js +9 -0
- package/dist/server/chunks/{1-CyLqCHnY.js.map → 1-nu6YvZRQ.js.map} +1 -1
- package/dist/server/chunks/{2-B-CcMKoh.js → 2-YpqcBGyH.js} +6 -6
- package/dist/server/chunks/{2-B-CcMKoh.js.map → 2-YpqcBGyH.js.map} +1 -1
- package/dist/server/chunks/{Icon-B5VFrlh0.js → Icon-D37LtZZG.js} +3 -3
- package/dist/server/chunks/{Icon-B5VFrlh0.js.map → Icon-D37LtZZG.js.map} +1 -1
- package/dist/server/chunks/{_error.svelte-COifK9P1.js → _error.svelte-NKP81ks-.js} +4 -4
- package/dist/server/chunks/{_error.svelte-COifK9P1.js.map → _error.svelte-NKP81ks-.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-DTQwWfEr.js → _layout.svelte-2Eq-_AqW.js} +2 -2
- package/dist/server/chunks/{_layout.svelte-DTQwWfEr.js.map → _layout.svelte-2Eq-_AqW.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-gMTRy91w.js → _page.svelte-Chjw6C-d.js} +4 -4
- package/dist/server/chunks/{_page.svelte-gMTRy91w.js.map → _page.svelte-Chjw6C-d.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-Cfw-nQ4-.js → _server.ts-5K31OG2_.js} +4 -4
- package/dist/server/chunks/{_server.ts-Cfw-nQ4-.js.map → _server.ts-5K31OG2_.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BtzVXaCw.js → _server.ts-BRaXDyO1.js} +4 -4
- package/dist/server/chunks/{_server.ts-BtzVXaCw.js.map → _server.ts-BRaXDyO1.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-DnjaLdrg.js → _server.ts-BuDGLKUC.js} +29 -11
- package/dist/server/chunks/_server.ts-BuDGLKUC.js.map +1 -0
- package/dist/server/chunks/{_server.ts-DlaxEvWB.js → _server.ts-Bx1daJ1-.js} +4 -4
- package/dist/server/chunks/{_server.ts-DlaxEvWB.js.map → _server.ts-Bx1daJ1-.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BuKSyj8m.js → _server.ts-By7FRFNB.js} +4 -4
- package/dist/server/chunks/{_server.ts-BuKSyj8m.js.map → _server.ts-By7FRFNB.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BBt3KS4Z.js → _server.ts-DIxsjlQ0.js} +4 -4
- package/dist/server/chunks/{_server.ts-BBt3KS4Z.js.map → _server.ts-DIxsjlQ0.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-T58MO2wL.js → _server.ts-Dgpc__Yz.js} +3 -3
- package/dist/server/chunks/{_server.ts-T58MO2wL.js.map → _server.ts-Dgpc__Yz.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BaIDzhzq.js → _server.ts-kWOJv5IZ.js} +3 -3
- package/dist/server/chunks/{_server.ts-BaIDzhzq.js.map → _server.ts-kWOJv5IZ.js.map} +1 -1
- package/dist/server/chunks/{content-store-DPJsj8gD.js → content-store-DV5Rlfo3.js} +2 -2
- package/dist/server/chunks/{content-store-DPJsj8gD.js.map → content-store-DV5Rlfo3.js.map} +1 -1
- package/dist/server/chunks/{exports-ZnEJ4gG9.js → exports-C0PApeP1.js} +2 -2
- package/dist/server/chunks/{exports-ZnEJ4gG9.js.map → exports-C0PApeP1.js.map} +1 -1
- package/dist/server/chunks/{hooks.server-nz527EC9.js → hooks.server-BnfZljxX.js} +3 -3
- package/dist/server/chunks/{hooks.server-nz527EC9.js.map → hooks.server-BnfZljxX.js.map} +1 -1
- package/dist/server/chunks/{internal-CvDbuC7W.js → internal-pc3wKdix.js} +3 -3
- package/dist/server/chunks/{internal-CvDbuC7W.js.map → internal-pc3wKdix.js.map} +1 -1
- package/dist/server/chunks/{site-BfALkgJ-.js → site-CmugjRXT.js} +13 -8
- package/dist/server/chunks/site-CmugjRXT.js.map +1 -0
- package/dist/server/index.js +2 -2
- package/dist/server/manifest.js +12 -12
- package/dist/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/runtime/crawl.js +11 -1
- package/runtime/serve.js +9 -0
- package/runtime/static.js +76 -0
- package/dist/client/_app/immutable/chunks/v97jXyQK.js +0 -3
- package/dist/client/_app/immutable/entry/start.mAPciu1x.js +0 -1
- package/dist/server/chunks/1-CyLqCHnY.js +0 -9
- package/dist/server/chunks/_server.ts-DnjaLdrg.js.map +0 -1
- package/dist/server/chunks/site-BfALkgJ-.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { g as getNav, r as raw } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
4
|
+
import { g as getNav, r as raw } from './content-store-DV5Rlfo3.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'yaml';
|
|
@@ -28,4 +28,4 @@ var GET = async () => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export { GET };
|
|
31
|
-
//# sourceMappingURL=_server.ts-
|
|
31
|
+
//# sourceMappingURL=_server.ts-5K31OG2_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-5K31OG2_.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/llms-full.txt/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/environment.js\";\nimport \"../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../chunks/site.js\";\nimport { a as getNav, o as raw } from \"../../../chunks/content-store.js\";\n//#region src/routes/llms-full.txt/+server.ts\nvar GET = async () => {\n\tconst site = getSite();\n\tconst parts = [`# ${site.name}`];\n\tif (site.description) parts.push(\"\", `> ${site.description}`);\n\tfor (const page of getNav().flatPages) {\n\t\tconst markdown = await raw(page.href.slice(base.length).replace(/^\\//, \"\"));\n\t\tif (markdown) parts.push(\"\", \"---\", \"\", markdown);\n\t}\n\treturn new Response(parts.join(\"\\n\") + \"\\n\", { headers: { \"content-type\": \"text/plain; charset=utf-8\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA;AACG,IAAC,GAAG,GAAG,YAAY;AACtB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACjC,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;AAC9D,CAAC,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE;AACxC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAC7E,EAAE,IAAI,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,CAAC;AACnD,CAAC;AACD,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE,EAAE,CAAC;AAC3G;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getSite } from './site-
|
|
2
|
-
import { g as getNav } from './content-store-
|
|
3
|
-
import './internal-
|
|
1
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
2
|
+
import { g as getNav } from './content-store-DV5Rlfo3.js';
|
|
3
|
+
import './internal-pc3wKdix.js';
|
|
4
4
|
import '@sveltejs/kit/internal/server';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
@@ -26,4 +26,4 @@ ${getNav().flatPages.map((page) => `\t<url>\n\t\t<loc>${origin}${page.href}</loc
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export { GET };
|
|
29
|
-
//# sourceMappingURL=_server.ts-
|
|
29
|
+
//# sourceMappingURL=_server.ts-BRaXDyO1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-BRaXDyO1.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/sitemap.xml/_server.ts.js"],"sourcesContent":["import { t as getSite } from \"../../../chunks/site.js\";\nimport { a as getNav } from \"../../../chunks/content-store.js\";\n//#region src/routes/sitemap.xml/+server.ts\nvar GET = ({ url }) => {\n\tconst origin = getSite().url ?? url.origin;\n\tconst xml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n${getNav().flatPages.map((page) => `\\t<url>\\n\\t\\t<loc>${origin}${page.href}</loc>\\n\\t</url>`).join(\"\\n\")}\n</urlset>`;\n\treturn new Response(xml, { headers: { \"content-type\": \"application/xml\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA;AACG,IAAC,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK;AACvB,CAAC,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM;AAC3C,CAAC,MAAM,GAAG,GAAG,CAAC;AACd;AACA,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,kBAAkB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACxG,SAAS,CAAC;AACV,CAAC,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,EAAE,CAAC;AAC7E;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
|
+
import '@sveltejs/kit/internal/server';
|
|
3
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
4
|
+
import { f as frontmatterByPath } from './content-store-DV5Rlfo3.js';
|
|
3
5
|
import { error } from '@sveltejs/kit';
|
|
4
6
|
import { readFileSync } from 'node:fs';
|
|
5
|
-
import { join } from 'node:path';
|
|
7
|
+
import { join, extname } from 'node:path';
|
|
6
8
|
import satori from 'satori';
|
|
7
9
|
import { Resvg } from '@resvg/resvg-js';
|
|
8
|
-
import './internal-CvDbuC7W.js';
|
|
9
|
-
import '@sveltejs/kit/internal/server';
|
|
10
10
|
import 'yaml';
|
|
11
11
|
import 'acorn';
|
|
12
12
|
import 'micromark-extension-mdx-jsx';
|
|
@@ -142,6 +142,15 @@ async function renderOgImage({ title, description, siteName, og, fonts, logo })
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/routes/og/[...slug]/+server.ts
|
|
144
144
|
var ASSETS = process.env.AXERITY_ASSETS ?? "static";
|
|
145
|
+
var STATIC_DIR = process.env.AXERITY_STATIC_DIR;
|
|
146
|
+
var LOGO_MIME = {
|
|
147
|
+
".svg": "image/svg+xml",
|
|
148
|
+
".png": "image/png",
|
|
149
|
+
".jpg": "image/jpeg",
|
|
150
|
+
".jpeg": "image/jpeg",
|
|
151
|
+
".gif": "image/gif",
|
|
152
|
+
".webp": "image/webp"
|
|
153
|
+
};
|
|
145
154
|
var WEIGHTS = [
|
|
146
155
|
400,
|
|
147
156
|
600,
|
|
@@ -162,12 +171,21 @@ var logoCache;
|
|
|
162
171
|
function getLogo() {
|
|
163
172
|
const site = getSite();
|
|
164
173
|
const logoPath = site.og?.logo ?? site.logo?.dark ?? site.logo?.light;
|
|
165
|
-
if (logoCache === void 0)
|
|
166
|
-
else try {
|
|
167
|
-
const svg = readFileSync(join(ASSETS, logoPath.replace(/^\//, "")), "utf8");
|
|
168
|
-
logoCache = `data:image/svg+xml;base64,${Buffer.from(svg).toString("base64")}`;
|
|
169
|
-
} catch {
|
|
174
|
+
if (logoCache === void 0) {
|
|
170
175
|
logoCache = null;
|
|
176
|
+
const mime = logoPath && LOGO_MIME[extname(logoPath).toLowerCase()];
|
|
177
|
+
if (logoPath && mime) {
|
|
178
|
+
const rel = logoPath.replace(base, "").replace(/^\/+/, "");
|
|
179
|
+
for (const root of [STATIC_DIR, ASSETS]) {
|
|
180
|
+
if (!root) continue;
|
|
181
|
+
try {
|
|
182
|
+
logoCache = `data:${mime};base64,${readFileSync(join(root, rel)).toString("base64")}`;
|
|
183
|
+
break;
|
|
184
|
+
} catch {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
171
189
|
}
|
|
172
190
|
return logoCache ?? void 0;
|
|
173
191
|
}
|
|
@@ -192,4 +210,4 @@ var GET = async ({ params }) => {
|
|
|
192
210
|
};
|
|
193
211
|
|
|
194
212
|
export { GET };
|
|
195
|
-
//# sourceMappingURL=_server.ts-
|
|
213
|
+
//# sourceMappingURL=_server.ts-BuDGLKUC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-BuDGLKUC.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/og/_...slug_/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../../chunks/environment.js\";\nimport \"../../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../../chunks/site.js\";\nimport { i as frontmatterByPath } from \"../../../../chunks/content-store.js\";\nimport { error } from \"@sveltejs/kit\";\nimport { readFileSync } from \"node:fs\";\nimport { extname, join } from \"node:path\";\nimport satori from \"satori\";\nimport { Resvg } from \"@resvg/resvg-js\";\n//#region src/lib/server/og.ts\nvar WIDTH = 1200;\nvar HEIGHT = 630;\nfunction clamp(value, max) {\n\tconst trimmed = value.trim();\n\treturn trimmed.length > max ? `${trimmed.slice(0, max - 1).trimEnd()}…` : trimmed;\n}\nasync function renderOgImage({ title, description, siteName, og, fonts, logo }) {\n\tconst background = og?.background ?? \"#0a0a0a\";\n\tconst foreground = og?.foreground ?? \"#fafafa\";\n\tconst muted = og?.muted ?? \"#a1a1a1\";\n\tconst accent = og?.accent ?? foreground;\n\tconst headline = clamp(title, 80);\n\tconst subtitle = description ? clamp(description, 140) : \"\";\n\treturn new Resvg(await satori({\n\t\ttype: \"div\",\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tflexDirection: \"column\",\n\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\tpadding: \"80px\",\n\t\t\t\tbackgroundColor: background,\n\t\t\t\tcolor: foreground,\n\t\t\t\tfontFamily: \"Geist\"\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\t{\n\t\t\t\t\ttype: \"div\",\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tgap: \"14px\",\n\t\t\t\t\t\t\tfontSize: \"30px\",\n\t\t\t\t\t\t\tfontWeight: 600,\n\t\t\t\t\t\t\tcolor: accent\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [logo ? {\n\t\t\t\t\t\t\ttype: \"img\",\n\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\tsrc: logo,\n\t\t\t\t\t\t\t\twidth: 30,\n\t\t\t\t\t\t\t\theight: 32\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} : {\n\t\t\t\t\t\t\ttype: \"div\",\n\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\twidth: \"20px\",\n\t\t\t\t\t\t\t\t\theight: \"20px\",\n\t\t\t\t\t\t\t\t\tborderRadius: \"6px\",\n\t\t\t\t\t\t\t\t\tbackgroundColor: accent\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: \"\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, siteName]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: \"div\",\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tflexDirection: \"column\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [{\n\t\t\t\t\t\t\ttype: \"div\",\n\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\t\t\tfontSize: \"68px\",\n\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\tlineHeight: 1.1\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: headline\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, subtitle ? {\n\t\t\t\t\t\t\ttype: \"div\",\n\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\t\t\tmarginTop: \"24px\",\n\t\t\t\t\t\t\t\t\tfontSize: \"32px\",\n\t\t\t\t\t\t\t\t\tlineHeight: 1.3,\n\t\t\t\t\t\t\t\t\tcolor: muted\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: subtitle\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} : null]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: \"div\",\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tfontSize: \"26px\",\n\t\t\t\t\t\t\tcolor: muted\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: siteName.toLowerCase()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}, {\n\t\twidth: WIDTH,\n\t\theight: HEIGHT,\n\t\tfonts: fonts.map((f) => ({\n\t\t\tname: \"Geist\",\n\t\t\tdata: f.data,\n\t\t\tweight: f.weight,\n\t\t\tstyle: \"normal\"\n\t\t}))\n\t}), { fitTo: {\n\t\tmode: \"width\",\n\t\tvalue: WIDTH\n\t} }).render().asPng();\n}\n//#endregion\n//#region src/routes/og/[...slug]/+server.ts\nvar ASSETS = process.env.AXERITY_ASSETS ?? \"static\";\nvar STATIC_DIR = process.env.AXERITY_STATIC_DIR;\nvar LOGO_MIME = {\n\t\".svg\": \"image/svg+xml\",\n\t\".png\": \"image/png\",\n\t\".jpg\": \"image/jpeg\",\n\t\".jpeg\": \"image/jpeg\",\n\t\".gif\": \"image/gif\",\n\t\".webp\": \"image/webp\"\n};\nvar WEIGHTS = [\n\t400,\n\t600,\n\t700\n];\nvar fontCache = null;\nfunction getFonts() {\n\tif (!fontCache) fontCache = WEIGHTS.map((weight) => {\n\t\tconst buf = readFileSync(join(ASSETS, \"fonts\", `geist-${weight}.ttf`));\n\t\treturn {\n\t\t\tdata: buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength),\n\t\t\tweight\n\t\t};\n\t});\n\treturn fontCache;\n}\nvar logoCache;\nfunction getLogo() {\n\tconst site = getSite();\n\tconst logoPath = site.og?.logo ?? site.logo?.dark ?? site.logo?.light;\n\tif (logoCache === void 0) {\n\t\tlogoCache = null;\n\t\tconst mime = logoPath && LOGO_MIME[extname(logoPath).toLowerCase()];\n\t\tif (logoPath && mime) {\n\t\t\tconst rel = logoPath.replace(base, \"\").replace(/^\\/+/, \"\");\n\t\t\tfor (const root of [STATIC_DIR, ASSETS]) {\n\t\t\t\tif (!root) continue;\n\t\t\t\ttry {\n\t\t\t\t\tlogoCache = `data:${mime};base64,${readFileSync(join(root, rel)).toString(\"base64\")}`;\n\t\t\t\t\tbreak;\n\t\t\t\t} catch {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn logoCache ?? void 0;\n}\nvar GET = async ({ params }) => {\n\tconst fm = frontmatterByPath(params.slug.replace(/\\.png$/, \"\"));\n\tif (!fm) error(404, \"Not found\");\n\tconst fonts = getFonts();\n\tconst logo = getLogo();\n\tconst site = getSite();\n\tconst png = await renderOgImage({\n\t\ttitle: fm.title ?? site.name,\n\t\tdescription: fm.description ?? site.description,\n\t\tsiteName: site.name,\n\t\tog: site.og,\n\t\tfonts,\n\t\tlogo\n\t});\n\treturn new Response(new Uint8Array(png), { headers: {\n\t\t\"content-type\": \"image/png\",\n\t\t\"cache-control\": \"public, max-age=31536000, immutable\"\n\t} });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;AACA,IAAI,KAAK,GAAG,IAAI;AAChB,IAAI,MAAM,GAAG,GAAG;AAChB,SAAS,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE;AAC3B,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE;AAC7B,CAAC,OAAO,OAAO,CAAC,MAAM,GAAG,GAAG,GAAG,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO;AAClF;AACA,eAAe,aAAa,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;AAChF,CAAC,MAAM,UAAU,GAAG,EAAE,EAAE,UAAU,IAAI,SAAS;AAC/C,CAAC,MAAM,UAAU,GAAG,EAAE,EAAE,UAAU,IAAI,SAAS;AAC/C,CAAC,MAAM,KAAK,GAAG,EAAE,EAAE,KAAK,IAAI,SAAS;AACrC,CAAC,MAAM,MAAM,GAAG,EAAE,EAAE,MAAM,IAAI,UAAU;AACxC,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;AAClC,CAAC,MAAM,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,CAAC,GAAG,EAAE;AAC5D,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,MAAM,CAAC;AAC/B,EAAE,IAAI,EAAE,KAAK;AACb,EAAE,KAAK,EAAE;AACT,GAAG,KAAK,EAAE;AACV,IAAI,KAAK,EAAE,MAAM;AACjB,IAAI,MAAM,EAAE,MAAM;AAClB,IAAI,OAAO,EAAE,MAAM;AACnB,IA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AI;AACrB,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE;AACb,EAAE,KAAK;AACP,EAAE;AACF,EAAE,CAAC;AACH,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE;AACrD,EAAE,cAAc,EAAE,WAAW;AAC7B,EAAE,eAAe,EAAE;AACnB,EAAE,EAAE,CAAC;AACL;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { a as allPages } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
4
|
+
import { a as allPages } from './content-store-DV5Rlfo3.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'yaml';
|
|
@@ -50,4 +50,4 @@ ${items}
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export { GET };
|
|
53
|
-
//# sourceMappingURL=_server.ts-
|
|
53
|
+
//# sourceMappingURL=_server.ts-Bx1daJ1-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Bx1daJ1-.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/rss.xml/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/environment.js\";\nimport \"../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../chunks/site.js\";\nimport { t as allPages } from \"../../../chunks/content-store.js\";\n//#region src/routes/rss.xml/+server.ts\nfunction escapeXml(value) {\n\treturn value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n}\nvar GET = () => {\n\tconst site = getSite();\n\tconst origin = (site.url ?? \"\") + base;\n\tconst items = allPages().map((p) => ({\n\t\tslug: p.slug,\n\t\tfm: p.frontmatter\n\t})).filter((entry) => Boolean(entry.fm.date)).sort((a, b) => new Date(b.fm.date).getTime() - new Date(a.fm.date).getTime()).map((entry) => {\n\t\tconst link = `${origin}/${entry.slug}`;\n\t\tconst title = escapeXml(entry.fm.title ?? entry.slug);\n\t\tconst description = escapeXml(entry.fm.description ?? \"\");\n\t\treturn ` <item>\n <title>${title}</title>\n <link>${link}</link>\n <guid>${link}</guid>\n <pubDate>${new Date(entry.fm.date).toUTCString()}</pubDate>\n <description>${description}</description>\n </item>`;\n\t}).join(\"\\n\");\n\tconst xml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\">\n <channel>\n <title>${escapeXml(site.name)}</title>\n <link>${origin}</link>\n <description>${escapeXml(site.description ?? \"\")}</description>\n${items}\n </channel>\n</rss>`;\n\treturn new Response(xml, { headers: { \"content-type\": \"application/xml; charset=utf-8\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA;AACA,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1B,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;AAChI;AACG,IAAC,GAAG,GAAG,MAAM;AAChB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,IAAI;AACvC,CAAC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACtC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;AACd,EAAE,E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P,CAAC,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,gCAAgC,EAAE,EAAE,CAAC;AAC5F;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { c as allSourcePaths, g as getNav, b as allSlugs } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
4
|
+
import { c as allSourcePaths, g as getNav, b as allSlugs } from './content-store-DV5Rlfo3.js';
|
|
5
5
|
import { json } from '@sveltejs/kit';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
@@ -34,4 +34,4 @@ var GET = () => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export { GET };
|
|
37
|
-
//# sourceMappingURL=_server.ts-
|
|
37
|
+
//# sourceMappingURL=_server.ts-By7FRFNB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-By7FRFNB.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/__manifest/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/environment.js\";\nimport \"../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../chunks/site.js\";\nimport { a as getNav, n as allSlugs, r as allSourcePaths } from \"../../../chunks/content-store.js\";\nimport { json } from \"@sveltejs/kit\";\n//#region src/routes/__manifest/+server.ts\nvar GET = () => {\n\treturn json({\n\t\tbase,\n\t\tpages: allSlugs().map((slug) => slug ? `${base}/${slug}` : `${base}/`),\n\t\tmd: getNav().flatPages.map((page) => `${page.href}.md`),\n\t\tog: getSite().og?.enabled ? allSourcePaths().map((sourcePath) => `${base}/og/${sourcePath.replace(/\\.md$/, \"\")}.png`) : [],\n\t\tfixed: [\n\t\t\t\"/search.json\",\n\t\t\t\"/sitemap.xml\",\n\t\t\t\"/rss.xml\",\n\t\t\t\"/llms.txt\",\n\t\t\t\"/llms-full.txt\"\n\t\t].map((path) => base + path)\n\t});\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAKA;AACG,IAAC,GAAG,GAAG,MAAM;AAChB,CAAC,OAAO,IAAI,CAAC;AACb,EAAE,IAAI;AACN,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AACxE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzD,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,UAAU,KAAK,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE;AAC5H,EAAE,KAAK,EAAE;AACT,GAAG,cAAc;AACjB,GAAG,cAAc;AACjB,GAAG,UAAU;AACb,GAAG,WAAW;AACd,GAAG;AACH,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;AAC7B,EAAE,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getSite } from './site-
|
|
2
|
-
import { g as getNav } from './content-store-
|
|
3
|
-
import './internal-
|
|
1
|
+
import { g as getSite } from './site-CmugjRXT.js';
|
|
2
|
+
import { g as getNav } from './content-store-DV5Rlfo3.js';
|
|
3
|
+
import './internal-pc3wKdix.js';
|
|
4
4
|
import '@sveltejs/kit/internal/server';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
@@ -29,4 +29,4 @@ var GET = () => {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export { GET };
|
|
32
|
-
//# sourceMappingURL=_server.ts-
|
|
32
|
+
//# sourceMappingURL=_server.ts-DIxsjlQ0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-DIxsjlQ0.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/llms.txt/_server.ts.js"],"sourcesContent":["import { t as getSite } from \"../../../chunks/site.js\";\nimport { a as getNav } from \"../../../chunks/content-store.js\";\n//#region src/routes/llms.txt/+server.ts\nvar GET = () => {\n\tconst site = getSite();\n\tconst lines = [`# ${site.name}`, \"\"];\n\tif (site.description) lines.push(`> ${site.description}`, \"\");\n\tlines.push(\"## Docs\", \"\");\n\tfor (const page of getNav().flatPages) {\n\t\tconst suffix = page.description ? `: ${page.description}` : \"\";\n\t\tlines.push(`- [${page.title}](${page.href}.md)${suffix}`);\n\t}\n\treturn new Response(lines.join(\"\\n\") + \"\\n\", { headers: { \"content-type\": \"text/plain; charset=utf-8\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA;AACG,IAAC,GAAG,GAAG,MAAM;AAChB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC;AACrC,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC;AAC9D,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;AAC1B,CAAC,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE;AACxC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE;AAChE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3D,CAAC;AACD,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE,EAAE,CAAC;AAC3G;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getNav, r as raw } from './content-store-
|
|
3
|
+
import { g as getNav, r as raw } from './content-store-DV5Rlfo3.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'yaml';
|
|
@@ -38,4 +38,4 @@ var GET = async () => {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export { GET };
|
|
41
|
-
//# sourceMappingURL=_server.ts-
|
|
41
|
+
//# sourceMappingURL=_server.ts-Dgpc__Yz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Dgpc__Yz.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/search.json/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/environment.js\";\nimport \"../../../chunks/paths.js\";\nimport { a as getNav, o as raw } from \"../../../chunks/content-store.js\";\n//#region src/routes/search.json/+server.ts\nfunction plainText(markdown) {\n\treturn markdown.replace(/```[\\s\\S]*?```/g, \" \").replace(/<[^>]+>/g, \" \").replace(/!?\\[([^\\]]*)\\]\\([^)]*\\)/g, \"$1\").replace(/[#>*_`|]/g, \" \").replace(/\\s+/g, \" \").trim().slice(0, 3e3);\n}\nvar GET = async () => {\n\tconst docs = [];\n\tasync function walk(entries, section) {\n\t\tfor (const entry of entries) if (\"href\" in entry) {\n\t\t\tconst raw$1 = await raw(entry.href.slice(base.length).replace(/^\\//, \"\"));\n\t\t\tdocs.push({\n\t\t\t\tid: entry.href,\n\t\t\t\ttitle: entry.title,\n\t\t\t\tsection,\n\t\t\t\tdescription: entry.description ?? \"\",\n\t\t\t\tcontent: raw$1 ? plainText(raw$1) : \"\",\n\t\t\t\thref: entry.href\n\t\t\t});\n\t\t} else await walk(entry.items, section);\n\t}\n\tfor (const group of getNav().sidebar) await walk(group.items, group.title);\n\treturn new Response(JSON.stringify(docs), { headers: { \"content-type\": \"application/json\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA;AACA,SAAS,SAAS,CAAC,QAAQ,EAAE;AAC7B,CAAC,OAAO,QAAQ,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;AACvL;AACG,IAAC,GAAG,GAAG,YAAY;AACtB,CAAC,MAAM,IAAI,GAAG,EAAE;AAChB,CAAC,eAAe,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE;AACvC,EAAE,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,IAAI,MAAM,IAAI,KAAK,EAAE;AACpD,GAAG,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAC5E,GAAG,IAAI,CAAC,IAAI,CAAC;AACb,IAAI,EAAE,EAAE,KAAK,CAAC,IAAI;AAClB,IAAI,KAAK,EAAE,KAAK,CAAC,KAAK;AACtB,IAAI,OAAO;AACX,IAAI,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE;AACxC,IAAI,OAAO,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE;AAC1C,IAAI,IAAI,EAAE,KAAK,CAAC;AAChB,IAAI,CAAC;AACL,EAAE,CAAC,MAAM,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC;AACzC,CAAC;AACD,CAAC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;AAC3E,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,CAAC;AAC/F;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as raw } from './content-store-
|
|
1
|
+
import { r as raw } from './content-store-DV5Rlfo3.js';
|
|
2
2
|
import { error } from '@sveltejs/kit';
|
|
3
|
-
import './internal-
|
|
3
|
+
import './internal-pc3wKdix.js';
|
|
4
4
|
import '@sveltejs/kit/internal/server';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
@@ -23,4 +23,4 @@ var GET = async ({ params }) => {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export { GET };
|
|
26
|
-
//# sourceMappingURL=_server.ts-
|
|
26
|
+
//# sourceMappingURL=_server.ts-kWOJv5IZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-kWOJv5IZ.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/_...path_mdfile_/_server.ts.js"],"sourcesContent":["import { o as raw } from \"../../../chunks/content-store.js\";\nimport { error } from \"@sveltejs/kit\";\n//#region src/routes/[...path=mdfile]/+server.ts\nvar GET = async ({ params }) => {\n\tconst markdown = await raw(params.path.replace(/\\.md$/, \"\"));\n\tif (markdown == null) error(404, \"Not found\");\n\treturn new Response(markdown, { headers: { \"content-type\": \"text/plain; charset=utf-8\" } });\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA;AACG,IAAC,GAAG,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AAChC,CAAC,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC,IAAI,QAAQ,IAAI,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC;AAC9C,CAAC,OAAO,IAAI,QAAQ,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE,EAAE,CAAC;AAC5F;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-pc3wKdix.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
3
|
import { readFileSync, existsSync, readdirSync, statSync } from 'node:fs';
|
|
4
4
|
import { join, resolve, relative } from 'node:path';
|
|
@@ -5249,4 +5249,4 @@ async function raw(slug) {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
|
|
5251
5251
|
export { allPages as a, allSlugs as b, allSourcePaths as c, render as d, frontmatterByPath as f, getNav as g, raw as r };
|
|
5252
|
-
//# sourceMappingURL=content-store-
|
|
5252
|
+
//# sourceMappingURL=content-store-DV5Rlfo3.js.map
|