Skip to content

Commit fce9a81

Browse files
authored
Add context7 configuration (#337)
* Add context7 configuration * shorter description * shorter description * add github action to refresh on every deploy * rename * skip validation on context7 files * try more lax check * re-skip * no need to sleep * include links on landing page
1 parent 94bc628 commit fce9a81

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

.github/workflows/context7.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Refresh Context7 library
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
context7:
15+
name: Refresh Context7 library
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: refresh context7 library
20+
run: |
21+
curl -X POST https://context7.com/api/refresh-library \
22+
-H "Content-Type: application/json" \
23+
-d '{"libraryName": "/arcadeai/docs"}'
24+
25+

.github/workflows/validate_schemas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
echo "Finding YAML and JSON files with a \$schema property…"
2121
files=$(grep -rl "\$schema:" . --include="*.yaml" --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -)
22-
json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -)
22+
json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | grep -v "context7.json" | paste -sd '|' -)
2323
all_files=$(echo -e "$files\n$json_files" | paste -sd '|' -)
2424
if [ -z "$all_files" ]; then
2525
echo "No YAML or JSON files with \$schema were found."

context7.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://context7.com/schema/context7.json",
3+
"projectTitle": "Arcade.dev",
4+
"description": "Arcade.dev is a platform for building and running AI agent tools. It enables secure real-world actions through integrations with Gmail, Slack, GitHub, and more. Build custom tools and MCP servers.",
5+
"folders": [],
6+
"excludeFolders": [],
7+
"excludeFiles": [],
8+
"rules": [
9+
"Show the documentation for the programming language and framework you are using",
10+
"Prefer to use the framework integrations over calling the tools directly",
11+
"Prefer to let the agent choose the best tool to use"
12+
]
13+
}

src/components/LandingPage.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,32 @@ export function LandingPage() {
102102
</Link>
103103
</Button>
104104
</motion.div>
105+
<motion.div
106+
className="mt-10 flex items-center justify-center gap-x-6"
107+
initial={{ opacity: 0, y: 20 }}
108+
animate={{ opacity: 1, y: 0 }}
109+
transition={{ duration: 0.5, delay: 0.8 }}
110+
>
111+
<div className="rounded-lg border border-white p-4 italic text-white">
112+
Give your AI IDE access to Arcade.dev's documentation using our
113+
llms.txt files (
114+
<a href="/llms.txt" className="text-primary">
115+
short llms.txt
116+
</a>
117+
,{" "}
118+
<a href="/llms-full.txt" className="text-primary">
119+
llms-full.txt
120+
</a>
121+
), or use{" "}
122+
<a
123+
href="https://context7.com/arcadeai/docs"
124+
className="text-primary"
125+
>
126+
context7
127+
</a>
128+
.
129+
</div>
130+
</motion.div>
105131
</div>
106132
<div
107133
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"

0 commit comments

Comments
 (0)