@axerity/cli 0.2.1 → 0.2.3

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.
Files changed (66) hide show
  1. package/bin/axerity.js +34 -4
  2. package/dist/client/_app/immutable/assets/{0.jCJXzoiy.css → 0.Dg-buelk.css} +1 -1
  3. package/dist/client/_app/immutable/chunks/{Dt_5ZQE2.js → BgozG8UV.js} +1 -1
  4. package/dist/client/_app/immutable/chunks/D6lLFpcc.js +3 -0
  5. package/dist/client/_app/immutable/entry/{app.D6KBNU0y.js → app.CxX_Ngg4.js} +2 -2
  6. package/dist/client/_app/immutable/entry/start.BqXoqqf9.js +1 -0
  7. package/dist/client/_app/immutable/nodes/{0.DBZ13WOO.js → 0.Z00LhnRq.js} +1 -1
  8. package/dist/client/_app/immutable/nodes/{1.B_AZbN4M.js → 1.B4-umIy6.js} +1 -1
  9. package/dist/client/_app/immutable/nodes/{2.OqcLisIf.js → 2.CPYt6O3Q.js} +12 -12
  10. package/dist/client/_app/version.json +1 -1
  11. package/dist/openapi.js +381 -0
  12. package/dist/server/chunks/{0-oTZ8HCk-.js → 0-BwOQbF_V.js} +7 -7
  13. package/dist/server/chunks/{0-oTZ8HCk-.js.map → 0-BwOQbF_V.js.map} +1 -1
  14. package/dist/server/chunks/1-iVzeAeCr.js +9 -0
  15. package/dist/server/chunks/{1-nu6YvZRQ.js.map → 1-iVzeAeCr.js.map} +1 -1
  16. package/dist/server/chunks/{2-YpqcBGyH.js → 2-Cf2e_ZHQ.js} +6 -6
  17. package/dist/server/chunks/{2-YpqcBGyH.js.map → 2-Cf2e_ZHQ.js.map} +1 -1
  18. package/dist/server/chunks/{Icon-D37LtZZG.js → Icon-5yfImJr6.js} +3 -3
  19. package/dist/server/chunks/{Icon-D37LtZZG.js.map → Icon-5yfImJr6.js.map} +1 -1
  20. package/dist/server/chunks/{_error.svelte-NKP81ks-.js → _error.svelte-BVoDw74f.js} +4 -4
  21. package/dist/server/chunks/{_error.svelte-NKP81ks-.js.map → _error.svelte-BVoDw74f.js.map} +1 -1
  22. package/dist/server/chunks/{_layout.svelte-2Eq-_AqW.js → _layout.svelte-BcCaU3bG.js} +5 -3
  23. package/dist/server/chunks/_layout.svelte-BcCaU3bG.js.map +1 -0
  24. package/dist/server/chunks/{_page.svelte-Chjw6C-d.js → _page.svelte-n6-SvczT.js} +86 -63
  25. package/dist/server/chunks/_page.svelte-n6-SvczT.js.map +1 -0
  26. package/dist/server/chunks/{_server.ts-Bx1daJ1-.js → _server.ts-97y1e_kf.js} +4 -4
  27. package/dist/server/chunks/{_server.ts-Bx1daJ1-.js.map → _server.ts-97y1e_kf.js.map} +1 -1
  28. package/dist/server/chunks/{_server.ts-kWOJv5IZ.js → _server.ts-BAMEqfNt.js} +3 -3
  29. package/dist/server/chunks/{_server.ts-kWOJv5IZ.js.map → _server.ts-BAMEqfNt.js.map} +1 -1
  30. package/dist/server/chunks/{_server.ts-Dgpc__Yz.js → _server.ts-BAwRfQmf.js} +3 -3
  31. package/dist/server/chunks/{_server.ts-Dgpc__Yz.js.map → _server.ts-BAwRfQmf.js.map} +1 -1
  32. package/dist/server/chunks/{_server.ts-DIxsjlQ0.js → _server.ts-Bop-CIYW.js} +4 -4
  33. package/dist/server/chunks/{_server.ts-DIxsjlQ0.js.map → _server.ts-Bop-CIYW.js.map} +1 -1
  34. package/dist/server/chunks/{_server.ts-BuDGLKUC.js → _server.ts-CFwzq76p.js} +95 -61
  35. package/dist/server/chunks/_server.ts-CFwzq76p.js.map +1 -0
  36. package/dist/server/chunks/{_server.ts-BRaXDyO1.js → _server.ts-Cu-FKBie.js} +4 -4
  37. package/dist/server/chunks/{_server.ts-BRaXDyO1.js.map → _server.ts-Cu-FKBie.js.map} +1 -1
  38. package/dist/server/chunks/{_server.ts-5K31OG2_.js → _server.ts-SMDAHwKa.js} +4 -4
  39. package/dist/server/chunks/{_server.ts-5K31OG2_.js.map → _server.ts-SMDAHwKa.js.map} +1 -1
  40. package/dist/server/chunks/{_server.ts-By7FRFNB.js → _server.ts-dD8wecb9.js} +4 -4
  41. package/dist/server/chunks/{_server.ts-By7FRFNB.js.map → _server.ts-dD8wecb9.js.map} +1 -1
  42. package/dist/server/chunks/{content-store-DV5Rlfo3.js → content-store-Sgdh2P8q.js} +40 -5
  43. package/dist/server/chunks/{content-store-DV5Rlfo3.js.map → content-store-Sgdh2P8q.js.map} +1 -1
  44. package/dist/server/chunks/{exports-C0PApeP1.js → exports-MurdpiMe.js} +2 -2
  45. package/dist/server/chunks/{exports-C0PApeP1.js.map → exports-MurdpiMe.js.map} +1 -1
  46. package/dist/server/chunks/{hooks.server-BnfZljxX.js → hooks.server-B1enBMkZ.js} +12 -4
  47. package/dist/server/chunks/hooks.server-B1enBMkZ.js.map +1 -0
  48. package/dist/server/chunks/{internal-pc3wKdix.js → internal-BZm_X2cF.js} +3 -3
  49. package/dist/server/chunks/{internal-pc3wKdix.js.map → internal-BZm_X2cF.js.map} +1 -1
  50. package/dist/server/chunks/{site-CmugjRXT.js → site-CKxeIt_V.js} +3 -2
  51. package/dist/server/chunks/site-CKxeIt_V.js.map +1 -0
  52. package/dist/server/index.js +2 -2
  53. package/dist/server/manifest.js +14 -14
  54. package/dist/server/manifest.js.map +1 -1
  55. package/package.json +5 -4
  56. package/runtime/crawl.js +38 -2
  57. package/runtime/openapi.js +24 -0
  58. package/dist/client/_app/immutable/chunks/O1MNaiG9.js +0 -3
  59. package/dist/client/_app/immutable/entry/start.CQdeQUt-.js +0 -1
  60. package/dist/client/og-image.png +0 -0
  61. package/dist/server/chunks/1-nu6YvZRQ.js +0 -9
  62. package/dist/server/chunks/_layout.svelte-2Eq-_AqW.js.map +0 -1
  63. package/dist/server/chunks/_page.svelte-Chjw6C-d.js.map +0 -1
  64. package/dist/server/chunks/_server.ts-BuDGLKUC.js.map +0 -1
  65. package/dist/server/chunks/hooks.server-BnfZljxX.js.map +0 -1
  66. package/dist/server/chunks/site-CmugjRXT.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { g as base } from './internal-pc3wKdix.js';
