-
Notifications
You must be signed in to change notification settings - Fork 15
feat: llm ready docs #348
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
feat: llm ready docs #348
Conversation
After merging #308, there are conflicts |
Thats not a problem. It was expected. I will fix them today. |
refactor: rename and import reusable markdowns using relative path chore: delete gitignored files from autogen directory refactor: rename table files in autogen dir as per docusaurus recommendation refactor: rename HardcodedDemonstration and move to snippets directory
15bb996
to
58ee72d
Compare
58ee72d
to
18187fb
Compare
Great work and thanks for the summary.
WDYM by that? That document is outdated. I can't find it in version control on this branch or |
The description is now outdated so please don't review the PR right now, its still work in progress. I will update the description later. I should have marked it as a draft. Sorry about that. I will request a review when its done. |
refactor: fix PluginOptions type refactor: smol wording changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good work, left some questions below
refactor: replace bash content with CodeBlock in markdown files build: include patch number in llms plugin version
I have updated the description and this PR is ready to be merged. There are a few hiccups in the actual outcome of the implementation, but imo its a good start. The terrible UX is because of the difference in the URLs on which markdowns are hosted and the URLs on which the HTML pages are hosted. I have opened an issue for that in the plugin repo. Once the above issue is resolved, we can add a new page similar to https://docs.stripe.com/building-with-llms.md but until then, I will hold onto that. @PaulRBerg if you can have a quick look and re-approve the PR (or provide your thoughts, if any), that would be great. |
@PaulRBerg should I merge this PR? |
will review this weekend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to merge!
This PR addresses the following issues:
HardcodedDemonstration.tsx
to_hardcoded-demonstration.mdx
and move it tosnippets
prop
instead of exporting multiple variables.CodeBlock
instead of typical markdown approach for encapsulating large code lines.bun
command instead ofjust
command in guidesIntroduction
Stripe docs are very likely built on gitbook which provides "LLM-ready docs" as a native feature. All these LLM-ready docs integrations loosely (not yet widely accepted) follow the standard defined by llmstxt.org.
Docusaurus currently lacks this feature, but I came across docusaurus-plugin-llms which is mentioned on llmstxt website. Its not yet fully matured but a good start until this feature is natively provided by Docusaurus, similar to Gitbook.
Links
An expected behaviour is to host /concepts/what-is-sablier on
/concepts/what-is-sablier.md
. However, the plugin does not expose markdown files through the original URLs and instead host all markdown files directly from thebuild
directly.So, the above page would be hosted on /what-is-sablier.md.
Similarly, /guides/lockup/examples/local-environment is hosted at /configure-your-local-environment.md and for Flow it will be on /configure-your-local-environment-1.md. This is a terrible UX. As a result, one should refer to
llms.txt
to find all the valid URLs.I have opened an issue in the plugin repo requesting this feature.
All links can be found at /llms.txt.
Single markdown files
For the purpose of LLM training and fine tuning, single markdown files are hosted on /llms-training-data.txt. Similarly, protocol specific single files are hosted on /llms-flow.txt and so on.