Skip to content

Conversation

@uniyalabhishek
Copy link
Contributor

@uniyalabhishek uniyalabhishek commented Nov 23, 2025

@netlify
Copy link

netlify bot commented Nov 23, 2025

Deploy Preview for oasisprotocol-docs ready!

Name Link
🔨 Latest commit ded20aa
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-docs/deploys/69294b300bc6000008419491
😎 Deploy Preview https://deploy-preview-1570--oasisprotocol-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

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

llms.txt doesn't seem to contain markdowns that are symlinked (oasis-sdk, cli, core, adrs). Can you debug it?

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/llmstxt branch from 6d616ed to e0af0b2 Compare November 26, 2025 19:00
@uniyalabhishek
Copy link
Contributor Author

uniyalabhishek commented Nov 26, 2025

llms.txt doesn't seem to contain markdowns that are symlinked (oasis-sdk, cli, core, adrs). Can you debug it?

@matevz polished a lot now. please check it out.

  • for llms-full.txtshould we keep all the docs or limit to ROFL, Sapphire & CLI docs? because llms-full.txt is over 450k tokens now and most llms except Gemini 3 pro have 200k tokens context window. in this case I'm talking about 3rd party devs who want to build full-stack apps and feed the relevant complete docs to thier own chats with different llms.

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/llmstxt branch 2 times, most recently from 00fef7b to e0a6483 Compare November 28, 2025 06:01
feat: symlink-aware llmstxt plugin

feat: snippet inlining and external directory support

refactor: update llmstxt build docs prioritization

feat: enhance llms-sym plugin with cycle protection and markdown cleaning

feat: enhance plugin with description derivation

fix: enhance symlink error logging and image link

fix: update docusaurus-plugin-llms version in yarn.lock

feat: enhance llms plugin content cleaning, and description extraction
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/feature/llmstxt branch from 3ed5e80 to ded20aa Compare November 28, 2025 07:11
Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

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

There are some major drawbacks:

  • generic docusaurus plugin is not taking the Remark-parsed content as a base. This means we have duplicate code in llms-symlinks.js (almost 600 LOC + relying on a 3rd party plugin!) to support symlinks, for code snippets and cross-repo links.
  • chapters hierarchy is not based on sidebars, currently everything is flat
  • llms-full.txt also does not contain chapter hierarchy which results in duplicate chapter titles

I would suggest alternative approach in a new PR without duplicate code and 3rd party plugin - generate llms.txt and llms-full.txt inside a Remark plugin. This way we already have code snippets there and working cross-repo links for free as well as ordering and hierarchy based on side bars. The input for a remark plugin is a markdown code and some metadata (already correct filepath etc.). You would then add a chapter entry to llms.txt, shift the headings accordingly in the markdown tree and append it to llms-full.txt.

In the meantime, keep this PR as a backup for training AI models on our Build chapters.

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.

Export LLM/AI version of the docs

3 participants