@axerity/cli 0.2.6 → 0.3.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/axerity.default.json +1 -1
- package/dist/client/_app/immutable/assets/0.CZH7ZxPr.css +1 -0
- package/dist/client/_app/immutable/assets/2.DhWLHyyI.css +1 -0
- package/dist/client/_app/immutable/chunks/{hOQd14_i.js → 3zhJCuPD.js} +1 -1
- package/dist/client/_app/immutable/chunks/{Dn1BfjD4.js → 53uZe945.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BjVjgMFk2.js → BAYmjVfE2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{SbORYBuH.js → BDI8hnph.js} +1 -1
- package/dist/client/_app/immutable/chunks/BFAQUmTz.js +1 -0
- package/dist/client/_app/immutable/chunks/{CjixP7Y6.js → BFQipqJB.js} +1 -1
- package/dist/client/_app/immutable/chunks/BFRg3W-F.js +1 -0
- package/dist/client/_app/immutable/chunks/{BG7FFg0W2.js → BHDeYRpO2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DDXR3Aw12.js → BHR_F_t32.js} +1 -1
- package/dist/client/_app/immutable/chunks/{9IekHN0-.js → BM8_zthS.js} +1 -1
- package/dist/client/_app/immutable/chunks/{B8E5l9fg2.js → BMOoVw-k2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BydbDrPy.js → BPMaLfda.js} +3 -3
- package/dist/client/_app/immutable/chunks/BR449RvF.js +1 -0
- package/dist/client/_app/immutable/chunks/BUz0I7ul.js +1 -0
- package/dist/client/_app/immutable/chunks/BXNSIfnG.js +124 -0
- package/dist/client/_app/immutable/chunks/{DgYtIg5Q2.js → BdDGssl42.js} +1 -1
- package/dist/client/_app/immutable/chunks/{29nvmPLe2.js → BlXvQjZe2.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bnac6ltA.js +1 -0
- package/dist/client/_app/immutable/chunks/{CXC42hVj2.js → BtZX_eMV2.js} +1 -1
- package/dist/client/_app/immutable/chunks/BuVSglE6.js +1 -0
- package/dist/client/_app/immutable/chunks/{CUWABXvb2.js → C-p5-iNK2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{0CIKaoUA.js → C18gA2PH.js} +1 -1
- package/dist/client/_app/immutable/chunks/{Chn8RaCU2.js → C6ca-Knu2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BdkVA8sR.js → CGbXsxiy.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJipSaHd.js +1 -0
- package/dist/client/_app/immutable/chunks/{DG5yTEkY.js → CPz-TBEA.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CPm95Jbd.js → CQORkk8-.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DkLLcw4S2.js → CXLR2EHz2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{C52bpLvU.js → CZ0cYm2x.js} +1 -1
- package/dist/client/_app/immutable/chunks/{mmyK4psQ.js → CZiFlYgk.js} +1 -1
- package/dist/client/_app/immutable/chunks/Cfv_UPq2.js +3 -0
- package/dist/client/_app/immutable/chunks/{DGHybmkM2.js → CgmTaJ8d2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{D5KVydqU.js → CiHIt2YG.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DITdNjTm.js → CiW5yEDh.js} +1 -1
- package/dist/client/_app/immutable/chunks/CknXd1We.js +3 -0
- package/dist/client/_app/immutable/chunks/CltrrRSS.js +1 -0
- package/dist/client/_app/immutable/chunks/CmTDhATw.js +1 -0
- package/dist/client/_app/immutable/chunks/{DjHIY2T-.js → CoCevRkN.js} +1 -1
- package/dist/client/_app/immutable/chunks/{jw1rI_K6.js → CyXMInz4.js} +1 -1
- package/dist/client/_app/immutable/chunks/{B9DYqOIj.js → Czol_Abj.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DC_PITHB2.js → D-TGA8WR2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{aheLp5ES.js → D6c3WrhX.js} +1 -1
- package/dist/client/_app/immutable/chunks/{B_WlrXGf.js → D7r2UEIp.js} +1 -1
- package/dist/client/_app/immutable/chunks/{nmxqo83B.js → DAx_rZyE.js} +2 -2
- package/dist/client/_app/immutable/chunks/{0oJDGpiH.js → DCLuoHbo.js} +1 -1
- package/dist/client/_app/immutable/chunks/{ED9-GWAc2.js → DCPWdIoq2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DguRYYoc.js → DDShjGNr.js} +1 -1
- package/dist/client/_app/immutable/chunks/{qD2cSsUD2.js → DD_46lBB2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BcuUc08l.js → DDqudhAi.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DPoU52N62.js → DE5tNz5Y2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DJ3ZXVXb.js +1 -0
- package/dist/client/_app/immutable/chunks/DTcvOvVk.js +1 -0
- package/dist/client/_app/immutable/chunks/{Bv0OTsBk.js → DV6jTwmw.js} +1 -1
- package/dist/client/_app/immutable/chunks/{0tC8Ubqr.js → DhYL8InI.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BvKCZK04.js → DkVSDR0x.js} +1 -1
- package/dist/client/_app/immutable/chunks/DoXJbn9v2.js +1 -0
- package/dist/client/_app/immutable/chunks/{BpwmCo88.js → DokuivJC.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DUE6JLE3.js → DpLZdHaM.js} +1 -1
- package/dist/client/_app/immutable/chunks/{vx_Tnhqd2.js → DzJbTx-x2.js} +2 -2
- package/dist/client/_app/immutable/chunks/{Drl36yuV.js → KR7vRKhR.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DN7UZn62.js → M9khzxgc.js} +1 -1
- package/dist/client/_app/immutable/chunks/NJ05___j2.js +1 -0
- package/dist/client/_app/immutable/chunks/Nzh6khd2.js +1 -0
- package/dist/client/_app/immutable/chunks/YkkvKMZL.js +1 -0
- package/dist/client/_app/immutable/chunks/ZGh80ZHg.js +1 -0
- package/dist/client/_app/immutable/chunks/h6BdjjI92.js +321 -0
- package/dist/client/_app/immutable/chunks/h9kP9O3o2.js +1 -0
- package/dist/client/_app/immutable/chunks/{B-xzKD0v.js → i12c_YC7.js} +1 -1
- package/dist/client/_app/immutable/chunks/{BvvUMqJ3.js → lIaU_Ndo.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CLrCY0qQ2.js → nVR6wzGD2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CaWcga612.js → xQVgh2Nz2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{DvqUYvHq.js → xUGxzp67.js} +1 -1
- package/dist/client/_app/immutable/chunks/{Cj0bfwP6.js → ysrxrMHE.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CIIr70Sw2.js → zrLSAr0G2.js} +1 -1
- package/dist/client/_app/immutable/entry/{app.CHavN5Ab.js → app.BVzGOhjG.js} +2 -2
- package/dist/client/_app/immutable/entry/start.k3yD06Si.js +1 -0
- package/dist/client/_app/immutable/nodes/{0.DsyEtsAp.js → 0.Cr0DJ0Ky.js} +1 -1
- package/dist/client/_app/immutable/nodes/{1.BDPfbIIW.js → 1.BQpgqzAh.js} +1 -1
- package/dist/client/_app/immutable/nodes/{2.CSsxBNFP.js → 2.n7dsgCDR.js} +16 -16
- package/dist/client/_app/version.json +1 -1
- package/dist/server/chunks/{0-DqU1zXmV.js → 0-VSsoIXA0.js} +7 -7
- package/dist/server/chunks/{0-DqU1zXmV.js.map → 0-VSsoIXA0.js.map} +1 -1
- package/dist/server/chunks/1-DVU-8-9i.js +9 -0
- package/dist/server/chunks/{1-C0hUJal1.js.map → 1-DVU-8-9i.js.map} +1 -1
- package/dist/server/chunks/{2-C1yw5sLp.js → 2-QJ6-LaGI.js} +7 -7
- package/dist/server/chunks/2-QJ6-LaGI.js.map +1 -0
- package/dist/server/chunks/{Icon-BF7dpdHK.js → Icon-Cf35QSF9.js} +11 -10
- package/dist/server/chunks/Icon-Cf35QSF9.js.map +1 -0
- package/dist/server/chunks/{_error.svelte-jz5ajBRD.js → _error.svelte-d-BjEYcs.js} +6 -6
- package/dist/server/chunks/_error.svelte-d-BjEYcs.js.map +1 -0
- package/dist/server/chunks/{_layout.svelte-CO4TgG_F.js → _layout.svelte-wcEy01M0.js} +2 -2
- package/dist/server/chunks/_layout.svelte-wcEy01M0.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-Dui8gVTq.js → _page.svelte-BOd5mfMw.js} +124 -37
- package/dist/server/chunks/_page.svelte-BOd5mfMw.js.map +1 -0
- package/dist/server/chunks/{_server.ts-B2EEWu0Q.js → _server.ts-B4oNrDKh.js} +4 -4
- package/dist/server/chunks/{_server.ts-B2EEWu0Q.js.map → _server.ts-B4oNrDKh.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-Bs6M_5MS.js → _server.ts-BTDCpOL5.js} +4 -4
- package/dist/server/chunks/_server.ts-BTDCpOL5.js.map +1 -0
- package/dist/server/chunks/{_server.ts-TkTVes6T.js → _server.ts-BoXbbbOz.js} +4 -4
- package/dist/server/chunks/{_server.ts-TkTVes6T.js.map → _server.ts-BoXbbbOz.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-qmMJyuLb.js → _server.ts-CEX8Fp7r.js} +3 -3
- package/dist/server/chunks/{_server.ts-qmMJyuLb.js.map → _server.ts-CEX8Fp7r.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-B5hnUu3Y.js → _server.ts-CMdj1oJD.js} +4 -4
- package/dist/server/chunks/_server.ts-CMdj1oJD.js.map +1 -0
- package/dist/server/chunks/_server.ts-CQg__e5D.js +93 -0
- package/dist/server/chunks/_server.ts-CQg__e5D.js.map +1 -0
- package/dist/server/chunks/{_server.ts-DQuiQgQa.js → _server.ts-DupX5-bj.js} +4 -4
- package/dist/server/chunks/_server.ts-DupX5-bj.js.map +1 -0
- package/dist/server/chunks/{_server.ts-LWsjJfTm.js → _server.ts-e7-P1GQu.js} +3 -3
- package/dist/server/chunks/_server.ts-e7-P1GQu.js.map +1 -0
- package/dist/server/chunks/{content-store-BytMPVQK.js → content-store-C_HWEaMv.js} +32 -8
- package/dist/server/chunks/{content-store-BytMPVQK.js.map → content-store-C_HWEaMv.js.map} +1 -1
- package/dist/server/chunks/{exports-CbmVgEkG.js → exports-mmLR9hsw.js} +10 -10
- package/dist/server/chunks/exports-mmLR9hsw.js.map +1 -0
- package/dist/server/chunks/{hooks.server-Bc1rR9Cw.js → hooks.server-i3yJ8tQB.js} +3 -3
- package/dist/server/chunks/{hooks.server-Bc1rR9Cw.js.map → hooks.server-i3yJ8tQB.js.map} +1 -1
- package/dist/server/chunks/{internal-BATRAFHZ.js → internal2-BGg7Milx.js} +1118 -1113
- package/dist/server/chunks/internal2-BGg7Milx.js.map +1 -0
- package/dist/server/chunks/{site-C7OEEspj.js → site-bCTBBNTw.js} +2 -2
- package/dist/server/chunks/site-bCTBBNTw.js.map +1 -0
- package/dist/server/index.js +194 -177
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +12 -12
- package/dist/server/manifest.js.map +1 -1
- package/package.json +8 -8
- package/dist/client/_app/immutable/assets/0.BqIb39T-.css +0 -1
- package/dist/client/_app/immutable/assets/2.CXw2lWtY.css +0 -1
- package/dist/client/_app/immutable/chunks/BHpO4_hI.js +0 -1
- package/dist/client/_app/immutable/chunks/BJVqTjwb.js +0 -1
- package/dist/client/_app/immutable/chunks/BLhBgXDr.js +0 -1
- package/dist/client/_app/immutable/chunks/BN2RMMml.js +0 -1
- package/dist/client/_app/immutable/chunks/BRJCmJIf.js +0 -1
- package/dist/client/_app/immutable/chunks/Bnqy3DA5.js +0 -1
- package/dist/client/_app/immutable/chunks/Bs4qCkME.js +0 -1
- package/dist/client/_app/immutable/chunks/BsRQXaRE2.js +0 -1
- package/dist/client/_app/immutable/chunks/BvEOHWFX.js +0 -1
- package/dist/client/_app/immutable/chunks/C6Oj8XFW.js +0 -1
- package/dist/client/_app/immutable/chunks/CEW3xh3M.js +0 -124
- package/dist/client/_app/immutable/chunks/CRCJVyiH.js +0 -1
- package/dist/client/_app/immutable/chunks/CRrzsWKu.js +0 -1
- package/dist/client/_app/immutable/chunks/ChrKn_4b.js +0 -1
- package/dist/client/_app/immutable/chunks/CknBFD0d.js +0 -3
- package/dist/client/_app/immutable/chunks/D3mr2Pcs2.js +0 -1
- package/dist/client/_app/immutable/chunks/Dl6Yq-Hy.js +0 -1
- package/dist/client/_app/immutable/chunks/DowYdJZt.js +0 -1
- package/dist/client/_app/immutable/chunks/FqbQrHcz2.js +0 -321
- package/dist/client/_app/immutable/chunks/dcFrWhgf2.js +0 -1
- package/dist/client/_app/immutable/chunks/wCc4pE4l.js +0 -3
- package/dist/client/_app/immutable/entry/start.C6JWmLzz.js +0 -1
- package/dist/server/chunks/1-C0hUJal1.js +0 -9
- package/dist/server/chunks/2-C1yw5sLp.js.map +0 -1
- package/dist/server/chunks/Icon-BF7dpdHK.js.map +0 -1
- package/dist/server/chunks/_error.svelte-jz5ajBRD.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-CO4TgG_F.js.map +0 -1
- package/dist/server/chunks/_page.svelte-Dui8gVTq.js.map +0 -1
- package/dist/server/chunks/_server.ts-B5hnUu3Y.js.map +0 -1
- package/dist/server/chunks/_server.ts-Bs6M_5MS.js.map +0 -1
- package/dist/server/chunks/_server.ts-DQuiQgQa.js.map +0 -1
- package/dist/server/chunks/_server.ts-LWsjJfTm.js.map +0 -1
- package/dist/server/chunks/_server.ts-YhRffZCn.js +0 -53
- package/dist/server/chunks/_server.ts-YhRffZCn.js.map +0 -1
- package/dist/server/chunks/exports-CbmVgEkG.js.map +0 -1
- package/dist/server/chunks/internal-BATRAFHZ.js.map +0 -1
- package/dist/server/chunks/site-C7OEEspj.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getSite } from './site-
|
|
2
|
-
import { g as getNav } from './content-store-
|
|
3
|
-
import './
|
|
1
|
+
import { g as getSite } from './site-bCTBBNTw.js';
|
|
2
|
+
import { g as getNav } from './content-store-C_HWEaMv.js';
|
|
3
|
+
import './internal2-BGg7Milx.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-BoXbbbOz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-BoXbbbOz.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 { c as raw } from './content-store-
|
|
1
|
+
import { c as raw } from './content-store-C_HWEaMv.js';
|
|
2
2
|
import { error } from '@sveltejs/kit';
|
|
3
|
-
import './
|
|
3
|
+
import './internal2-BGg7Milx.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-CEX8Fp7r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-CEX8Fp7r.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,7 +1,7 @@
|
|
|
1
|
-
import { b as base } from './
|
|
1
|
+
import { b as base } from './internal2-BGg7Milx.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { f as frontmatterByPath, g as getNav } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-bCTBBNTw.js';
|
|
4
|
+
import { f as frontmatterByPath, g as getNav } from './content-store-C_HWEaMv.js';
|
|
5
5
|
import { error } from '@sveltejs/kit';
|
|
6
6
|
import { readFileSync } from 'node:fs';
|
|
7
7
|
import { join, extname } from 'node:path';
|
|
@@ -244,4 +244,4 @@ var GET = async ({ params }) => {
|
|
|
244
244
|
};
|
|
245
245
|
|
|
246
246
|
export { GET };
|
|
247
|
-
//# sourceMappingURL=_server.ts-
|
|
247
|
+
//# sourceMappingURL=_server.ts-CMdj1oJD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-CMdj1oJD.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/og/_...slug_/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../../chunks/internal.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 { 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,SAAS,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE;AAC/B,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;AAC/B,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,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G,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;AAC9C,CAAC,MAAM,EAAE,GAAG,iBAAiB,CAAC,GAAG,CAAC;AAClC,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC;AACjC,CAAC,MAAM,KAAK,GAAG,QAAQ,EAAE;AACzB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC;AACjC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI;AAC9B,EAAE,WAAW,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW;AACjD,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI;AACrB,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC;AAC1B,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;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { b as base } from './internal2-BGg7Milx.js';
|
|
2
|
+
import '@sveltejs/kit/internal/server';
|
|
3
|
+
import { g as getSite } from './site-bCTBBNTw.js';
|
|
4
|
+
import { d as allPages, r as render } from './content-store-C_HWEaMv.js';
|
|
5
|
+
import 'node:fs';
|
|
6
|
+
import 'node:path';
|
|
7
|
+
import 'yaml';
|
|
8
|
+
import 'acorn';
|
|
9
|
+
import 'micromark-extension-mdx-jsx';
|
|
10
|
+
import 'mdast-util-mdx-jsx';
|
|
11
|
+
import 'remark-frontmatter';
|
|
12
|
+
import 'remark-gfm';
|
|
13
|
+
import 'remark-parse';
|
|
14
|
+
import 'unified';
|
|
15
|
+
import 'shiki';
|
|
16
|
+
import '@shikijs/twoslash';
|
|
17
|
+
|
|
18
|
+
//#region src/routes/rss.xml/+server.ts
|
|
19
|
+
function escapeXml(value) {
|
|
20
|
+
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
21
|
+
}
|
|
22
|
+
function textOf(nodes) {
|
|
23
|
+
let out = "";
|
|
24
|
+
for (const node of nodes) if (node.type === "text") out += node.value;
|
|
25
|
+
else if (node.type === "element" || node.type === "component") out += textOf(node.children);
|
|
26
|
+
return out;
|
|
27
|
+
}
|
|
28
|
+
function collectUpdates(nodes, out) {
|
|
29
|
+
for (const node of nodes) {
|
|
30
|
+
if (node.type === "component" && node.name === "Update") out.push(node);
|
|
31
|
+
if ("children" in node && node.children) collectUpdates(node.children, out);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
var GET = async () => {
|
|
35
|
+
const site = getSite();
|
|
36
|
+
const origin = (site.url ?? "") + base;
|
|
37
|
+
const dated = allPages().map((p) => ({
|
|
38
|
+
slug: p.slug,
|
|
39
|
+
fm: p.frontmatter
|
|
40
|
+
})).filter((entry) => Boolean(entry.fm.date));
|
|
41
|
+
const items = [];
|
|
42
|
+
for (const entry of dated) {
|
|
43
|
+
const link = `${origin}/${entry.slug}`;
|
|
44
|
+
const pageTime = new Date(entry.fm.date).getTime();
|
|
45
|
+
const compiled = await render(entry.slug);
|
|
46
|
+
const updates = [];
|
|
47
|
+
if (compiled) collectUpdates(compiled.doc, updates);
|
|
48
|
+
if (updates.length) {
|
|
49
|
+
for (const node of updates) {
|
|
50
|
+
if (node.type !== "component") continue;
|
|
51
|
+
const label = typeof node.props.label === "string" ? node.props.label : "";
|
|
52
|
+
const title = typeof node.props.title === "string" ? node.props.title : "";
|
|
53
|
+
const description = typeof node.props.description === "string" ? node.props.description : "";
|
|
54
|
+
const dateProp = typeof node.props.date === "string" ? node.props.date : "";
|
|
55
|
+
const anchor = typeof node.props.anchor === "string" ? node.props.anchor : "";
|
|
56
|
+
const parsed = new Date(dateProp || label).getTime();
|
|
57
|
+
items.push({
|
|
58
|
+
title: title || label || entry.fm.title || entry.slug,
|
|
59
|
+
link: anchor ? `${link}#${anchor}` : link,
|
|
60
|
+
description: description || textOf(node.children).trim(),
|
|
61
|
+
time: Number.isNaN(parsed) ? pageTime : parsed
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
items.push({
|
|
67
|
+
title: entry.fm.title ?? entry.slug,
|
|
68
|
+
link,
|
|
69
|
+
description: entry.fm.description ?? "",
|
|
70
|
+
time: pageTime
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const body = items.sort((a, b) => b.time - a.time).map((item) => ` <item>
|
|
74
|
+
<title>${escapeXml(item.title)}</title>
|
|
75
|
+
<link>${item.link}</link>
|
|
76
|
+
<guid>${item.link}</guid>
|
|
77
|
+
<pubDate>${new Date(item.time).toUTCString()}</pubDate>
|
|
78
|
+
<description>${escapeXml(item.description)}</description>
|
|
79
|
+
</item>`).join("\n");
|
|
80
|
+
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
|
81
|
+
<rss version="2.0">
|
|
82
|
+
<channel>
|
|
83
|
+
<title>${escapeXml(site.name)}</title>
|
|
84
|
+
<link>${origin}</link>
|
|
85
|
+
<description>${escapeXml(site.description ?? "")}</description>
|
|
86
|
+
${body}
|
|
87
|
+
</channel>
|
|
88
|
+
</rss>`;
|
|
89
|
+
return new Response(xml, { headers: { "content-type": "application/xml; charset=utf-8" } });
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export { GET };
|
|
93
|
+
//# sourceMappingURL=_server.ts-CQg__e5D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-CQg__e5D.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/rss.xml/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/internal.js\";\nimport \"../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../chunks/site.js\";\nimport { s as render, 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}\nfunction textOf(nodes) {\n\tlet out = \"\";\n\tfor (const node of nodes) if (node.type === \"text\") out += node.value;\n\telse if (node.type === \"element\" || node.type === \"component\") out += textOf(node.children);\n\treturn out;\n}\nfunction collectUpdates(nodes, out) {\n\tfor (const node of nodes) {\n\t\tif (node.type === \"component\" && node.name === \"Update\") out.push(node);\n\t\tif (\"children\" in node && node.children) collectUpdates(node.children, out);\n\t}\n}\nvar GET = async () => {\n\tconst site = getSite();\n\tconst origin = (site.url ?? \"\") + base;\n\tconst dated = allPages().map((p) => ({\n\t\tslug: p.slug,\n\t\tfm: p.frontmatter\n\t})).filter((entry) => Boolean(entry.fm.date));\n\tconst items = [];\n\tfor (const entry of dated) {\n\t\tconst link = `${origin}/${entry.slug}`;\n\t\tconst pageTime = new Date(entry.fm.date).getTime();\n\t\tconst compiled = await render(entry.slug);\n\t\tconst updates = [];\n\t\tif (compiled) collectUpdates(compiled.doc, updates);\n\t\tif (updates.length) {\n\t\t\tfor (const node of updates) {\n\t\t\t\tif (node.type !== \"component\") continue;\n\t\t\t\tconst label = typeof node.props.label === \"string\" ? node.props.label : \"\";\n\t\t\t\tconst title = typeof node.props.title === \"string\" ? node.props.title : \"\";\n\t\t\t\tconst description = typeof node.props.description === \"string\" ? node.props.description : \"\";\n\t\t\t\tconst dateProp = typeof node.props.date === \"string\" ? node.props.date : \"\";\n\t\t\t\tconst anchor = typeof node.props.anchor === \"string\" ? node.props.anchor : \"\";\n\t\t\t\tconst parsed = new Date(dateProp || label).getTime();\n\t\t\t\titems.push({\n\t\t\t\t\ttitle: title || label || entry.fm.title || entry.slug,\n\t\t\t\t\tlink: anchor ? `${link}#${anchor}` : link,\n\t\t\t\t\tdescription: description || textOf(node.children).trim(),\n\t\t\t\t\ttime: Number.isNaN(parsed) ? pageTime : parsed\n\t\t\t\t});\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\titems.push({\n\t\t\ttitle: entry.fm.title ?? entry.slug,\n\t\t\tlink,\n\t\t\tdescription: entry.fm.description ?? \"\",\n\t\t\ttime: pageTime\n\t\t});\n\t}\n\tconst body = items.sort((a, b) => b.time - a.time).map((item) => ` <item>\n <title>${escapeXml(item.title)}</title>\n <link>${item.link}</link>\n <guid>${item.link}</guid>\n <pubDate>${new Date(item.time).toUTCString()}</pubDate>\n <description>${escapeXml(item.description)}</description>\n </item>`).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${body}\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;AACA,SAAS,MAAM,CAAC,KAAK,EAAE;AACvB,CAAC,IAAI,GAAG,GAAG,EAAE;AACb,CAAC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,IAAI,IAA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C,CAAC;AAClC,UAAU,EAAE,MAAM,CAAC;AACnB,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;AACrD,EAAE,IAAI;AACN;AACA,MAAM,CAAC;AACP,CAAC,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,gCAAgC,EAAE,EAAE,CAAC;AAC5F;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as base } from './
|
|
1
|
+
import { b as base } from './internal2-BGg7Milx.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { g as getNav, c as raw } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-bCTBBNTw.js';
|
|
4
|
+
import { g as getNav, c as raw } from './content-store-C_HWEaMv.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-DupX5-bj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-DupX5-bj.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/llms-full.txt/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/internal.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 { b as base } from './
|
|
1
|
+
import { b as base } from './internal2-BGg7Milx.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getNav, c as raw } from './content-store-
|
|
3
|
+
import { g as getNav, c as raw } from './content-store-C_HWEaMv.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-e7-P1GQu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-e7-P1GQu.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/search.json/_server.ts.js"],"sourcesContent":["import { Tt as base } from \"../../../chunks/internal.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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AE,kBAAkB,EAAE,EAAE,CAAC;AAC/F;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as base } from './
|
|
1
|
+
import { b as base } from './internal2-BGg7Milx.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';
|
|
@@ -5075,7 +5075,7 @@ function transform(nodes, ctx) {
|
|
|
5075
5075
|
if (HEADINGS.has(next.tag)) {
|
|
5076
5076
|
if (typeof next.props.id !== "string") next.props.id = ctx.slugger.slug(textOf(next));
|
|
5077
5077
|
const depth = Number(next.tag.slice(1));
|
|
5078
|
-
if (depth === 2 || depth === 3) ctx.toc.push({
|
|
5078
|
+
if (!ctx.suppressToc && (depth === 2 || depth === 3)) ctx.toc.push({
|
|
5079
5079
|
id: next.props.id,
|
|
5080
5080
|
title: textOf(next),
|
|
5081
5081
|
depth
|
|
@@ -5092,10 +5092,33 @@ function transform(nodes, ctx) {
|
|
|
5092
5092
|
}
|
|
5093
5093
|
return next;
|
|
5094
5094
|
}
|
|
5095
|
-
if (node.type === "component")
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5095
|
+
if (node.type === "component") {
|
|
5096
|
+
if (node.name === "Update") {
|
|
5097
|
+
const label = typeof node.props.label === "string" ? node.props.label : "";
|
|
5098
|
+
const heading = (typeof node.props.title === "string" ? node.props.title : "") || label;
|
|
5099
|
+
const anchor = heading ? ctx.slugger.slug(heading) : "";
|
|
5100
|
+
if (anchor) ctx.toc.push({
|
|
5101
|
+
id: anchor,
|
|
5102
|
+
title: heading,
|
|
5103
|
+
depth: 2
|
|
5104
|
+
});
|
|
5105
|
+
return {
|
|
5106
|
+
...node,
|
|
5107
|
+
props: {
|
|
5108
|
+
...node.props,
|
|
5109
|
+
anchor
|
|
5110
|
+
},
|
|
5111
|
+
children: transform(node.children, {
|
|
5112
|
+
...ctx,
|
|
5113
|
+
suppressToc: ctx.suppressToc + 1
|
|
5114
|
+
})
|
|
5115
|
+
};
|
|
5116
|
+
}
|
|
5117
|
+
return {
|
|
5118
|
+
...node,
|
|
5119
|
+
children: transform(node.children, ctx)
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5099
5122
|
return node;
|
|
5100
5123
|
});
|
|
5101
5124
|
}
|
|
@@ -5158,7 +5181,8 @@ async function parseMarkdown(markdown, basePath = "") {
|
|
|
5158
5181
|
const ctx = {
|
|
5159
5182
|
slugger: new BananaSlug(),
|
|
5160
5183
|
toc: [],
|
|
5161
|
-
basePath
|
|
5184
|
+
basePath,
|
|
5185
|
+
suppressToc: 0
|
|
5162
5186
|
};
|
|
5163
5187
|
const transformed = transform(doc, ctx);
|
|
5164
5188
|
return {
|
|
@@ -5284,4 +5308,4 @@ async function raw(slug) {
|
|
|
5284
5308
|
}
|
|
5285
5309
|
|
|
5286
5310
|
export { allSourcePaths as a, allSlugs as b, raw as c, allPages as d, frontmatterByPath as f, getNav as g, render as r };
|
|
5287
|
-
//# sourceMappingURL=content-store-
|
|
5311
|
+
//# sourceMappingURL=content-store-C_HWEaMv.js.map
|