Skip to content
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

How difficult would it be to create llms.txt from docs? #534

Open
eamag opened this issue Jan 15, 2025 · 1 comment
Open

How difficult would it be to create llms.txt from docs? #534

eamag opened this issue Jan 15, 2025 · 1 comment

Comments

@eamag
Copy link

eamag commented Jan 15, 2025

I'm new to svelte, and haven't dived deep into how the docs for your project are created. I understand they're dynamically created from the components? If so, how difficult would it be to create https://llmstxt.org/ for this project?

@techniq
Copy link
Owner

techniq commented Jan 15, 2025

Hey @eamag 👋, thanks for checking out Svelte UX.

I'm not overly familiar with llms.txt beyond Svelte recently adding support as part of the Advent of Svelte. The docs at the moment are mostly hand created SvelteKit route examples. We used to extract the props/events/slots APIs using Sveld but it's ComponentParser has not been updated to Svelte 5 yet, and currently there is not a solution I've seen that supports Svelte 4 syntax (current Svelte UX syntax, but Svelte 5 compat) and Svelte 5 syntax. Since the docs now run on Svelte 5, I've temporarily disabled the API docs extracting until the library can be moved to Svelte 5 syntax (runes, snippets, etc).

With all that said, it would likely take a good bit of work to create a compatible llms.txt file, but I'm open for PRs if someone knows the process better than I.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants