Skip to content

Commit 4bc2da8

Browse files
Llms full text (#2692)
* add llms-full txt files for each product * add all llms-full text files * remove faulty llmstext * add functions * llms-full.txt per product * update dependencies * dependencies * add txt files for general, nodes and local * feat: single dynamic route --------- Co-authored-by: Karim <98668332+khadni@users.noreply.github.com>
1 parent 2ab5e21 commit 4bc2da8

16 files changed

Lines changed: 108130 additions & 6 deletions

File tree

public/assets/icons/ai-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

public/assets/icons/new-pill.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/RightSidebar/MoreMenu.astro

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
11
---
22
import * as CONFIG from "../../config"
3+
34
const { editHref } = Astro.props
5+
const pathname = Astro.url.pathname
6+
const section = pathname.split("/").filter(Boolean)[0]
7+
const llmsHref = `/${section}/llms-full.txt`
48
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
9+
10+
// ✅ Only show for specific products
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+
]
24+
const llmsExists = supportedSections.includes(section)
525
---
626

727
{showMoreSection && <h2 class="heading">More</h2>}
828
<ul>
29+
{
30+
llmsExists && (
31+
<li class="header-link">
32+
<a href={llmsHref} target="_blank" class="llms-link">
33+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
34+
<path
35+
fill-rule="evenodd"
36+
clip-rule="evenodd"
37+
d="M12.06 2.06L13 0L13.94 2.06L16 3L13.94 3.94L13 6L12.06 3.94L10 3L12.06 2.06ZM4.47 7.47L6.5 3L8.53 7.47L13 9.5L8.53 11.53L6.5 16L4.47 11.53L0 9.5L4.47 7.47Z"
38+
fill="#0847F7"
39+
/>
40+
</svg>
41+
<p>View as plain text for LLMs</p>
42+
</a>
43+
<svg width="34" height="18" viewBox="0 0 34 18" fill="none" xmlns="http://www.w3.org/2000/svg">
44+
<path
45+
d="M25 0C29.9706 2.57702e-07 34 4.02944 34 9C34 13.9706 29.9706 18 25 18H9C4.02944 18 0 13.9706 0 9C0 4.02944 4.02944 2.57702e-07 9 0H25ZM7 6V11.8184H7.87793V7.55078H7.93164L10.8896 11.8184H11.6963V6H10.8271V10.2725H10.7725L7.8125 6H7ZM14.0771 6V11.8184H17.7588V11.0625H14.9541V9.28125H17.5342V8.52832H14.9541V6.75586H17.7246V6H14.0771ZM19.5225 6L21.1357 11.8184H22.0225L23.2471 7.45996H23.292L24.5166 11.8184H25.4004L27.0166 6H26.0908L24.96 10.5088H24.9062L23.7266 6H22.8125L21.6328 10.5059H21.5791L20.4453 6H19.5225Z"
46+
fill="#0847F7"
47+
/>
48+
</svg>
49+
</li>
50+
)
51+
}
952
{
1053
editHref && (
1154
<li class="header-link">
@@ -131,4 +174,20 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
131174
padding: 0.15em 0 0.15em 0;
132175
text-decoration: none;
133176
}
177+
178+
.header-link {
179+
display: flex;
180+
align-items: center;
181+
justify-content: space-between;
182+
gap: 0.25rem;
183+
}
184+
185+
.llms-link {
186+
display: inline-flex;
187+
align-items: center;
188+
gap: 0.5rem;
189+
text-decoration: none;
190+
color: inherit;
191+
flex-grow: 1;
192+
}
134193
</style>

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

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

src/content/ccip/llms-full.txt

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

src/content/chainlink-automation/llms-full.txt

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

src/content/chainlink-functions/index.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
section: chainlinkFunctions
33
date: Last Modified
4-
title: "Chainlink Functions Beta"
4+
title: "Chainlink Functions"
55
isIndex: true
66
whatsnext:
77
{
@@ -13,11 +13,6 @@ whatsnext:
1313

1414
import { Aside } from "@components"
1515

16-
<Aside type="note" title="Mainnet Beta">
17-
Chainlink Functions is available on mainnet only as a BETA preview to ensure that this new platform is robust and secure for developers. While in BETA, developers must follow best practices and not use the BETA for any mission-critical application or secure any value. Chainlink Functions is likely to evolve and improve. Breaking changes might occur while the service is in BETA. Monitor these docs to stay updated on feature improvements along with interface and contract changes.
18-
19-
</Aside>
20-
2116
Chainlink Functions provides your smart contracts access to trust-minimized compute infrastructure, allowing you to fetch data from APIs and perform custom computation. Your smart contract sends source code in a request to a [Decentralized Oracle Network (DON)](/chainlink-functions/resources/concepts), and each node in the DON executes the code in a serverless environment. The DON then aggregates all the independent return values from each execution and sends the final result back to your smart contract.
2217

2318
Chainlink Functions eliminates the need for you to manage your own Chainlink node and provides decentralized offchain computation and consensus, ensuring that a minority of the network cannot manipulate the response sent back to your smart contract.

0 commit comments

Comments
 (0)