1
+ import { g as base } from './internal-BZm_X2cF.js';
2
2
  import '@sveltejs/kit/internal/server';
3
- import { g as getNav, r as raw } from './content-store-DV5Rlfo3.js';
3
+ import { g as getNav, r as raw } from './content-store-Sgdh2P8q.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-Dgpc__Yz.js.map
41
+ //# sourceMappingURL=_server.ts-BAwRfQmf.js.map
@@ -1 +1 @@
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\n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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
+ {"version":3,"file":"_server.ts-BAwRfQmf.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,UAA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,EAAE,EAAE,CAAC;AAC/F;;;;"}
@@ -1,6 +1,6 @@
1
- import { g as getSite } from './site-CmugjRXT.js';
2
- import { g as getNav } from './content-store-DV5Rlfo3.js';
3
- import './internal-pc3wKdix.js';
1
+ import { g as getSite } from './site-CKxeIt_V.js';
2
+ import { g as getNav } from './content-store-Sgdh2P8q.js';
3
+ import './internal-BZm_X2cF.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-DIxsjlQ0.js.map
32
+ //# sourceMappingURL=_server.ts-Bop-CIYW.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"_server.ts-Bop-CIYW.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,7 +1,7 @@
1
- import { g as base } from './internal-pc3wKdix.js';
1
+ import { g as base } from './internal-BZm_X2cF.js';
2
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
+ import { g as getSite } from './site-CKxeIt_V.js';
4
+ import { f as frontmatterByPath, g as getNav } from './content-store-Sgdh2P8q.js';
5
5
  import { error } from '@sveltejs/kit';
