mirror of
https://github.com/coollabsio/coolify-docs.git
synced 2026-06-19 07:35:55 +00:00
a64450ae9d
Replace VitePress/Vue stack with Fumadocs MDX, TanStack Start, React 19, and Vite. Migrate all documentation content to MDX under content/docs/. Add full src/ app with React components, routing, search, and API page. Remove Korrektly integration from CI/CD workflows, Dockerfile, and env vars. Update build pipeline to output to .output/public instead of docs/.vitepress/dist.
23 lines
726 B
JavaScript
23 lines
726 B
JavaScript
import { mkdir, writeFile } from 'node:fs/promises'
|
|
import path from 'node:path'
|
|
import { collectServices, root } from './services-data.mjs'
|
|
|
|
/**
|
|
* Generate the service list JSON consumed by the Fumadocs service component.
|
|
*
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async function generateServices() {
|
|
const outputFile = path.join(root, 'src/generated/services.json')
|
|
const services = await collectServices()
|
|
|
|
await mkdir(path.dirname(outputFile), { recursive: true })
|
|
await writeFile(outputFile, `${JSON.stringify(services, null, 2)}\n`)
|
|
console.log(`Generated ${path.relative(root, outputFile)} with ${services.length} services.`)
|
|
}
|
|
|
|
generateServices().catch((error) => {
|
|
console.error(error)
|
|
process.exitCode = 1
|
|
})
|