[go: up one dir, main page]

Skip to content

Single source of truth for AI rules' "Copy for LLM"

🏗️ Implement single source of truth for rules content

Changes

  • 🎯 Eliminated content duplication - removed duplicate static rule files
  • 🔄 Updated RulePageWrapper to use dynamic content path for "Copy for LLM" functionality
  • 🗑️ Removed static/content/rules/*.md files (postgres-hacking.md, sql-style.md, db-design.md)

Benefits

  • Copy for LLM always uses latest content - no more outdated copies
  • 🛠️ Reduced maintenance overhead - only one file to update per rule
  • 🚫 Eliminates sync issues - impossible to have mismatched content between display and copy
  • 🎯 Single source of truth - both display and copy functionality use same dynamic content

Architecture Improvement

  • Before: Display used src/content/rules/, Copy used static/content/rules/ (duplicates)
  • After: Both use src/content/rules/ (single source)

Files changed

  • src/components/RulePageWrapper/index.tsx - Updated rawMarkdownUrl path
  • Deleted: static/content/rules/postgres-hacking.md, sql-style.md, db-design.md

Merge request reports

Loading