Files
copilotkit__copilotkit/docs/script.mjs
Ariel Weinberger 0dfb539d2d Swap out old docs for new docs (#693)
* swap docs

* fix build error

---------

Co-authored-by: Fuma Nama <fuma-nama@noreply.com>
2024-10-04 14:13:08 +02:00

15 lines
401 B
JavaScript

import { generateFiles, generateMDX } from 'fumadocs-typescript';
import * as path from 'node:path';
import * as fs from 'node:fs/promises';
console.log("Generating files...");
void generateFiles({
input: ['./content/docs/**/*.model.mdx'],
// Rename x.model.mdx to x.mdx
output: (file) =>
path.resolve(
path.dirname(file),
`${path.basename(file).split('.')[0]}.mdx`,
),
});