-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add versioning to llms.txt #3495
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
Open
vincanger
wants to merge
6
commits into
release
Choose a base branch
from
add-versioning-to-llms.txt
base: release
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Reworks the script to loop through all documentation versions and generate LLM files for each, removing redundant code and simplifying file output logic. The latest version now generates both llms.txt and llms-full.txt, while older versions generate llms-{version}.txt. Cleans up unused variables and functions, and improves maintainability.
Deploying wasp-docs-on-main with
|
| Latest commit: |
c9e5dbc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f1053e5c.wasp-docs-on-main.pages.dev |
| Branch Preview URL: | https://add-versioning-to-llms-txt.wasp-docs-on-main.pages.dev |
Replaces the buildLlmsTxtContent function with a more concise implementation using template constants. Extracts file writing logic into dedicated writeLlmsTxtFile and writeLlmsFullTxtFile functions for better modularity and clarity.
Member
|
Maybe it's good if we kept the |
Contributor
Author
|
@infomiho it does keep llms.txt for latest. only older versions have the version url, e.g. try: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
In order to make our Claude Code plugin more precise, we want to create versioned llms.txt docs as well, so that CC can get the correct docs depending on the user's
wasp --version.Type of change
Checklist
I tested my change in a Wasp app to verify that it works as intended.
🧪 Tests and apps:
examples/kitchen-sink/e2e-tests.waspc/data/Cli/templates, as needed.examples/, as needed.examples/tutorials) I updated the tutorial in the docs (and vice versa).📜 Documentation:
web/docs/.🆕 Changelog: (if change is more than just code/docs improvement)
waspc/ChangeLog.mdwith a user-friendly description of the change.web/docs/migration-guides/.versioninwaspc/waspc.cabalto reflect the changes I introduced.