feat(docs): add VitePress plugin for LLM-categorized pattern documentation#10477
Open
feat(docs): add VitePress plugin for LLM-categorized pattern documentation#10477
Conversation
…ation Introduces `plugin-llm-docs.ts`, a VitePress plugin that scans markdown frontmatter for `llm:` metadata and generates four output files: - `llms-recommended.txt` — current best-practice patterns - `llms-deprecated.txt` — patterns to migrate away from - `llms-discouraged.txt` — patterns to avoid in new code - `llms-code-patterns.txt` — combined reference file Registers the plugin in `.vitepress/config.mts` and seeds initial `llm:` frontmatter on five guide pages: - builders.md → recommended - legacy-mode.md → recommended - ember.md → discouraged (prefer standard setup) - polaris-mode.md → discouraged (preview, not yet stable) - legacy-package-setup → deprecated since v5.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5635988 to
d18ef2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces
plugin-llm-docs.ts, a VitePress plugin that scans markdownfrontmatter for
llm:metadata and generates four output files:llms-recommended.txt— current best-practice patternsllms-deprecated.txt— patterns to migrate away fromllms-discouraged.txt— patterns to avoid in new codellms-code-patterns.txt— combined reference fileRegisters the plugin in
.vitepress/config.mtsand seeds initialllm:frontmatter on five guide pages:
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com