Files
supabase/apps/docs/internals/markdown-schema/AiSkillsIndex.ts
Jeremias MenichelliandAli Waseem 0ba30d79e1 Revert "fix(docs): guard federated-content schema reads when artifact is absent" (#48159)
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>
2026-07-21 18:30:25 +00:00

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')
}