Skip to content

Commit 00eeb5e

Browse files
committed
add llms txt generation
1 parent 696b765 commit 00eeb5e

3 files changed

Lines changed: 533 additions & 10 deletions

File tree

homedocs/astro.config.mjs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,44 @@ import mdx from "@astrojs/mdx";
55
import tailwindcss from "@tailwindcss/vite";
66
import pagefind from "astro-pagefind";
77
import cxjs from "./src/integrations/cxjs";
8+
import astroLlmsTxt from "@4hse/astro-llms-txt";
89

910
// https://astro.build/config
1011
export default defineConfig({
11-
integrations: [cxjs(), react(), mdx(), pagefind()],
12+
site: "https://cxjs.io",
13+
integrations: [
14+
cxjs(),
15+
react(),
16+
mdx(),
17+
pagefind(),
18+
astroLlmsTxt({
19+
title: "CxJS",
20+
description:
21+
"CxJS is a feature-rich JavaScript framework for building complex web front-ends, such as BI tools, dashboards and admin apps.",
22+
details:
23+
"CxJS offers declarative data binding, comprehensive widget library, advanced charting capabilities, and flexible theming system.",
24+
notes:
25+
"- This content is auto-generated from the official CxJS documentation.",
26+
docSet: [
27+
{
28+
title: "Complete Documentation",
29+
description: "Full CxJS documentation including all guides and API references",
30+
url: "/llms-full.txt",
31+
include: ["docs/", "docs/**"],
32+
promote: ["docs/intro/what-is-cxjs", "docs/intro/installation"],
33+
},
34+
{
35+
title: "Documentation Structure",
36+
description: "Index of key documentation pages and sections",
37+
url: "/llms-small.txt",
38+
include: ["docs/", "docs/**"],
39+
onlyStructure: true,
40+
promote: ["docs/intro/what-is-cxjs"],
41+
},
42+
],
43+
pageSeparator: "\n\n---\n\n",
44+
}),
45+
],
1246
build: {
1347
format: "directory",
1448
},

homedocs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"prettify": "prettier --write ."
1212
},
1313
"dependencies": {
14+
"@4hse/astro-llms-txt": "^1.0.4",
1415
"@astrojs/mdx": "^4.3.13",
1516
"@astrojs/react": "^4.4.2",
1617
"@heroicons/react": "^2.2.0",

0 commit comments

Comments
 (0)