@andesine/pages 0.0.0-stage → 0.6.0
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/CHANGELOG.md +103 -0
- package/LICENSE +21 -0
- package/README.md +92 -2
- package/dist/answers.d.ts +6 -0
- package/dist/astro/content.astro +118 -0
- package/dist/astro/middleware.js +39 -0
- package/dist/astro/middleware.js.map +1 -0
- package/dist/astro/routes/answers.js +129 -0
- package/dist/astro/routes/answers.js.map +1 -0
- package/dist/astro/routes/entry-pages.js +22 -0
- package/dist/astro/routes/entry-pages.js.map +1 -0
- package/dist/astro/routes/llms-full.js +12 -0
- package/dist/astro/routes/llms-full.js.map +1 -0
- package/dist/astro/routes/llms.js +12 -0
- package/dist/astro/routes/llms.js.map +1 -0
- package/dist/astro/routes/markdown-alias.js +14 -0
- package/dist/astro/routes/markdown-alias.js.map +1 -0
- package/dist/astro/routes/markdown.js +12 -0
- package/dist/astro/routes/markdown.js.map +1 -0
- package/dist/astro/routes/not-found.astro +12 -0
- package/dist/astro/routes/robots.js +9 -0
- package/dist/astro/routes/robots.js.map +1 -0
- package/dist/astro/routes/search.js +42 -0
- package/dist/astro/routes/search.js.map +1 -0
- package/dist/astro/routes/sitemap.js +12 -0
- package/dist/astro/routes/sitemap.js.map +1 -0
- package/dist/astro/routes/skill.js +13 -0
- package/dist/astro/routes/skill.js.map +1 -0
- package/dist/astro/routes/skills.js +24 -0
- package/dist/astro/routes/skills.js.map +1 -0
- package/dist/astro/routes/social.js +91 -0
- package/dist/astro/routes/social.js.map +1 -0
- package/dist/astro/routes/static.astro +53 -0
- package/dist/astro/routes/well-known-llms.js +2 -0
- package/dist/astro.d.ts +34 -0
- package/dist/astro.js +60 -0
- package/dist/astro.js.map +1 -0
- package/dist/chunks/assets-D6WJmZ05.js +21 -0
- package/dist/chunks/assets-D6WJmZ05.js.map +1 -0
- package/dist/chunks/catalog-DU4BUrpw.js +28 -0
- package/dist/chunks/catalog-DU4BUrpw.js.map +1 -0
- package/dist/chunks/config-CuH5JSI4.js +184 -0
- package/dist/chunks/config-CuH5JSI4.js.map +1 -0
- package/dist/chunks/files-BxqiQzFj.js +62 -0
- package/dist/chunks/files-BxqiQzFj.js.map +1 -0
- package/dist/chunks/hash-D4piIIQ6.js +11 -0
- package/dist/chunks/hash-D4piIIQ6.js.map +1 -0
- package/dist/chunks/index-D8wL2B5s.d.ts +571 -0
- package/dist/chunks/index-vsu3hISM.d.ts +62 -0
- package/dist/chunks/limits-Ppc7BQPG.js +45 -0
- package/dist/chunks/limits-Ppc7BQPG.js.map +1 -0
- package/dist/chunks/markdown-DKJSQxR2.js +42 -0
- package/dist/chunks/markdown-DKJSQxR2.js.map +1 -0
- package/dist/chunks/mdx-components-CUUDTapN.d.ts +9 -0
- package/dist/chunks/normalize-DG5nxOLm.js +361 -0
- package/dist/chunks/normalize-DG5nxOLm.js.map +1 -0
- package/dist/chunks/paths-75QgA3Qs.js +16 -0
- package/dist/chunks/paths-75QgA3Qs.js.map +1 -0
- package/dist/chunks/prepare-lnuw_ycM.js +219 -0
- package/dist/chunks/prepare-lnuw_ycM.js.map +1 -0
- package/dist/chunks/read-DCv1lmcM.js +57 -0
- package/dist/chunks/read-DCv1lmcM.js.map +1 -0
- package/dist/chunks/request-DOuBHGQs.js +92 -0
- package/dist/chunks/request-DOuBHGQs.js.map +1 -0
- package/dist/chunks/response-CtzaKMWH.js +15 -0
- package/dist/chunks/response-CtzaKMWH.js.map +1 -0
- package/dist/chunks/site-DY-uZ0PP.js +419 -0
- package/dist/chunks/site-DY-uZ0PP.js.map +1 -0
- package/dist/chunks/skill-CBTGUHQH.js +85 -0
- package/dist/chunks/skill-CBTGUHQH.js.map +1 -0
- package/dist/chunks/sources-Cm6NdIen.js +236 -0
- package/dist/chunks/sources-Cm6NdIen.js.map +1 -0
- package/dist/chunks/stored-CabomV-C.js +354 -0
- package/dist/chunks/stored-CabomV-C.js.map +1 -0
- package/dist/chunks/stored-CcEfvCQH.js +475 -0
- package/dist/chunks/stored-CcEfvCQH.js.map +1 -0
- package/dist/chunks/types-DBzuXfSe.d.ts +53 -0
- package/dist/chunks/view-C-9ZM1zK.js +745 -0
- package/dist/chunks/view-C-9ZM1zK.js.map +1 -0
- package/dist/chunks/view-Dlf_VRI7.d.ts +151 -0
- package/dist/client.d.ts +73 -0
- package/dist/client.js +295 -0
- package/dist/client.js.map +1 -0
- package/dist/collections.d.ts +7 -0
- package/dist/collections.js +215 -0
- package/dist/collections.js.map +1 -0
- package/dist/entry-pages.d.ts +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/integration.d.ts +16 -0
- package/dist/integration.js +435 -0
- package/dist/integration.js.map +1 -0
- package/dist/llms-full.d.ts +5 -0
- package/dist/llms.d.ts +5 -0
- package/dist/markdown-alias.d.ts +7 -0
- package/dist/markdown.d.ts +7 -0
- package/dist/middleware.d.ts +8 -0
- package/dist/robots.d.ts +5 -0
- package/dist/runtime.d.ts +81 -0
- package/dist/runtime.js +56 -0
- package/dist/runtime.js.map +1 -0
- package/dist/scripts/restore-navigation.js +1 -0
- package/dist/search.d.ts +6 -0
- package/dist/sitemap.d.ts +5 -0
- package/dist/skill.d.ts +5 -0
- package/dist/skills.d.ts +10 -0
- package/dist/social.d.ts +7 -0
- package/dist/well-known-llms.d.ts +2 -0
- package/package.json +103 -3
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { t as FileTreeItem } from "./chunks/mdx-components-CUUDTapN.js";
|
|
2
|
+
import { P as PagesConfig } from "./chunks/index-D8wL2B5s.js";
|
|
3
|
+
import { a as renderRoute, i as getStaticPaths, r as getNotFoundContext } from "./chunks/index-vsu3hISM.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { CustomRecord } from "pagefind";
|
|
6
|
+
import { Element, ElementContent, Root, RootContent } from "hast";
|
|
7
|
+
//#region src/content/elements.d.ts
|
|
8
|
+
interface ContentElement {
|
|
9
|
+
name: ElementName;
|
|
10
|
+
props: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
type ElementName = keyof typeof elementSchemas;
|
|
13
|
+
/** Custom elements in Andesine content. Names and props match the MDX components. */
|
|
14
|
+
declare const elementSchemas: {
|
|
15
|
+
Callout: z.ZodObject<{
|
|
16
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
note: "note";
|
|
18
|
+
tip: "tip";
|
|
19
|
+
warning: "warning";
|
|
20
|
+
danger: "danger";
|
|
21
|
+
}>>;
|
|
22
|
+
title: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
Card: z.ZodObject<{
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
28
|
+
href: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
CardGrid: z.ZodObject<{}, z.core.$strict>;
|
|
31
|
+
CodeGroup: z.ZodObject<{}, z.core.$strict>;
|
|
32
|
+
Disclosure: z.ZodObject<{
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
Figure: z.ZodObject<{
|
|
37
|
+
caption: z.ZodString;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
FileTree: z.ZodObject<{}, z.core.$strict>;
|
|
40
|
+
Operation: z.ZodObject<{
|
|
41
|
+
source: z.ZodString;
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
44
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
authentication: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
parameters: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
requestBody: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
responses: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
examples: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
Steps: z.ZodObject<{}, z.core.$strict>;
|
|
52
|
+
Tab: z.ZodObject<{
|
|
53
|
+
label: z.ZodString;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
Tabs: z.ZodObject<{
|
|
56
|
+
syncKey: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
Visibility: z.ZodObject<{
|
|
59
|
+
for: z.ZodEnum<{
|
|
60
|
+
agents: "agents";
|
|
61
|
+
humans: "humans";
|
|
62
|
+
}>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
};
|
|
65
|
+
/** Reads and validates a custom element from the converters' HTML output. */
|
|
66
|
+
declare const readElement: (node: Element) => ContentElement | undefined;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/content/hast.d.ts
|
|
69
|
+
declare const isElement: (node: RootContent | ElementContent) => node is Element;
|
|
70
|
+
/** Reads a `<ul>` of files and folders. Items that end with `/`, or have nested lists, are folders. */
|
|
71
|
+
declare const toFileTreeItems: (list: Element) => FileTreeItem[];
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/search/records.d.ts
|
|
74
|
+
/**
|
|
75
|
+
* Creates Pagefind records for local pages from their source text, for the development index.
|
|
76
|
+
* Built sites index the rendered pages instead.
|
|
77
|
+
*/
|
|
78
|
+
declare const getSearchRecords: (config: PagesConfig) => Promise<CustomRecord[]>;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { getNotFoundContext, getSearchRecords, getStaticPaths, isElement, readElement, renderRoute, toFileTreeItems };
|
|
81
|
+
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { n as loadFilesSource } from "./chunks/sources-Cm6NdIen.js";
|
|
2
|
+
import { a as renderRoute, i as getStaticPaths, n as getNotFoundContext } from "./chunks/site-DY-uZ0PP.js";
|
|
3
|
+
import { a as filterVisibility } from "./chunks/stored-CabomV-C.js";
|
|
4
|
+
import { a as toFileTreeItems, i as isElement, o as readElement } from "./chunks/prepare-lnuw_ycM.js";
|
|
5
|
+
import { n as loadOpenAPISource } from "./chunks/stored-CcEfvCQH.js";
|
|
6
|
+
//#region src/search/text.ts
|
|
7
|
+
const textProps = /\b(?:title|description|label|caption)=(["'])(.*?)\1/g;
|
|
8
|
+
/** Keeps the text of a JSX tag's visible props, and drops the tag. */
|
|
9
|
+
const replaceTag = (tag) => {
|
|
10
|
+
return [...tag.matchAll(textProps)].map((match) => ` ${match[2]} `).join("");
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Turns MDX source into plain text for the development search index, like the text of the
|
|
14
|
+
* rendered page: no ESM statements, JSX tags, or Markdown syntax.
|
|
15
|
+
*/
|
|
16
|
+
const toSearchText = (source) => {
|
|
17
|
+
return source.replace(/^(?:import|export)\s.*$/gm, "").replace(/<\/?[A-Za-z][\w.:-]*(?:\s(?:[^<>"']|"[^"]*"|'[^']*')*)?\/?>/g, replaceTag).replace(/^\s*(?:`{3,}|~{3,}).*$/gm, "").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+\.\s+)/gm, "").replace(/(\*\*|__|\*|_|`)(\S(?:.*?\S)?)\1/g, "$2").replace(/[ \t]+/g, " ").replace(/\n{3,}/g, "\n\n").trim();
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/search/records.ts
|
|
21
|
+
/**
|
|
22
|
+
* Creates Pagefind records for local pages from their source text, for the development index.
|
|
23
|
+
* Built sites index the rendered pages instead.
|
|
24
|
+
*/
|
|
25
|
+
const getSearchRecords = async (config) => {
|
|
26
|
+
const options = {
|
|
27
|
+
base: config.base,
|
|
28
|
+
site: config.site
|
|
29
|
+
};
|
|
30
|
+
return (await Promise.all(config.sources.flatMap((source) => {
|
|
31
|
+
if (source.type === "files") return [loadFilesSource(source, options)];
|
|
32
|
+
if (source.type === "openapi") return [loadOpenAPISource(source, options)];
|
|
33
|
+
return [];
|
|
34
|
+
}))).flatMap((source) => {
|
|
35
|
+
return source.pages.flatMap((page) => {
|
|
36
|
+
const text = page.content.type === "file" ? page.content.entry.body ?? "" : page.markdown;
|
|
37
|
+
const body = toSearchText(filterVisibility(text, "humans"));
|
|
38
|
+
if (page.searchHidden) return [];
|
|
39
|
+
return [{
|
|
40
|
+
url: page.href.slice(config.base.length - 1),
|
|
41
|
+
content: [
|
|
42
|
+
page.title,
|
|
43
|
+
page.description,
|
|
44
|
+
body
|
|
45
|
+
].filter(Boolean).join("\n"),
|
|
46
|
+
language: config.language,
|
|
47
|
+
meta: { title: page.title },
|
|
48
|
+
filters: { source: [source.id] }
|
|
49
|
+
}];
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { getNotFoundContext, getSearchRecords, getStaticPaths, isElement, readElement, renderRoute, toFileTreeItems };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","names":[],"sources":["../src/search/text.ts","../src/search/records.ts"],"sourcesContent":["// Props whose values show on the page, e.g. a card or callout title.\nconst textProps = /\\b(?:title|description|label|caption)=([\"'])(.*?)\\1/g;\n\n/** Keeps the text of a JSX tag's visible props, and drops the tag. */\nconst replaceTag = (tag: string): string => {\n return [...tag.matchAll(textProps)].map((match) => ` ${match[2]} `).join(\"\");\n};\n/**\n * Turns MDX source into plain text for the development search index, like the text of the\n * rendered page: no ESM statements, JSX tags, or Markdown syntax.\n */\nconst toSearchText = (source: string): string => {\n return source\n .replace(/^(?:import|export)\\s.*$/gm, \"\")\n .replace(/<\\/?[A-Za-z][\\w.:-]*(?:\\s(?:[^<>\"']|\"[^\"]*\"|'[^']*')*)?\\/?>/g, replaceTag)\n .replace(/^\\s*(?:`{3,}|~{3,}).*$/gm, \"\")\n .replace(/!\\[([^\\]]*)\\]\\([^)]*\\)/g, \"$1\")\n .replace(/\\[([^\\]]*)\\]\\([^)]*\\)/g, \"$1\")\n .replace(/^\\s{0,3}(?:#{1,6}\\s+|>\\s?|[-*+]\\s+|\\d+\\.\\s+)/gm, \"\")\n .replace(/(\\*\\*|__|\\*|_|`)(\\S(?:.*?\\S)?)\\1/g, \"$2\")\n .replace(/[ \\t]+/g, \" \")\n .replace(/\\n{3,}/g, \"\\n\\n\")\n .trim();\n};\n\nexport { toSearchText };\n","import type { CustomRecord } from \"pagefind\";\nimport type { PagesConfig } from \"../config\";\nimport { filterVisibility } from \"../content/visibility\";\nimport { loadFilesSource } from \"../sources/files/load\";\nimport { loadOpenAPISource } from \"../sources/openapi/stored\";\nimport { toSearchText } from \"./text\";\n\n/**\n * Creates Pagefind records for local pages from their source text, for the development index.\n * Built sites index the rendered pages instead.\n */\nconst getSearchRecords = async (config: PagesConfig): Promise<CustomRecord[]> => {\n const options = { base: config.base, site: config.site };\n const sources = await Promise.all(\n config.sources.flatMap((source) => {\n if (source.type === \"files\") return [loadFilesSource(source, options)];\n if (source.type === \"openapi\") return [loadOpenAPISource(source, options)];\n\n return [];\n })\n );\n\n return sources.flatMap((source) => {\n return source.pages.flatMap((page): CustomRecord[] => {\n // OpenAPI pages use their Markdown alternative, which has their fields.\n const text = page.content.type === \"file\" ? (page.content.entry.body ?? \"\") : page.markdown;\n // Like the built index, which reads the rendered page.\n const body = toSearchText(filterVisibility(text, \"humans\"));\n\n if (page.searchHidden) return [];\n\n return [\n {\n // Relative to the base, which the client sets as the Pagefind base URL.\n url: page.href.slice(config.base.length - 1),\n content: [page.title, page.description, body].filter(Boolean).join(\"\\n\"),\n language: config.language,\n meta: { title: page.title },\n filters: { source: [source.id] }\n }\n ];\n });\n });\n};\n\nexport { getSearchRecords };\n"],"mappings":";;;;;;AACA,MAAM,YAAY;;AAGlB,MAAM,cAAc,QAAwB;CAC1C,OAAO,CAAC,GAAG,IAAI,SAAS,SAAS,CAAC,CAAC,CAAC,KAAK,UAAU,IAAI,MAAM,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE;AAC7E;;;;;AAKA,MAAM,gBAAgB,WAA2B;CAC/C,OAAO,OACJ,QAAQ,6BAA6B,EAAE,CAAC,CACxC,QAAQ,gEAAgE,UAAU,CAAC,CACnF,QAAQ,4BAA4B,EAAE,CAAC,CACvC,QAAQ,2BAA2B,IAAI,CAAC,CACxC,QAAQ,0BAA0B,IAAI,CAAC,CACvC,QAAQ,kDAAkD,EAAE,CAAC,CAC7D,QAAQ,qCAAqC,IAAI,CAAC,CAClD,QAAQ,WAAW,GAAG,CAAC,CACvB,QAAQ,WAAW,MAAM,CAAC,CAC1B,KAAK;AACV;;;;;;;ACZA,MAAM,mBAAmB,OAAO,WAAiD;CAC/E,MAAM,UAAU;EAAE,MAAM,OAAO;EAAM,MAAM,OAAO;CAAK;CAUvD,QAAO,MATe,QAAQ,IAC5B,OAAO,QAAQ,SAAS,WAAW;EACjC,IAAI,OAAO,SAAS,SAAS,OAAO,CAAC,gBAAgB,QAAQ,OAAO,CAAC;EACrE,IAAI,OAAO,SAAS,WAAW,OAAO,CAAC,kBAAkB,QAAQ,OAAO,CAAC;EAEzE,OAAO,CAAC;CACV,CAAC,CACH,EAAA,CAEe,SAAS,WAAW;EACjC,OAAO,OAAO,MAAM,SAAS,SAAyB;GAEpD,MAAM,OAAO,KAAK,QAAQ,SAAS,SAAU,KAAK,QAAQ,MAAM,QAAQ,KAAM,KAAK;GAEnF,MAAM,OAAO,aAAa,iBAAiB,MAAM,QAAQ,CAAC;GAE1D,IAAI,KAAK,cAAc,OAAO,CAAC;GAE/B,OAAO,CACL;IAEE,KAAK,KAAK,KAAK,MAAM,OAAO,KAAK,SAAS,CAAC;IAC3C,SAAS;KAAC,KAAK;KAAO,KAAK;KAAa;IAAI,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,IAAI;IACvE,UAAU,OAAO;IACjB,MAAM,EAAE,OAAO,KAAK,MAAM;IAC1B,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,EAAE;GACjC,CACF;EACF,CAAC;CACH,CAAC;AACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){let e=new Map,t=new Set,n=e=>{try{return JSON.parse(sessionStorage.getItem(e)??`null`)}catch{return}},r=t=>{if(!e.has(t)){let r=n(t);e.set(t,Array.isArray(r)?new Set(r.map(String)):void 0)}return e.get(t)},i=e=>{let t=e.closest(`[data-scope="navigation-tree"][data-part="item"]`),n=e.closest(`[data-storage-key]`)?.dataset.storageKey,i=n?r(n):void 0;if(!t||!i)return;let a=i.has(t.dataset.id??``)||t.hasAttribute(`data-active`)?`open`:`closed`,o=document.querySelector(`[aria-controls="${e.id}"]`);t.dataset.state=a,e.dataset.state=a,e.hidden=a===`closed`,o?.setAttribute(`data-state`,a),o?.setAttribute(`aria-expanded`,String(a===`open`))},a=e=>{let t=e.querySelector(`[aria-current="page"]`);if(e.scrollTop=Number(n(e.dataset.scrollKey??``))||0,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top+8&&(e.scrollTop+=r.top-n.top-8),r.bottom>n.bottom-8&&(e.scrollTop+=r.bottom-n.bottom+8)}let{scrollTop:r,scrollHeight:i,clientHeight:a}=e;e.toggleAttribute(`data-overflow-y`,i>a),e.toggleAttribute(`data-at-top`,r<=0),e.toggleAttribute(`data-at-bottom`,r+a>=i-1)},o=new MutationObserver(e=>{let n=new Set;for(let r of e){t.forEach(e=>{e.contains(r.target)&&n.add(e)});for(let e of r.addedNodes){if(!(e instanceof HTMLElement))continue;let r=e.matches(`[data-part="group-content"]`)?[e]:e.querySelectorAll(`[data-scope="navigation-tree"][data-part="group-content"]`),a=e.matches(`[data-scroll-key]`)?[e]:e.querySelectorAll(`[data-scroll-key]`);r.forEach(i),a.forEach(e=>{t.add(e),n.add(e)})}}n.forEach(a)});o.observe(document.documentElement,{childList:!0,subtree:!0}),document.addEventListener(`DOMContentLoaded`,()=>{o.disconnect(),t.forEach(a)},{once:!0})})();
|
package/dist/search.d.ts
ADDED
package/dist/skill.d.ts
ADDED
package/dist/skills.d.ts
ADDED
package/dist/social.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { n as SocialPath } from "./chunks/index-vsu3hISM.js";
|
|
2
|
+
import { APIRoute } from "astro";
|
|
3
|
+
//#region src/astro/routes/social.d.ts
|
|
4
|
+
export declare const getStaticPaths: () => Promise<SocialPath[]>;
|
|
5
|
+
export declare const GET: APIRoute;
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=social.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,106 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andesine/pages",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Astro documentation framework for Andesine and local content",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"LICENSE",
|
|
11
|
+
"README.md",
|
|
12
|
+
"CHANGELOG.md"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./integration": {
|
|
20
|
+
"types": "./dist/integration.d.ts",
|
|
21
|
+
"import": "./dist/integration.js"
|
|
22
|
+
},
|
|
23
|
+
"./collections": {
|
|
24
|
+
"types": "./dist/collections.d.ts",
|
|
25
|
+
"import": "./dist/collections.js"
|
|
26
|
+
},
|
|
27
|
+
"./astro": {
|
|
28
|
+
"types": "./dist/astro.d.ts",
|
|
29
|
+
"import": "./dist/astro.js"
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"types": "./dist/client.d.ts",
|
|
33
|
+
"import": "./dist/client.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=24"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
45
|
+
"astro": "^7.3.1",
|
|
46
|
+
"satori": "^0.33.5",
|
|
47
|
+
"vite": "^8.0.13"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@iconify/json": "^2.2.509",
|
|
51
|
+
"@iconify/utils": "^3.1.4",
|
|
52
|
+
"@scalar/json-magic": "0.15.2",
|
|
53
|
+
"@scalar/openapi-parser": "0.29.7",
|
|
54
|
+
"hast-util-to-html": "9.0.5",
|
|
55
|
+
"marked": "15.0.12",
|
|
56
|
+
"pagefind": "1.5.2",
|
|
57
|
+
"satori-html": "^0.3.2",
|
|
58
|
+
"shiki": "^4.4.3",
|
|
59
|
+
"yaml": "2.9.0",
|
|
60
|
+
"zod": "^4.5.4",
|
|
61
|
+
"@andesine/converters": "0.6.0",
|
|
62
|
+
"@andesine/sdk": "0.6.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
66
|
+
"@types/hast": "^3.0.4",
|
|
67
|
+
"@types/node": "^26.1.2",
|
|
68
|
+
"astro": "7.3.1",
|
|
69
|
+
"publint": "0.3.24",
|
|
70
|
+
"rolldown": "^1.2.2",
|
|
71
|
+
"rolldown-plugin-dts": "^0.28.6",
|
|
72
|
+
"satori": "^0.33.5",
|
|
73
|
+
"typescript": "6.0.3",
|
|
74
|
+
"vite": "8.2.0"
|
|
75
|
+
},
|
|
76
|
+
"main": "./dist/index.js",
|
|
77
|
+
"types": "./dist/index.d.ts",
|
|
78
|
+
"repository": {
|
|
79
|
+
"type": "git",
|
|
80
|
+
"url": "git+https://github.com/vriteio/andesine.git",
|
|
81
|
+
"directory": "packages/public/pages"
|
|
82
|
+
},
|
|
83
|
+
"homepage": "https://github.com/vriteio/andesine/tree/andesine/packages/public/pages#readme",
|
|
84
|
+
"bugs": {
|
|
85
|
+
"url": "https://github.com/vriteio/andesine/issues"
|
|
86
|
+
},
|
|
87
|
+
"keywords": [
|
|
88
|
+
"andesine",
|
|
89
|
+
"astro",
|
|
90
|
+
"astro-integration",
|
|
91
|
+
"documentation"
|
|
92
|
+
],
|
|
93
|
+
"peerDependenciesMeta": {
|
|
94
|
+
"@resvg/resvg-js": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"satori": {
|
|
98
|
+
"optional": true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "rolldown -c rolldown.config.ts",
|
|
103
|
+
"typecheck": "tsc --noEmit",
|
|
104
|
+
"lint:package": "publint --strict"
|
|
105
|
+
}
|
|
6
106
|
}
|