Skip to content

Conversation

@ozziexsh
Copy link

👋 Hey, this adds the ability to append .md to a url to receive the raw markdown format for easier LLM usage, e.g.

/docs/installation.md

It would be great to have a general /llms.txt with an index of all the pages, as well as a copy as markdown on each page too but I don't have time for that just yet :) I can open another PR in the future if that is something you'd consider adding

I also couldn't get playwright to run locally (even though its working with pest 4 in other repos locally) so not sure if the test is passing, though I verified it works when serving the application itself and visiting the urls

}

$isMarkdown = str($page)->endsWith('.md');
$page = str($page)->replace('.md', '')->toString();
Copy link
Author

Choose a reason for hiding this comment

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

i don't love that this mutates the original parameter but it seemed like a better call than refactoring all the existing usages of it given i couldn't run the tests locally

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

Successfully merging this pull request may close these issues.

1 participant