Skip to content

Revert "chore: add main llms.txt to the root and on each component" - #43

Closed
kampsy wants to merge 1 commit into
mainfrom
revert-42-dev
Closed

Revert "chore: add main llms.txt to the root and on each component"#43
kampsy wants to merge 1 commit into
mainfrom
revert-42-dev

Conversation

@kampsy

@kampsy kampsy commented Jan 18, 2026

Copy link
Copy Markdown
Owner

Reverts #42

Summary by CodeRabbit

Release Notes

  • Refactor

    • Reorganized documentation code snippets across component examples by standardizing the structure of import statements for improved readability and consistency.
  • Chores

    • Cleaned up and removed redundant static documentation files to streamline the documentation structure.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel

vercel Bot commented Jan 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
kampsy-ui Ready Ready Preview, Comment Jan 18, 2026 6:18pm

@coderabbitai

coderabbitai Bot commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR refactors documentation code snippets across 30+ component examples by moving import statements from embedded TypeScript script blocks to top-level within template strings, and removes approximately 30 LLM documentation files from the static directory.

Changes

Cohort / File(s) Summary
Documentation Code Examples
src/docs/data/avatar.ts, src/docs/data/badge.ts, src/docs/data/button.ts, src/docs/data/calendar.ts, src/docs/data/checkbox.ts, src/docs/data/choicebox.ts, src/docs/data/collapse.ts, src/docs/data/description.ts
Removed <script lang="ts"> blocks from code snippets and elevated import statements to top-level within template strings. State declarations moved to module scope. Template markup and functionality preserved.
Documentation Code Examples (continued)
src/docs/data/emptyState.ts, src/docs/data/error.ts, src/docs/data/input.ts, src/docs/data/keyboard-input.ts, src/docs/data/menu.ts, src/docs/data/modal.ts
Removed script wrappers from example code blocks. Imports repositioned to top-level of template strings. Component usage and bindings remain functionally equivalent.
Documentation Code Examples (continued)
src/docs/data/note.ts, src/docs/data/pagination.ts, src/docs/data/progress.ts, src/docs/data/project-banner.ts, src/docs/data/select.ts, src/docs/data/showMore.ts
Extracted <script> blocks from documentation snippets. Import statements elevated to template string headers. Markup structure and component props unchanged.
Documentation Code Examples (continued)
src/docs/data/snippet.ts, src/docs/data/spinner.ts, src/docs/data/split-button.ts, src/docs/data/status-dot.ts, src/docs/data/switch.ts, src/docs/data/table.ts
Removed embedded script block wrappers from code samples. Imports moved to top-level scope within template strings. Component configurations and bindings preserved.
Documentation Code Examples (continued)
src/docs/data/tabs.ts, src/docs/data/text.ts, src/docs/data/textarea.ts, src/docs/data/theme-switcher.ts, src/docs/data/toggle.ts, src/docs/data/tooltip.ts
Eliminated TypeScript script blocks from example snippets. Promoted import statements to template string beginning. State variables and JSX/HTML content remain unmodified.
Installation Documentation
src/docs/data/installation.ts
Replaced string-based Tailwind configuration exports with direct module-level object exports. installationConfig and installationConfigLong removed as string constants; config now exported as JavaScript objects.
Static LLM Documentation Files
static/avatar/llms.txt, static/badge/llms.txt, static/button/llms.txt, static/calendar/llms.txt, static/checkbox/llms.txt, static/choicebox/llms.txt, static/collapse/llms.txt, static/description/llms.txt, static/empty-state/llms.txt, static/error/llms.txt, static/input/llms.txt, static/keyboard-input/llms.txt, static/menu/llms.txt, static/modal/llms.txt, static/note/llms.txt, static/pagination/llms.txt, static/progress/llms.txt, static/project-banner/llms.txt, static/select/llms.txt, static/show-more/llms.txt, static/snippet/llms.txt, static/spinner/llms.txt, static/split-button/llms.txt, static/status-dot/llms.txt, static/switch/llms.txt, static/table/llms.txt, static/tabs/llms.txt, static/text/llms.txt, static/textarea/llms.txt, static/theme-switcher/llms.txt, static/toggle/llms.txt, static/tooltip/llms.txt
Removed component documentation files containing exports, usage examples, installation instructions, documentation URLs, and license information.
Main Documentation
static/llms.txt
Deleted comprehensive library documentation covering installation, Tailwind configuration, component catalog, patterns, framework requirements, and licensing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested labels

documentation

Poem

🐰 Scripts once nested deep inside,
Now rest at the top with pride,
Imports elevated, clean and bright,
Templates reorganized just right,
Docs refined from static halls,
Refactored code now answers all! 📚

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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