chore: add helix-api and workspace config to monorepo

This commit is contained in:
siujamo committed 2026-09-01 10:11:07 +08:00
1 parent c732624580
commit 112d0f3be4
40 files changed
+7145

No files matched your search

+1
View File
@@ -0,0 +1 @@
export { twMerge as cn } from 'tailwind-merge';
+17
View File
@@ -0,0 +1,17 @@
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
// fill this with your actual GitHub info, for example:
export const gitConfig = {
user: 'fuma-nama',
repo: 'fumadocs',
branch: 'main',
};
export function baseOptions(): BaseLayoutProps {
return {
nav: {
title: 'React Router',
},
githubUrl: `https://github.com/${gitConfig.user}/${gitConfig.repo}`,
};
}
+8
View File
@@ -0,0 +1,8 @@
import path from 'node:path';
import { createOpenAPI } from 'fumadocs-openapi/server';
export const openapi = createOpenAPI({
input: () => ({
helix: path.resolve('./openapi/openapi.yaml'),
}),
});
+15
View File
@@ -0,0 +1,15 @@
import { loader, type InferPageType } from 'fumadocs-core/source';
import { docs } from 'collections/server';
export const source = loader({
source: docs.toFumadocsSource(),
baseUrl: '/docs',
});
export async function getLLMText(page: InferPageType<typeof source>) {
const processed = await page.data.getText('processed');
return `# ${page.data.title} (${page.url})
${processed}`;
}