Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/interactdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4

- name: Generate llms.txt files
run: node scripts/generate-llms.mjs

- name: Prepare deployment directory
run: |
# Create the site structure:
Expand All @@ -69,6 +72,8 @@ jobs:
# /docs/ -> docs app
# /playground/ -> playground app
# /rules/ -> rules markdown files
# /llms.txt -> AI agent discovery index (llmstxt.org standard)
# /llms-full.txt -> All rules concatenated for single-fetch consumption

mkdir -p _site/docs
mkdir -p _site/playground
Expand All @@ -89,6 +94,10 @@ jobs:
# Copy rules from source (served at /rules/, not /docs/rules/)
cp -r packages/interact/rules/* _site/rules/

# Copy generated llms.txt files
cp llms.txt _site/llms.txt
cp llms-full.txt _site/llms-full.txt

- name: Upload artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ pnpm-lock.yaml
package-lock.json
.yarn/
tmp/

# Generated llms.txt files (built by scripts/generate-llms.mjs)
llms.txt
llms-full.txt
packages/interact/llms.txt
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"format": "prettier . --write",
"format:check": "prettier . --check",
"serve": "npx serve apps/website -l 3000",
"serve:public": "npx serve apps/website -l tcp://0.0.0.0:3000"
"serve:public": "npx serve apps/website -l tcp://0.0.0.0:3000",
"generate:llms": "node scripts/generate-llms.mjs"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also possible (but not standardized yet) to add

"llms": "./llms.txt",
"llmsFull": "./llms-full.txt"

To the package.json

},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/interact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"files": [
"dist",
"rules",
"docs"
"docs",
"llms.txt"
],
"sideEffects": false,
"scripts": {
Expand Down
Loading