6
6
  import { readFileSync } from 'node:fs';
7
7
  import { join, extname } from 'node:path';
@@ -25,13 +25,37 @@ function clamp(value, max) {
25
25
  const trimmed = value.trim();
26
26
  return trimmed.length > max ? `${trimmed.slice(0, max - 1).trimEnd()}…` : trimmed;
27
27
  }
28
- async function renderOgImage({ title, description, siteName, og, fonts, logo }) {
28
+ function withAlpha(hex, alpha) {
29
+ const m = hex.replace("#", "");
30
+ return `rgba(${parseInt(m.slice(0, 2), 16)}, ${parseInt(m.slice(2, 4), 16)}, ${parseInt(m.slice(4, 6), 16)}, ${alpha})`;
31
+ }
32
+ async function renderOgImage({ title, description, siteName, eyebrow, og, fonts, logo }) {
29
33
  const background = og?.background ?? "#0a0a0a";
30
34
  const foreground = og?.foreground ?? "#fafafa";
31
35
  const muted = og?.muted ?? "#a1a1a1";
32
36
  const accent = og?.accent ?? foreground;
37
+ const glow = withAlpha(accent, .2);
33
38
  const headline = clamp(title, 80);
34
39
  const subtitle = description ? clamp(description, 140) : "";
40
+ const top = logo ? {
41
+ type: "img",
42
+ props: {
43
+ src: logo.src,
44
+ width: logo.width,
45
+ height: logo.height
46
+ }
47
+ } : {
48
+ type: "div",
49
+ props: {
50
+ style: {
51
+ display: "flex",
52
+ fontSize: "34px",
53
+ fontWeight: 600,
54
+ color: accent
55
+ },
56
+ children: siteName
57
+ }
58
+ };
35
59
  return new Resvg(await satori({
36
60
  type: "div",
37
61
  props: {
@@ -43,87 +67,60 @@ async function renderOgImage({ title, description, siteName, og, fonts, logo })
43
67
  justifyContent: "space-between",
44
68
  padding: "80px",
45
69
  backgroundColor: background,
70
+ backgroundImage: `radial-gradient(95% 125% at 95% 100%, ${glow} 0%, ${background} 65%)`,
46
71
  color: foreground,
47
72
  fontFamily: "Geist"
48
73
  },
49
- children: [
50
- {
51
- type: "div",
52
- props: {
53
- style: {
54
- display: "flex",
55
- alignItems: "center",
56
- gap: "14px",
57
- fontSize: "30px",
58
- fontWeight: 600,
59
- color: accent
60
- },
61
- children: [logo ? {
62
- type: "img",
63
- props: {
64
- src: logo,
65
- width: 30,
66
- height: 32
67
- }
68
- } : {
74
+ children: [top, {
75
+ type: "div",
76
+ props: {
77
+ style: {
78
+ display: "flex",
79
+ flexDirection: "column"
80
+ },
81
+ children: [
82
+ eyebrow ? {
69
83
  type: "div",
70
84
  props: {
71
85
  style: {
72
- width: "20px",
73
- height: "20px",
74
- borderRadius: "6px",
75
- backgroundColor: accent
86
+ display: "flex",
87
+ fontSize: "30px",
88
+ fontWeight: 600,
89
+ color: accent,
90
+ marginBottom: "18px"
76
91
  },
77
- children: ""
92
+ children: eyebrow
78
93
  }
79
- }, siteName]
80
- }
81
- },
82
- {
83
- type: "div",
84
- props: {
85
- style: {
86
- display: "flex",
87
- flexDirection: "column"
88
- },
89
- children: [{
94
+ } : null,
95
+ {
90
96
  type: "div",
91
97
  props: {
92
98
  style: {
93
99
  display: "flex",
94
- fontSize: "68px",
100
+ fontSize: "72px",
95
101
  fontWeight: 700,
96
- lineHeight: 1.1
102
+ lineHeight: 1.05,
103
+ letterSpacing: "-0.02em"
97
104
  },
98
105
  children: headline
99
106
  }
100
- }, subtitle ? {
107
+ },
108
+ subtitle ? {
101
109
  type: "div",
102
110
  props: {
103
111
  style: {
104
112
  display: "flex",
105
- marginTop: "24px",
113
+ marginTop: "28px",
106
114
  fontSize: "32px",
107
115
  lineHeight: 1.3,
108
116
  color: muted
109
117
  },
110
118
  children: subtitle
111
119
  }
112
- } : null]
113
- }
114
- },
115
- {
116
- type: "div",
117
- props: {
118
- style: {
119
- display: "flex",
120
- fontSize: "26px",
121
- color: muted
122
- },
123
- children: siteName.toLowerCase()
124
- }
120
+ } : null
121
+ ]
125
122
  }
126
- ]
123
+ }]
127
124
  }
128
125
  }, {
129
126
  width: WIDTH,
@@ -141,6 +138,7 @@ async function renderOgImage({ title, description, siteName, og, fonts, logo })
141
138
  }
142
139
  //#endregion
143
140
  //#region src/routes/og/[...slug]/+server.ts
141
+ var LOGO_HEIGHT = 46;
144
142
  var ASSETS = process.env.AXERITY_ASSETS ?? "static";
145
143
  var STATIC_DIR = process.env.AXERITY_STATIC_DIR;
146
144
  var LOGO_MIME = {
@@ -167,6 +165,27 @@ function getFonts() {
167
165
  });
168
166
  return fontCache;
169
167
  }
168
+ function imageDims(buf, mime) {
169
+ if (mime === "image/png") return {
170
+ w: buf.readUInt32BE(16),
171
+ h: buf.readUInt32BE(20)
172
+ };
173
+ if (mime === "image/svg+xml") {
174
+ const text = buf.toString("utf8");
175
+ const vb = text.match(/viewBox\s*=\s*["']\s*[\d.]+[ ,]+[\d.]+[ ,]+([\d.]+)[ ,]+([\d.]+)/);
176
+ if (vb) return {
177
+ w: parseFloat(vb[1]),
178
+ h: parseFloat(vb[2])
179
+ };
180
+ const w = text.match(/\bwidth\s*=\s*["']([\d.]+)/);
181
+ const h = text.match(/\bheight\s*=\s*["']([\d.]+)/);
182
+ if (w && h) return {
183
+ w: parseFloat(w[1]),
184
+ h: parseFloat(h[1])
185
+ };
186
+ }
187
+ return null;
188
+ }
170
189
  var logoCache;
171
190
  function getLogo() {
172
191
  const site = getSite();
@@ -179,7 +198,14 @@ function getLogo() {
179
198
  for (const root of [STATIC_DIR, ASSETS]) {
180
199
  if (!root) continue;
181
200
  try {
182
- logoCache = `data:${mime};base64,${readFileSync(join(root, rel)).toString("base64")}`;
201
+ const buf = readFileSync(join(root, rel));
202
+ const dims = imageDims(buf, mime);
203
+ const aspect = dims ? dims.w / dims.h : 1;
204
+ logoCache = {
205
+ src: `data:${mime};base64,${buf.toString("base64")}`,
206
+ width: Math.round(LOGO_HEIGHT * aspect),
207
+ height: LOGO_HEIGHT
208
+ };
183
209
  break;
184
210
  } catch {
185
211
  continue;
@@ -189,8 +215,15 @@ function getLogo() {
189
215
  }
190
216
  return logoCache ?? void 0;
191
217
  }
218
+ function eyebrowFor(key) {
219
+ const clean = key.replace(/\/index$/, "");
220
+ const target = clean === "index" || clean === "" ? `${base}/` : `${base}/${clean}`;
221
+ const hrefsOf = (items) => items.flatMap((entry) => "href" in entry ? [entry.href] : hrefsOf(entry.items));
222
+ for (const section of getNav().sidebar) if (hrefsOf(section.items).includes(target)) return section.title;
223
+ }
192
224
  var GET = async ({ params }) => {
193
- const fm = frontmatterByPath(params.slug.replace(/\.png$/, ""));
225
+ const key = params.slug.replace(/\.png$/, "");
226
+ const fm = frontmatterByPath(key);
194
227
  if (!fm) error(404, "Not found");
195
228
  const fonts = getFonts();
196
229
  const logo = getLogo();
@@ -199,6 +232,7 @@ var GET = async ({ params }) => {
199
232
  title: fm.title ?? site.name,
200
233
  description: fm.description ?? site.description,
201
234
  siteName: site.name,
235
+ eyebrow: eyebrowFor(key),
202
236
  og: site.og,
203
237
  fonts,
204
238
  logo
@@ -210,4 +244,4 @@ var GET = async ({ params }) => {
210
244
  };
211
245
 
212
246
  export { GET };
213
- //# sourceMappingURL=_server.ts-BuDGLKUC.js.map
247
+ //# sourceMappingURL=_server.ts-CFwzq76p.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts-CFwzq76p.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 { a as getNav, 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}\nfunction withAlpha(hex, alpha) {\n\tconst m = hex.replace(\"#\", \"\");\n\treturn `rgba(${parseInt(m.slice(0, 2), 16)}, ${parseInt(m.slice(2, 4), 16)}, ${parseInt(m.slice(4, 6), 16)}, ${alpha})`;\n}\nasync function renderOgImage({ title, description, siteName, eyebrow, 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 glow = withAlpha(accent, .2);\n\tconst headline = clamp(title, 80);\n\tconst subtitle = description ? clamp(description, 140) : \"\";\n\tconst top = logo ? {\n\t\ttype: \"img\",\n\t\tprops: {\n\t\t\tsrc: logo.src,\n\t\t\twidth: logo.width,\n\t\t\theight: logo.height\n\t\t}\n\t} : {\n\t\ttype: \"div\",\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tfontSize: \"34px\",\n\t\t\t\tfontWeight: 600,\n\t\t\t\tcolor: accent\n\t\t\t},\n\t\t\tchildren: siteName\n\t\t}\n\t};\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\tbackgroundImage: `radial-gradient(95% 125% at 95% 100%, ${glow} 0%, ${background} 65%)`,\n\t\t\t\tcolor: foreground,\n\t\t\t\tfontFamily: \"Geist\"\n\t\t\t},\n\t\t\tchildren: [top, {\n\t\t\t\ttype: \"div\",\n\t\t\t\tprops: {\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\tflexDirection: \"column\"\n\t\t\t\t\t},\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\teyebrow ? {\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: \"30px\",\n\t\t\t\t\t\t\t\t\tfontWeight: 600,\n\t\t\t\t\t\t\t\t\tcolor: accent,\n\t\t\t\t\t\t\t\t\tmarginBottom: \"18px\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: eyebrow\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} : null,\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\tdisplay: \"flex\",\n\t\t\t\t\t\t\t\t\tfontSize: \"72px\",\n\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\tlineHeight: 1.05,\n\t\t\t\t\t\t\t\t\tletterSpacing: \"-0.02em\"\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},\n\t\t\t\t\t\tsubtitle ? {\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: \"28px\",\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}]\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 LOGO_HEIGHT = 46;\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}\nfunction imageDims(buf, mime) {\n\tif (mime === \"image/png\") return {\n\t\tw: buf.readUInt32BE(16),\n\t\th: buf.readUInt32BE(20)\n\t};\n\tif (mime === \"image/svg+xml\") {\n\t\tconst text = buf.toString(\"utf8\");\n\t\tconst vb = text.match(/viewBox\\s*=\\s*[\"']\\s*[\\d.]+[ ,]+[\\d.]+[ ,]+([\\d.]+)[ ,]+([\\d.]+)/);\n\t\tif (vb) return {\n\t\t\tw: parseFloat(vb[1]),\n\t\t\th: parseFloat(vb[2])\n\t\t};\n\t\tconst w = text.match(/\\bwidth\\s*=\\s*[\"']([\\d.]+)/);\n\t\tconst h = text.match(/\\bheight\\s*=\\s*[\"']([\\d.]+)/);\n\t\tif (w && h) return {\n\t\t\tw: parseFloat(w[1]),\n\t\t\th: parseFloat(h[1])\n\t\t};\n\t}\n\treturn null;\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\tconst buf = readFileSync(join(root, rel));\n\t\t\t\t\tconst dims = imageDims(buf, mime);\n\t\t\t\t\tconst aspect = dims ? dims.w / dims.h : 1;\n\t\t\t\t\tlogoCache = {\n\t\t\t\t\t\tsrc: `data:${mime};base64,${buf.toString(\"base64\")}`,\n\t\t\t\t\t\twidth: Math.round(LOGO_HEIGHT * aspect),\n\t\t\t\t\t\theight: LOGO_HEIGHT\n\t\t\t\t\t};\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}\nfunction eyebrowFor(key) {\n\tconst clean = key.replace(/\\/index$/, \"\");\n\tconst target = clean === \"index\" || clean === \"\" ? `${base}/` : `${base}/${clean}`;\n\tconst hrefsOf = (items) => items.flatMap((entry) => \"href\" in entry ? [entry.href] : hrefsOf(entry.items));\n\tfor (const section of getNav().sidebar) if (hrefsOf(section.items).includes(target)) return section.title;\n}\nvar GET = async ({ params }) => {\n\tconst key = params.slug.replace(/\\.png$/, \"\");\n\tconst fm = frontmatterByPath(key);\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\teyebrow: eyebrowFor(key),\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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,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,6 +1,6 @@
1
- import { g as getSite } from './site-CmugjRXT.js';
2
- import { g as getNav } from './content-store-DV5Rlfo3.js';
3
- import './internal-pc3wKdix.js';
1
+ import { g as getSite } from './site-CKxeIt_V.js';
2
+ import { g as getNav } from './content-store-Sgdh2P8q.js';
3
+ import './internal-BZm_X2cF.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-BRaXDyO1.js.map
29
+ //# sourceMappingURL=_server.ts-Cu-FKBie.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"_server.ts-Cu-FKBie.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,7 +1,7 @@
1
- import { g as base } from './internal-pc3wKdix.js';
1
+ import { g as base } from './internal-BZm_X2cF.js';
2
2
  import '@sveltejs/kit/internal/server';
3
- import { g as getSite } from './site-CmugjRXT.js';
4
- import { g as getNav, r as raw } from './content-store-DV5Rlfo3.js';
3
+ import { g as getSite } from './site-CKxeIt_V.js';
4
+ import { g as getNav, r as raw } from './content-store-Sgdh2P8q.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-5K31OG2_.js.map
31
+ //# sourceMappingURL=_server.ts-SMDAHwKa.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"_server.ts-SMDAHwKa.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,7 +1,7 @@
1
- import { g as base } from './internal-pc3wKdix.js';
1
+ import { g as base } from './internal-BZm_X2cF.js';
2
2
  import '@sveltejs/kit/internal/server';
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';
3
+ import { g as getSite } from './site-CKxeIt_V.js';
4
+ import { c as allSourcePaths, g as getNav, b as allSlugs } from './content-store-Sgdh2P8q.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-By7FRFNB.js.map
37
+ //# sourceMappingURL=_server.ts-dD8wecb9.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"_server.ts-dD8wecb9.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,4 +1,4 @@
1
- import { g as base } from './internal-pc3wKdix.js';
1
+ import { g as base } from './internal-BZm_X2cF.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';
@@ -10,7 +10,7 @@ import remarkFrontmatter from 'remark-frontmatter';
10
10
  import remarkGfm from 'remark-gfm';
11
11
  import remarkParse from 'remark-parse';
12
12
  import { unified } from 'unified';
13
- import { createHighlighter } from 'shiki';
13
+ import { createHighlighter, bundledLanguages } from 'shiki';
14
14
  import { transformerTwoslash } from '@shikijs/twoslash';
15
15
 
16
16
  // This module is generated by `script/`.
@@ -4808,13 +4808,37 @@ var langs = [
4808
4808
  "svelte",
4809
4809
  "typescript",
4810
4810
  "javascript",
4811
+ "jsx",
4812
+ "tsx",
4811
4813
  "json",
4814
+ "jsonc",
4812
4815
  "yaml",
4816
+ "toml",
4817
+ "ini",
4813
4818
  "bash",
4814
4819
  "shell",
4820
+ "powershell",
4821
+ "python",
4822
+ "go",
4823
+ "rust",
4824
+ "java",
4825
+ "kotlin",
4826
+ "swift",
4827
+ "c",
4828
+ "cpp",
4829
+ "csharp",
4830
+ "ruby",
4831
+ "php",
4832
+ "sql",
4833
+ "graphql",
4815
4834
  "html",
4816
4835
  "css",
4817
- "markdown"
4836
+ "scss",
4837
+ "xml",
4838
+ "markdown",
4839
+ "dockerfile",
4840
+ "diff",
4841
+ "http"
4818
4842
  ];
4819
4843
  var highlighterPromise;
4820
4844
  function getHighlighter() {
@@ -4824,6 +4848,17 @@ function getHighlighter() {
4824
4848
  });
4825
4849
  return highlighterPromise;
4826
4850
  }
4851
+ async function ensureLanguage(highlighter, lang) {
4852
+ if (!lang) return "text";
4853
+ if (highlighter.getLoadedLanguages().includes(lang)) return lang;
4854
+ if (lang in bundledLanguages) try {
4855
+ await highlighter.loadLanguage(bundledLanguages[lang]);
4856
+ return lang;
4857
+ } catch {
4858
+ return "text";
4859
+ }
4860
+ return "text";
4861
+ }
4827
4862
  function escapeHtml(str) {
4828
4863
  return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
4829
4864
  }
@@ -4889,7 +4924,7 @@ async function highlightCode(code, lang, meta = "") {
4889
4924
  mermaid: code
4890
4925
  };
4891
4926
  const highlighter = await getHighlighter();
4892
- const language = lang && highlighter.getLoadedLanguages().includes(lang) && lang || "text";
4927
+ const language = await ensureLanguage(highlighter, lang);
4893
4928
  const title = parseTitle(meta);
4894
4929
  const highlightLines = parseHighlightLines(meta);
4895
4930
  const twoslashEnabled = hasTwoslash(meta);
@@ -5249,4 +5284,4 @@ async function raw(slug) {
5249
5284
  }
5250
5285
 
5251
5286
  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-DV5Rlfo3.js.map
5287
+ //# sourceMappingURL=content-store-Sgdh2P8q.js.map