Skip to content

Commit

Permalink
simplify llms.txt generation (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke authored Jan 24, 2025
1 parent 1a1853f commit 637614c
Show file tree
Hide file tree
Showing 2 changed files with 1,372 additions and 851 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/llm-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Compile llms.txt
run: npx --yes sitefetch https://cog.run -o docs/llms.txt --concurrency 10
run: |
# Concatenate all the markdown docs, minus everything after "## Contributors" in README.md, and write to docs/llms.txt
(sed '/## Contributors/q' README.md; for file in docs/*.md; do echo -e "\n\n\n\n\n---\n\n\n\n\n"; cat "$file"; done) > docs/llms.txt
- name: Check for changes
run: |
Expand Down
Loading

0 comments on commit 637614c

Please sign in to comment.