mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Reverts supabase/supabase#48144 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Documentation generation now surfaces missing or unreadable AI skills and Terraform schema data instead of silently producing empty sections. * This improves visibility into incomplete documentation builds and helps ensure generated reference content is available and accurate. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Ali Waseem <waseema393@gmail.com>
28 lines
545 B
TypeScript
28 lines
545 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import path from 'node:path'
|
|
|
|
const SKILLS_PATH = path.join(process.cwd(), 'features/docs/generated/ai-skills.json')
|
|
|
|
interface SkillSummary {
|
|
name: string
|
|
description: string
|
|
installCommand: string
|
|
}
|
|
|
|
export const AiSkillsIndex = (): string => {
|
|
const skills: SkillSummary[] = JSON.parse(readFileSync(SKILLS_PATH, 'utf-8'))
|
|
|
|
return skills
|
|
.map(
|
|
(skill) =>
|
|
`### ${skill.name}
|
|
|
|
${skill.description}
|
|
|
|
\`\`\`sh
|
|
${skill.installCommand}
|
|
\`\`\``
|
|
)
|
|
.join('\n\n')
|
|
}
|