-
Notifications
You must be signed in to change notification settings - Fork 23
Exclude legacy V0 pages from llms.txt context files #359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0dfbc0c
docs: override llms files to exclude legacy V0 pages
openhands-agent 5963fa2
docs: improve llms files structure and section labeling
openhands-agent 01dcfde
docs: document llms override generation
openhands-agent 73ea4ba
docs: reorder llms sections (SDK, CLI, Web, Cloud)
openhands-agent fdf13d6
ci: verify llms files are in sync with generator
openhands-agent 4f39824
chore: add make targets for llms regeneration
openhands-agent 85db0b0
Merge branch 'main' into llms-v1-only
enyst 7ed5a31
Regenerate llms context files
openhands-agent 8aa6c67
Merge main into llms-v1-only
openhands-agent 36a3c93
Regenerate llms files after merging main
openhands-agent 76e4917
Apply suggestion from @enyst
enyst 27d809a
chore: sync llms files weekly
openhands-agent 64cfebf
docs: note llms sync workflow
openhands-agent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Sync llms context files | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run weekly at 3 AM UTC on Mondays | ||
| - cron: '0 3 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| concurrency: | ||
| group: sync-llms-files | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| sync-llms-files: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout docs repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Regenerate llms.txt and llms-full.txt | ||
| run: python3 scripts/generate-llms-files.py | ||
|
|
||
| - name: Check for changes | ||
| id: detect_changes | ||
| shell: bash | ||
| run: | | ||
| if [[ -n "$(git status --porcelain)" ]]; then | ||
| echo "changes=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "changes=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Create Pull Request | ||
| if: steps.detect_changes.outputs.changes == 'true' | ||
| uses: peter-evans/create-pull-request@v7 | ||
| with: | ||
| token: ${{ github.token }} | ||
| branch-token: ${{ github.token }} | ||
| commit-message: "docs: sync llms context files" | ||
| branch: sync-llms-files | ||
| branch-suffix: timestamp | ||
| delete-branch: true | ||
| title: "docs: sync llms context files" | ||
| body: | | ||
| ## Summary of changes | ||
|
|
||
| This PR updates `llms.txt` and `llms-full.txt` using `scripts/generate-llms-files.py`. | ||
|
|
||
| ### Changes Made | ||
| - Regenerated llms context files from the latest documentation | ||
| - This is an automated sync from the `sync-llms-files` workflow | ||
|
|
||
| ### Checklist | ||
| - [x] I have read and reviewed the documentation changes to the best of my ability. | ||
| - [x] If the change is significant, I have run the documentation site locally and confirmed it renders as expected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .PHONY: llms llms-check | ||
|
|
||
| # Regenerate the Mintlify llms context files (V1-only override). | ||
| # | ||
| # See: scripts/generate-llms-files.py | ||
| llms: | ||
| python3 scripts/generate-llms-files.py | ||
|
|
||
| # Regenerate and fail if llms files changed (useful for local verification). | ||
| llms-check: | ||
| python3 scripts/generate-llms-files.py | ||
| git diff --exit-code llms.txt llms-full.txt |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.