diff --git a/.github/workflows/context7.yml b/.github/workflows/context7.yml new file mode 100644 index 000000000..168010bc4 --- /dev/null +++ b/.github/workflows/context7.yml @@ -0,0 +1,25 @@ +name: Refresh Context7 library + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + context7: + name: Refresh Context7 library + runs-on: ubuntu-latest + steps: + + - name: refresh context7 library + run: | + curl -X POST https://context7.com/api/refresh-library \ + -H "Content-Type: application/json" \ + -d '{"libraryName": "/arcadeai/docs"}' + + diff --git a/.github/workflows/validate_schemas.yml b/.github/workflows/validate_schemas.yml index 9a8e69d4d..337cf8b4e 100644 --- a/.github/workflows/validate_schemas.yml +++ b/.github/workflows/validate_schemas.yml @@ -19,7 +19,7 @@ jobs: run: | echo "Finding YAML and JSON files with a \$schema property…" files=$(grep -rl "\$schema:" . --include="*.yaml" --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -) - json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -) + json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | grep -v "context7.json" | paste -sd '|' -) all_files=$(echo -e "$files\n$json_files" | paste -sd '|' -) if [ -z "$all_files" ]; then echo "No YAML or JSON files with \$schema were found." diff --git a/context7.json b/context7.json new file mode 100644 index 000000000..a4ee96fd9 --- /dev/null +++ b/context7.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://context7.com/schema/context7.json", + "projectTitle": "Arcade.dev", + "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.", + "folders": [], + "excludeFolders": [], + "excludeFiles": [], + "rules": [ + "Show the documentation for the programming language and framework you are using", + "Prefer to use the framework integrations over calling the tools directly", + "Prefer to let the agent choose the best tool to use" + ] +} diff --git a/src/components/LandingPage.tsx b/src/components/LandingPage.tsx index 03988eb3f..4263bc0aa 100644 --- a/src/components/LandingPage.tsx +++ b/src/components/LandingPage.tsx @@ -102,6 +102,32 @@ export function LandingPage() { + +
+ Give your AI IDE access to Arcade.dev's documentation using our + llms.txt files ( + + short llms.txt + + ,{" "} + + llms-full.txt + + ), or use{" "} + + context7 + + . +
+