Skip to content

webcanvas(docs): add llms.txt and llms-full.txt for AI usage#261

Open
tinyjin wants to merge 1 commit intomainfrom
jinny/wcanvas-llm.txt
Open

webcanvas(docs): add llms.txt and llms-full.txt for AI usage#261
tinyjin wants to merge 1 commit intomainfrom
jinny/wcanvas-llm.txt

Conversation

@tinyjin
Copy link
Copy Markdown
Member

@tinyjin tinyjin commented Mar 20, 2026

Modern AI coding agents can autonomously program based on well-structured, text-based API documentation. This patch provides the @thorvg/webcanvas API in formats that AI tools and coding agents can easily discover and understand through llms.txt format.

The llms.txt is automatically generated based on typedoc document. In WebCanvas API doc, we'll provide original document for human-read, new document(llms.txt) for AI-read.

CleanShot 2026-03-20 at 21 44 16@2x

see also : https://llmstxt.org/

@tinyjin tinyjin self-assigned this Mar 20, 2026
@tinyjin tinyjin requested a review from hermet as a code owner March 20, 2026 12:44
@tinyjin tinyjin added the documentation Improvements to documentation label Mar 20, 2026
Copilot AI review requested due to automatic review settings March 20, 2026 12:44
@tinyjin tinyjin force-pushed the jinny/wcanvas-llm.txt branch from 878fcf1 to b9331a4 Compare March 20, 2026 12:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds AI-agent-friendly documentation outputs for the @thorvg/webcanvas API by extending the existing TypeDoc-based docs generator.

Changes:

  • Generate docs/llms.txt (high-level index) from the extracted API model.
  • Generate docs/llms-full.txt (full reference with constructors/properties/methods/examples).
  • Copy both files to the package root (packages/webcanvas/llms.txt and packages/webcanvas/llms-full.txt) for easier discovery.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 20, 2026 12:52
@tinyjin tinyjin force-pushed the jinny/wcanvas-llm.txt branch from 0fde915 to 8f43633 Compare March 20, 2026 12:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Modern AI coding agents can autonomously program based on
well-structured, text-based API documentation. This patch provides the
@thorvg/webcanvas API in formats that AI tools and coding agents
can easily discover and understand through  llms.txt format.

The llms.txt is automatically generated based on typedoc document.
In WebCanvas API doc, we'll provide original document for
human-read, new document(llms.txt) for AI-read.

see also : https://llmstxt.org/
@github-actions
Copy link
Copy Markdown

🚀 Playground preview deployment ready!

🎮 Playground: https://thorvg-playground-a20xdd30e-thorvg-web.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants