Skip to content

Commit 41739ba

Browse files
committed
add txt files for general, nodes and local
1 parent 1181811 commit 41739ba

File tree

11 files changed

+57658
-1
lines changed

11 files changed

+57658
-1
lines changed

‎src/components/RightSidebar/MoreMenu.astro

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ const llmsHref = `/${section}/llms-full.txt`
88
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
99
1010
// ✅ Only show for specific products
11-
const supportedSections = ["vrf", "ccip", "data-feeds", "data-streams", "chainlink-functions", "chainlink-automation"]
11+
const supportedSections = [
12+
"vrf",
13+
"ccip",
14+
"data-feeds",
15+
"data-streams",
16+
"chainlink-functions",
17+
"chainlink-automation",
18+
"resources",
19+
"architecture-overview",
20+
"getting-started",
21+
"chainlink-nodes",
22+
"chainlink-local",
23+
]
1224
const llmsExists = supportedSections.includes(section)
1325
---
1426

‎src/content/architecture-overview/llms-full.txt

Lines changed: 12528 additions & 0 deletions
Large diffs are not rendered by default.

‎src/content/chainlink-local/llms-full.txt

Lines changed: 12048 additions & 0 deletions
Large diffs are not rendered by default.

‎src/content/chainlink-nodes/llms-full.txt

Lines changed: 7918 additions & 0 deletions
Large diffs are not rendered by default.

‎src/content/getting-started/llms-full.txt

Lines changed: 12528 additions & 0 deletions
Large diffs are not rendered by default.

‎src/content/resources/llms-full.txt

Lines changed: 12528 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import fs from "fs/promises"
2+
import path from "path"
3+
import type { APIRoute } from "astro"
4+
5+
export const GET: APIRoute = async () => {
6+
const filePath = path.resolve("src/content/architecture-overview/llms-full.txt")
7+
8+
try {
9+
const fileContents = await fs.readFile(filePath, "utf-8")
10+
return new Response(fileContents, {
11+
status: 200,
12+
headers: {
13+
"Content-Type": "text/plain",
14+
},
15+
})
16+
} catch (error) {
17+
return new Response("File not found.", { status: 404 })
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import fs from "fs/promises"
2+
import path from "path"
3+
import type { APIRoute } from "astro"
4+
5+
export const GET: APIRoute = async () => {
6+
const filePath = path.resolve("src/content/chainlink-local/llms-full.txt")
7+
8+
try {
9+
const fileContents = await fs.readFile(filePath, "utf-8")
10+
return new Response(fileContents, {
11+
status: 200,
12+
headers: {
13+
"Content-Type": "text/plain",
14+
},
15+
})
16+
} catch (error) {
17+
return new Response("File not found.", { status: 404 })
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import fs from "fs/promises"
2+
import path from "path"
3+
import type { APIRoute } from "astro"
4+
5+
export const GET: APIRoute = async () => {
6+
const filePath = path.resolve("src/content/chainlink-nodes/llms-full.txt")
7+
8+
try {
9+
const fileContents = await fs.readFile(filePath, "utf-8")
10+
return new Response(fileContents, {
11+
status: 200,
12+
headers: {
13+
"Content-Type": "text/plain",
14+
},
15+
})
16+
} catch (error) {
17+
return new Response("File not found.", { status: 404 })
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import fs from "fs/promises"
2+
import path from "path"
3+
import type { APIRoute } from "astro"
4+
5+
export const GET: APIRoute = async () => {
6+
const filePath = path.resolve("src/content/getting-started/llms-full.txt")
7+
8+
try {
9+
const fileContents = await fs.readFile(filePath, "utf-8")
10+
return new Response(fileContents, {
11+
status: 200,
12+
headers: {
13+
"Content-Type": "text/plain",
14+
},
15+
})
16+
} catch (error) {
17+
return new Response("File not found.", { status: 404 })
18+
}
19+
}

‎src/pages/resources/llms-full.txt.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import fs from "fs/promises"
2+
import path from "path"
3+
import type { APIRoute } from "astro"
4+
5+
export const GET: APIRoute = async () => {
6+
const filePath = path.resolve("src/content/resources/llms-full.txt")
7+
8+
try {
9+
const fileContents = await fs.readFile(filePath, "utf-8")
10+
return new Response(fileContents, {
11+
status: 200,
12+
headers: {
13+
"Content-Type": "text/plain",
14+
},
15+
})
16+
} catch (error) {
17+
return new Response("File not found.", { status: 404 })
18+
}
19+
}

0 commit comments

Comments
 (0)