create-fumadocs-app 16.0.96 → 16.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +2 -2
- package/dist/{constants-Dis9DQV5.js → constants-vQsB9E0s.js} +19 -19
- package/dist/{constants-Dis9DQV5.js.map → constants-vQsB9E0s.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins/biome.js +1 -1
- package/dist/plugins/eslint.js +1 -1
- package/dist/plugins/next-use-takumi.js +1 -1
- package/dist/plugins/orama-cloud.js +1 -1
- package/dist/plugins/oxlint.js +1 -1
- package/dist/{src-0lHqXa4K.js → src-CvUtgqq7.js} +2 -2
- package/dist/{src-0lHqXa4K.js.map → src-CvUtgqq7.js.map} +1 -1
- package/package.json +3 -3
- package/template/+next+fuma-docs-mdx/lib/source.ts +4 -4
- package/template/+next+fuma-docs-mdx/package.json +3 -3
- package/template/+next+fuma-docs-mdx/source.config.ts +1 -1
- package/template/+next+fuma-docs-mdx+static/lib/source.ts +4 -4
- package/template/+next+fuma-docs-mdx+static/package.json +3 -3
- package/template/+next+fuma-docs-mdx+static/source.config.ts +1 -1
- package/template/react-router/app/lib/source.ts +3 -3
- package/template/react-router/package.json +3 -3
- package/template/react-router-spa/app/lib/source.ts +3 -3
- package/template/react-router-spa/package.json +2 -2
- package/template/tanstack-start/package.json +4 -4
- package/template/tanstack-start/src/lib/source.ts +3 -3
- package/template/tanstack-start-spa/package.json +4 -4
- package/template/tanstack-start-spa/src/lib/source.ts +3 -3
- package/template/waku/package.json +2 -2
- package/template/waku/source.config.ts +1 -1
- package/template/waku/src/lib/source.ts +3 -3
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as templates, n as isCI } from "./constants-
|
|
3
|
-
import { n as getPackageManager, r as managers, t as create } from "./src-
|
|
2
|
+
import { i as templates, n as isCI } from "./constants-vQsB9E0s.js";
|
|
3
|
+
import { n as getPackageManager, r as managers, t as create } from "./src-CvUtgqq7.js";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { cancel, confirm, group, intro, isCancel, outro, select, spinner, text } from "@clack/prompts";
|
|
@@ -88,8 +88,8 @@ function pick(obj, keys) {
|
|
|
88
88
|
var dependencies$4 = {
|
|
89
89
|
"@biomejs/biome": "^2.4.12",
|
|
90
90
|
"@orama/core": "^1.2.19",
|
|
91
|
-
"@takumi-rs/image-response": "^1.0.
|
|
92
|
-
"eslint": "^10.2.
|
|
91
|
+
"@takumi-rs/image-response": "^1.0.14",
|
|
92
|
+
"eslint": "^10.2.1",
|
|
93
93
|
"fumadocs-core": "workspace:*",
|
|
94
94
|
"fumadocs-mdx": "workspace:*",
|
|
95
95
|
"fumadocs-ui": "workspace:*",
|
|
@@ -120,7 +120,7 @@ var package_exports$3 = /* @__PURE__ */ __exportAll({
|
|
|
120
120
|
version: () => version$3
|
|
121
121
|
});
|
|
122
122
|
var name$3 = "fumadocs-core";
|
|
123
|
-
var version$3 = "16.8.
|
|
123
|
+
var version$3 = "16.8.1";
|
|
124
124
|
var description$3 = "The React.js library for building a documentation website";
|
|
125
125
|
var keywords$3 = ["Docs", "Fumadocs"];
|
|
126
126
|
var homepage$3 = "https://fumadocs.dev";
|
|
@@ -239,7 +239,7 @@ var devDependencies$3 = {
|
|
|
239
239
|
"@orama/core": "^1.2.19",
|
|
240
240
|
"@oramacloud/client": "^2.1.4",
|
|
241
241
|
"@shikijs/transformers": "^4.0.2",
|
|
242
|
-
"@tanstack/react-router": "1.168.
|
|
242
|
+
"@tanstack/react-router": "1.168.23",
|
|
243
243
|
"@types/estree-jsx": "^1.0.5",
|
|
244
244
|
"@types/hast": "^3.0.4",
|
|
245
245
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -253,7 +253,7 @@ var devDependencies$3 = {
|
|
|
253
253
|
"image-size": "^2.0.2",
|
|
254
254
|
"lucide-react": "^1.8.0",
|
|
255
255
|
"negotiator": "^1.0.0",
|
|
256
|
-
"next": "16.2.
|
|
256
|
+
"next": "16.2.4",
|
|
257
257
|
"npm-to-yarn": "^3.0.1",
|
|
258
258
|
"path-to-regexp": "^8.4.2",
|
|
259
259
|
"react-router": "^7.14.1",
|
|
@@ -261,14 +261,14 @@ var devDependencies$3 = {
|
|
|
261
261
|
"remark-mdx": "^3.1.1",
|
|
262
262
|
"remove-markdown": "^0.6.3",
|
|
263
263
|
"tsconfig": "workspace:*",
|
|
264
|
-
"tsdown": "0.21.
|
|
265
|
-
"typescript": "^6.0.
|
|
264
|
+
"tsdown": "0.21.9",
|
|
265
|
+
"typescript": "^6.0.3",
|
|
266
266
|
"waku": "1.0.0-alpha.7",
|
|
267
267
|
"zod": "^4.3.6"
|
|
268
268
|
};
|
|
269
269
|
var peerDependencies$3 = {
|
|
270
270
|
"@mdx-js/mdx": "*",
|
|
271
|
-
"@mixedbread/sdk": "
|
|
271
|
+
"@mixedbread/sdk": "0.x.x",
|
|
272
272
|
"@orama/core": "1.x.x",
|
|
273
273
|
"@oramacloud/client": "2.x.x",
|
|
274
274
|
"@tanstack/react-router": "1.x.x",
|
|
@@ -434,16 +434,16 @@ var devDependencies$2 = {
|
|
|
434
434
|
"@types/react": "^19.2.14",
|
|
435
435
|
"fumadocs-core": "workspace:*",
|
|
436
436
|
"mdast-util-directive": "^3.1.0",
|
|
437
|
-
"next": "16.2.
|
|
437
|
+
"next": "16.2.4",
|
|
438
438
|
"react": "^19.2.5",
|
|
439
439
|
"remark": "^15.0.1",
|
|
440
440
|
"remark-directive": "^4.0.0",
|
|
441
441
|
"remark-mdx": "^3.1.1",
|
|
442
|
-
"rolldown": "1.0.0-rc.
|
|
442
|
+
"rolldown": "1.0.0-rc.16",
|
|
443
443
|
"tsconfig": "workspace:*",
|
|
444
|
-
"tsdown": "0.21.
|
|
444
|
+
"tsdown": "0.21.9",
|
|
445
445
|
"vite": "^8.0.8",
|
|
446
|
-
"webpack": "^5.106.
|
|
446
|
+
"webpack": "^5.106.2"
|
|
447
447
|
};
|
|
448
448
|
var peerDependencies$2 = {
|
|
449
449
|
"@types/mdast": "*",
|
|
@@ -509,7 +509,7 @@ var package_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
509
509
|
version: () => version$1
|
|
510
510
|
});
|
|
511
511
|
var name$1 = "fumadocs-ui";
|
|
512
|
-
var version$1 = "16.8.
|
|
512
|
+
var version$1 = "16.8.1";
|
|
513
513
|
var description$1 = "The Radix UI version of Fumadocs UI";
|
|
514
514
|
var keywords$1 = ["Docs", "Fumadocs"];
|
|
515
515
|
var homepage$1 = "https://fumadocs.dev";
|
|
@@ -659,7 +659,7 @@ var dependencies$1 = {
|
|
|
659
659
|
var devDependencies$1 = {
|
|
660
660
|
"@fumadocs/cli": "workspace:*",
|
|
661
661
|
"@tailwindcss/cli": "^4.2.2",
|
|
662
|
-
"@tsdown/css": "^0.21.
|
|
662
|
+
"@tsdown/css": "^0.21.9",
|
|
663
663
|
"@types/hast": "^3.0.4",
|
|
664
664
|
"@types/mdx": "^2.0.13",
|
|
665
665
|
"@types/node": "^25.6.0",
|
|
@@ -670,7 +670,7 @@ var devDependencies$1 = {
|
|
|
670
670
|
"react-medium-image-zoom": "^5.4.3",
|
|
671
671
|
"tailwindcss": "^4.2.2",
|
|
672
672
|
"tsconfig": "workspace:*",
|
|
673
|
-
"tsdown": "0.21.
|
|
673
|
+
"tsdown": "0.21.9",
|
|
674
674
|
"unified": "^11.0.5"
|
|
675
675
|
};
|
|
676
676
|
var peerDependencies$1 = {
|
|
@@ -733,7 +733,7 @@ var package_exports = /* @__PURE__ */ __exportAll({
|
|
|
733
733
|
version: () => version
|
|
734
734
|
});
|
|
735
735
|
var name = "@fumadocs/base-ui";
|
|
736
|
-
var version = "16.8.
|
|
736
|
+
var version = "16.8.1";
|
|
737
737
|
var description = "The Base UI version of Fumadocs UI";
|
|
738
738
|
var keywords = ["Docs", "Fumadocs"];
|
|
739
739
|
var homepage = "https://fumadocs.dev";
|
|
@@ -866,7 +866,7 @@ var dependencies = {
|
|
|
866
866
|
var devDependencies = {
|
|
867
867
|
"@fumadocs/cli": "workspace:*",
|
|
868
868
|
"@tailwindcss/cli": "^4.2.2",
|
|
869
|
-
"@tsdown/css": "^0.21.
|
|
869
|
+
"@tsdown/css": "^0.21.9",
|
|
870
870
|
"@types/hast": "^3.0.4",
|
|
871
871
|
"@types/mdx": "^2.0.13",
|
|
872
872
|
"@types/node": "^25.6.0",
|
|
@@ -877,7 +877,7 @@ var devDependencies = {
|
|
|
877
877
|
"react-medium-image-zoom": "^5.4.3",
|
|
878
878
|
"tailwindcss": "^4.2.2",
|
|
879
879
|
"tsconfig": "workspace:*",
|
|
880
|
-
"tsdown": "0.21.
|
|
880
|
+
"tsdown": "0.21.9",
|
|
881
881
|
"unified": "^11.0.5"
|
|
882
882
|
};
|
|
883
883
|
var peerDependencies = {
|
|
@@ -978,4 +978,4 @@ for (const workspace of workspaces) depVersions[workspace.name] = workspace.vers
|
|
|
978
978
|
//#endregion
|
|
979
979
|
export { copy as a, writeFile$1 as c, templates as i, isCI as n, pick as o, sourceDir as r, tryGitInit as s, depVersions as t };
|
|
980
980
|
|
|
981
|
-
//# sourceMappingURL=constants-
|
|
981
|
+
//# sourceMappingURL=constants-vQsB9E0s.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-vQsB9E0s.js","names":["writeFile","corePkg","mdxPkg","radixPkg","basePkg","versionPkg.dependencies"],"sources":["../src/utils.ts","../../create-app-versions/package.json","../../core/package.json","../../mdx/package.json","../../radix-ui/package.json","../../base-ui/package.json","../src/constants.ts"],"sourcesContent":["import fs from 'node:fs/promises';\nimport path, { join } from 'node:path';\nimport { x } from 'tinyexec';\n\nexport async function writeFile(file: string, content: string) {\n await fs.mkdir(path.dirname(file), { recursive: true });\n await fs.writeFile(file, content);\n}\n\nexport async function copy(\n from: string,\n to: string,\n options: {\n rename?: (s: string) => string;\n filter?: (s: string) => boolean;\n filterDir?: (dir: string) => boolean;\n } = {},\n): Promise<void> {\n const { rename = (s) => s, filterDir = () => true, filter = () => true } = options;\n const stats = await fs.stat(from);\n\n if (stats.isDirectory() && filterDir(from)) {\n const files = await fs.readdir(from);\n\n await Promise.all(\n files.map((file) => copy(path.join(from, file), path.join(to, file), options)),\n );\n }\n\n if (stats.isFile() && filter(from)) {\n to = rename(to);\n await fs.mkdir(path.dirname(to), { recursive: true });\n await fs.copyFile(from, to);\n }\n}\n\nasync function isInGitRepository(cwd: string) {\n const { exitCode } = await x('git', ['rev-parse', '--is-inside-work-tree'], {\n nodeOptions: { cwd },\n });\n\n return exitCode === 0;\n}\n\nasync function isDefaultBranchSet(cwd: string) {\n const { exitCode } = await x('git', ['config', 'init.defaultBranch'], {\n nodeOptions: { cwd },\n });\n\n return exitCode === 0;\n}\n\n/*\nInitialize a Git repo on the project.\n\nBased on https://github.com/vercel/next.js/blob/canary/packages/create-next-app/helpers/git.ts\n*/\nexport async function tryGitInit(cwd: string): Promise<boolean> {\n const { exitCode } = await x('git', ['--version']);\n if (exitCode !== 0) return false;\n\n if (await isInGitRepository(cwd)) return false;\n\n try {\n await x('git', ['init'], {\n throwOnError: true,\n nodeOptions: { cwd },\n });\n\n if (!(await isDefaultBranchSet(cwd))) {\n await x('git', ['checkout', '-b', 'main'], {\n throwOnError: true,\n nodeOptions: {\n cwd,\n },\n });\n }\n\n await x('git', ['add', '-A'], {\n throwOnError: true,\n nodeOptions: {\n cwd,\n },\n });\n\n await x('git', ['commit', '-m', 'Initial commit from Create Fumadocs App'], {\n throwOnError: true,\n nodeOptions: {\n cwd,\n },\n });\n return true;\n } catch {\n await fs.rm(join(cwd, '.git'), { recursive: true, force: true });\n\n return false;\n }\n}\n\nexport function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K> {\n const result: Partial<T> = {};\n\n for (const key of keys) {\n if (key in obj) {\n result[key] = obj[key];\n }\n }\n\n return result as Pick<T, K>;\n}\n","","","","","","import { fileURLToPath } from 'node:url';\nimport versionPkg from '../../create-app-versions/package.json';\nimport * as corePkg from '../../core/package.json';\nimport * as mdxPkg from '../../mdx/package.json';\nimport * as radixPkg from '../../radix-ui/package.json';\nimport * as basePkg from '../../base-ui/package.json';\n\nexport const sourceDir = fileURLToPath(new URL(`../`, import.meta.url).href);\n\nexport const isCI = Boolean(process.env.CI);\n\nexport interface TemplateInfo {\n value:\n | '+next+fuma-docs-mdx'\n | 'waku'\n | 'react-router'\n | 'react-router-spa'\n | 'tanstack-start'\n | 'tanstack-start-spa'\n | '+next+fuma-docs-mdx+static';\n label: string;\n appDir: string;\n /**\n * path to root provider, relative to `appDir``\n */\n rootProviderPath: string;\n hint?: string;\n /**\n * rename files when copying from template\n */\n rename?: (name: string) => string;\n}\n\nexport const templates: TemplateInfo[] = [\n {\n value: '+next+fuma-docs-mdx',\n label: 'Next.js: Fumadocs MDX',\n hint: 'recommended',\n appDir: '',\n rootProviderPath: 'app/layout.tsx',\n },\n {\n value: '+next+fuma-docs-mdx+static',\n label: 'Next.js Static: Fumadocs MDX',\n appDir: '',\n rootProviderPath: 'components/provider.tsx',\n },\n {\n value: 'waku',\n label: 'Waku: Fumadocs MDX',\n appDir: 'src',\n rootProviderPath: 'components/provider.tsx',\n },\n {\n value: 'react-router',\n label: 'React Router: Fumadocs MDX (not RSC)',\n appDir: 'app',\n rootProviderPath: 'root.tsx',\n },\n {\n value: 'react-router-spa',\n label: 'React Router SPA: Fumadocs MDX (not RSC)',\n hint: 'SPA mode allows you to host the site statically, compatible with a CDN.',\n appDir: 'app',\n rootProviderPath: 'root.tsx',\n },\n {\n value: 'tanstack-start',\n label: 'Tanstack Start: Fumadocs MDX (not RSC)',\n appDir: 'src',\n rootProviderPath: 'routes/__root.tsx',\n },\n {\n value: 'tanstack-start-spa',\n label: 'Tanstack Start SPA: Fumadocs MDX (not RSC)',\n hint: 'SPA mode allows you to host the site statically, compatible with a CDN.',\n appDir: 'src',\n rootProviderPath: 'routes/__root.tsx',\n },\n];\n\nconst workspaces = [corePkg, mdxPkg, radixPkg, basePkg];\n\nexport const depVersions = versionPkg.dependencies;\n\nfor (const workspace of workspaces) {\n depVersions[workspace.name as keyof typeof depVersions] = workspace.version;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAIA,eAAsBA,YAAU,MAAc,SAAiB;AAC7D,OAAM,GAAG,MAAM,KAAK,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,CAAC;AACvD,OAAM,GAAG,UAAU,MAAM,QAAQ;;AAGnC,eAAsB,KACpB,MACA,IACA,UAII,EAAE,EACS;CACf,MAAM,EAAE,UAAU,MAAM,GAAG,kBAAkB,MAAM,eAAe,SAAS;CAC3E,MAAM,QAAQ,MAAM,GAAG,KAAK,KAAK;AAEjC,KAAI,MAAM,aAAa,IAAI,UAAU,KAAK,EAAE;EAC1C,MAAM,QAAQ,MAAM,GAAG,QAAQ,KAAK;AAEpC,QAAM,QAAQ,IACZ,MAAM,KAAK,SAAS,KAAK,KAAK,KAAK,MAAM,KAAK,EAAE,KAAK,KAAK,IAAI,KAAK,EAAE,QAAQ,CAAC,CAC/E;;AAGH,KAAI,MAAM,QAAQ,IAAI,OAAO,KAAK,EAAE;AAClC,OAAK,OAAO,GAAG;AACf,QAAM,GAAG,MAAM,KAAK,QAAQ,GAAG,EAAE,EAAE,WAAW,MAAM,CAAC;AACrD,QAAM,GAAG,SAAS,MAAM,GAAG;;;AAI/B,eAAe,kBAAkB,KAAa;CAC5C,MAAM,EAAE,aAAa,MAAM,EAAE,OAAO,CAAC,aAAa,wBAAwB,EAAE,EAC1E,aAAa,EAAE,KAAK,EACrB,CAAC;AAEF,QAAO,aAAa;;AAGtB,eAAe,mBAAmB,KAAa;CAC7C,MAAM,EAAE,aAAa,MAAM,EAAE,OAAO,CAAC,UAAU,qBAAqB,EAAE,EACpE,aAAa,EAAE,KAAK,EACrB,CAAC;AAEF,QAAO,aAAa;;AAQtB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QC;CAAUC;CAAQ;AAEvD,MAAa,cAAcC;AAE3B,KAAK,MAAM,aAAa,WACtB,aAAY,UAAU,QAAoC,UAAU"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as create } from "./src-
|
|
1
|
+
import { t as create } from "./src-CvUtgqq7.js";
|
|
2
2
|
export { create };
|
package/dist/plugins/biome.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as writeFile, o as pick, t as depVersions } from "../constants-
|
|
1
|
+
import { c as writeFile, o as pick, t as depVersions } from "../constants-vQsB9E0s.js";
|
|
2
2
|
import biome_base_default from "./biome.base.js";
|
|
3
3
|
import biome_next_default from "./biome.next.js";
|
|
4
4
|
import path from "node:path";
|
package/dist/plugins/eslint.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as writeFile, o as pick, t as depVersions } from "../constants-
|
|
1
|
+
import { c as writeFile, o as pick, t as depVersions } from "../constants-vQsB9E0s.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region src/plugins/eslint.ts
|
|
4
4
|
const config = `import { defineConfig, globalIgnores } from 'eslint/config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as pick, t as depVersions } from "../constants-
|
|
1
|
+
import { o as pick, t as depVersions } from "../constants-vQsB9E0s.js";
|
|
2
2
|
import { readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region src/plugins/next-use-takumi.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as copy, c as writeFile$1, o as pick, r as sourceDir, t as depVersions } from "../constants-
|
|
1
|
+
import { a as copy, c as writeFile$1, o as pick, r as sourceDir, t as depVersions } from "../constants-vQsB9E0s.js";
|
|
2
2
|
import { n as getCodeValue, t as createSourceFile } from "../shared-DUVwToe1.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
package/dist/plugins/oxlint.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as copy, i as templates, r as sourceDir, s as tryGitInit, t as depVersions } from "./constants-
|
|
1
|
+
import { a as copy, i as templates, r as sourceDir, s as tryGitInit, t as depVersions } from "./constants-vQsB9E0s.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { x } from "tinyexec";
|
|
@@ -84,4 +84,4 @@ async function initPackageJson(projectName, packageJsonPath) {
|
|
|
84
84
|
//#endregion
|
|
85
85
|
export { getPackageManager as n, managers as r, create as t };
|
|
86
86
|
|
|
87
|
-
//# sourceMappingURL=src-
|
|
87
|
+
//# sourceMappingURL=src-CvUtgqq7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"src-
|
|
1
|
+
{"version":3,"file":"src-CvUtgqq7.js","names":[],"sources":["../src/auto-install.ts","../src/index.ts"],"sourcesContent":["import { x } from 'tinyexec';\n\nexport type PackageManager = (typeof managers)[number];\n\nexport const managers = ['npm', 'yarn', 'bun', 'pnpm'] as const;\n\nexport function getPackageManager(): PackageManager {\n const userAgent = process.env.npm_config_user_agent ?? '';\n\n if (userAgent.startsWith('yarn')) {\n return 'yarn';\n }\n\n if (userAgent.startsWith('pnpm')) {\n return 'pnpm';\n }\n\n if (userAgent.startsWith('bun')) {\n return 'bun';\n }\n\n return 'npm';\n}\n\nexport async function autoInstall(manager: PackageManager, dest: string) {\n await x(manager, ['install'], {\n throwOnError: true,\n nodeOptions: {\n env: {\n ...process.env,\n NODE_ENV: 'development',\n DISABLE_OPENCOLLECTIVE: '1',\n },\n cwd: dest,\n },\n });\n}\n","import path from 'node:path';\nimport fs from 'node:fs/promises';\nimport { copy, tryGitInit } from '@/utils';\nimport type { PackageManager } from './auto-install';\nimport { autoInstall } from './auto-install';\nimport { depVersions, sourceDir, type TemplateInfo, templates } from './constants';\n\nexport type Template = TemplateInfo['value'];\nexport interface Options {\n outputDir: string;\n template: Template;\n\n /**\n * the package manager to use\n *\n * @defaultValue 'npm'\n */\n packageManager?: PackageManager;\n\n installDeps?: boolean;\n initializeGit?: boolean;\n log?: (message: string) => void;\n plugins?: TemplatePlugin[];\n}\n\nexport interface TemplatePluginContext {\n template: TemplateInfo;\n log: (message: string) => void;\n /**\n * output directory\n */\n dest: string;\n\n /**\n * output directory for app code (e.g. under `/src`)\n */\n appDir: string;\n}\n\nexport type PackageJsonType = {\n name?: string;\n version?: string;\n private?: boolean;\n scripts?: Record<string, string>;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n} & Record<string, unknown>;\n\ntype Awaitable<T> = T | Promise<T>;\n\nexport interface TemplatePlugin {\n template?: (\n this: Pick<TemplatePluginContext, 'dest'>,\n info: TemplateInfo,\n ) => Awaitable<void | TemplateInfo>;\n packageJson?: (\n this: TemplatePluginContext,\n packageJson: PackageJsonType,\n ) => Awaitable<void | PackageJsonType>;\n afterWrite?: (this: TemplatePluginContext) => Awaitable<void>;\n readme?: (this: TemplatePluginContext, content: string) => Awaitable<void | string>;\n}\n\nexport async function create(createOptions: Options): Promise<void> {\n const {\n outputDir,\n plugins = [],\n packageManager = 'npm',\n initializeGit = false,\n installDeps = false,\n log = console.log,\n } = createOptions;\n\n let template = templates.find((item) => item.value === createOptions.template)!;\n for (const plugin of plugins) {\n template = (await plugin.template?.call({ dest: outputDir }, template)) ?? template;\n }\n\n const appDir = path.join(outputDir, template.appDir);\n const projectName = path.basename(outputDir);\n const pluginContext: TemplatePluginContext = {\n template,\n dest: outputDir,\n log,\n appDir,\n };\n\n await copy(path.join(sourceDir, 'template', template.value), outputDir, {\n rename(file) {\n file = file.replace('example.gitignore', '.gitignore');\n\n return template.rename?.(file) ?? file;\n },\n });\n\n const packageJsonPath = path.join(outputDir, 'package.json');\n let packageJson = await initPackageJson(projectName, packageJsonPath);\n for (const plugin of plugins) {\n packageJson = (await plugin.packageJson?.call(pluginContext, packageJson)) ?? packageJson;\n }\n await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));\n\n const readmePath = path.join(outputDir, 'README.md');\n let readme = `# ${projectName}\\n\\n${await fs.readFile(readmePath)}`;\n for (const plugin of plugins) {\n readme = (await plugin.readme?.call(pluginContext, readme)) ?? readme;\n }\n await fs.writeFile(readmePath, readme);\n\n for (const plugin of plugins) {\n await plugin.afterWrite?.call(pluginContext);\n }\n\n if (installDeps) {\n try {\n await autoInstall(packageManager, outputDir);\n log('Installed dependencies');\n } catch (err) {\n log(`Failed to install dependencies: ${err}`);\n }\n }\n\n if (initializeGit && (await tryGitInit(outputDir))) {\n log('Initialized Git repository');\n }\n}\n\nasync function initPackageJson(\n projectName: string,\n packageJsonPath: string,\n): Promise<PackageJsonType> {\n function replaceWorkspaceDeps(deps: Record<string, string> = {}) {\n for (const k in deps) {\n if (deps[k].startsWith('workspace:') && k in depVersions) {\n deps[k] = depVersions[k as keyof typeof depVersions];\n }\n }\n\n return deps;\n }\n\n const packageJson: PackageJsonType = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'));\n\n return {\n ...packageJson,\n name: projectName,\n scripts: {\n ...packageJson.scripts,\n postinstall: 'fumadocs-mdx',\n },\n dependencies: replaceWorkspaceDeps(packageJson.dependencies),\n devDependencies: replaceWorkspaceDeps(packageJson.devDependencies),\n };\n}\n"],"mappings":";;;;;AAIA,MAAa,WAAW;CAAC;CAAO;CAAQ;CAAO;CAAO;AAEtD,SAAgB,oBAAoC;CAClD,MAAM,YAAY,QAAQ,IAAI,yBAAyB;AAEvD,KAAI,UAAU,WAAW,OAAO,CAC9B,QAAO;AAGT,KAAI,UAAU,WAAW,OAAO,CAC9B,QAAO;AAGT,KAAI,UAAU,WAAW,MAAM,CAC7B,QAAO;AAGT,QAAO;;AAGT,eAAsB,YAAY,SAAyB,MAAc;AACvE,OAAM,EAAE,SAAS,CAAC,UAAU,EAAE;EAC5B,cAAc;EACd,aAAa;GACX,KAAK;IACH,GAAG,QAAQ;IACX,UAAU;IACV,wBAAwB;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;UACtB,KAAK;AACZ,MAAI,mCAAmC,MAAM;;AAIjD,KAAI,iBAAkB,MAAM,WAAW,UAAU,CAC/C,KAAI,6BAA6B;;AAIrC,eAAe,gBACb,aACA,iBAC0B;CAC1B,SAAS,qBAAqB,OAA+B,EAAE,EAAE;AAC/D,OAAK,MAAM,KAAK,KACd,KAAI,KAAK,GAAG,WAAW,aAAa,IAAI,KAAK,YAC3C,MAAK,KAAK,YAAY;AAI1B,SAAO;;CAGT,MAAM,cAA+B,KAAK,MAAM,MAAM,GAAG,SAAS,iBAAiB,QAAQ,CAAC;AAE5F,QAAO;EACL,GAAG;EACH,MAAM;EACN,SAAS;GACP,GAAG,YAAY;GACf,aAAa;GACd;EACD,cAAc,qBAAqB,YAAY,aAAa;EAC5D,iBAAiB,qBAAqB,YAAY,gBAAgB;EACnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fumadocs-app",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.97",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@types/cross-spawn": "^6.0.6",
|
|
47
47
|
"@types/node": "25.6.0",
|
|
48
48
|
"tinyglobby": "^0.2.16",
|
|
49
|
-
"tsdown": "0.21.
|
|
50
|
-
"typescript": "^6.0.
|
|
49
|
+
"tsdown": "0.21.9",
|
|
50
|
+
"typescript": "^6.0.3",
|
|
51
51
|
"tsconfig": "0.0.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { docs } from 'collections/server';
|
|
2
|
-
import {
|
|
2
|
+
import { loader } from 'fumadocs-core/source';
|
|
3
3
|
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
|
|
4
4
|
import { docsContentRoute, docsImageRoute, docsRoute } from './shared';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ export const source = loader({
|
|
|
10
10
|
plugins: [lucideIconsPlugin()],
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
export function getPageImage(page:
|
|
13
|
+
export function getPageImage(page: (typeof source)['$inferPage']) {
|
|
14
14
|
const segments = [...page.slugs, 'image.png'];
|
|
15
15
|
|
|
16
16
|
return {
|
|
@@ -19,7 +19,7 @@ export function getPageImage(page: InferPageType<typeof source>) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export function getPageMarkdownUrl(page:
|
|
22
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
23
23
|
const segments = [...page.slugs, 'content.md'];
|
|
24
24
|
|
|
25
25
|
return {
|
|
@@ -28,7 +28,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export async function getLLMText(page:
|
|
31
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
32
32
|
const processed = await page.data.getText('processed');
|
|
33
33
|
|
|
34
34
|
return `# ${page.data.title} (${page.url})
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"fumadocs-mdx": "workspace:*",
|
|
14
14
|
"fumadocs-ui": "workspace:*",
|
|
15
15
|
"lucide-react": "^1.8.0",
|
|
16
|
-
"next": "16.2.
|
|
16
|
+
"next": "16.2.4",
|
|
17
17
|
"react": "^19.2.5",
|
|
18
18
|
"react-dom": "^19.2.5",
|
|
19
19
|
"tailwind-merge": "^3.5.0"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/node": "^25.6.0",
|
|
25
25
|
"@types/react": "^19.2.14",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
|
-
"postcss": "^8.5.
|
|
27
|
+
"postcss": "^8.5.10",
|
|
28
28
|
"tailwindcss": "^4.2.2",
|
|
29
|
-
"typescript": "^6.0.
|
|
29
|
+
"typescript": "^6.0.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
|
|
2
2
|
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
|
|
3
3
|
|
|
4
|
-
// You can
|
|
4
|
+
// You can customize Zod schemas for frontmatter and `meta.json` here
|
|
5
5
|
// see https://fumadocs.dev/docs/mdx/collections
|
|
6
6
|
export const docs = defineDocs({
|
|
7
7
|
dir: 'content/docs',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { docs } from 'collections/server';
|
|
2
|
-
import {
|
|
2
|
+
import { loader } from 'fumadocs-core/source';
|
|
3
3
|
import { docsContentRoute, docsImageRoute, docsRoute } from './shared';
|
|
4
4
|
|
|
5
5
|
// See https://fumadocs.dev/docs/headless/source-api for more info
|
|
@@ -9,7 +9,7 @@ export const source = loader({
|
|
|
9
9
|
plugins: [],
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
export function getPageImage(page:
|
|
12
|
+
export function getPageImage(page: (typeof source)['$inferPage']) {
|
|
13
13
|
const segments = [...page.slugs, 'image.png'];
|
|
14
14
|
|
|
15
15
|
return {
|
|
@@ -18,7 +18,7 @@ export function getPageImage(page: InferPageType<typeof source>) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export function getPageMarkdownUrl(page:
|
|
21
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
22
22
|
const segments = [...page.slugs, 'content.md'];
|
|
23
23
|
|
|
24
24
|
return {
|
|
@@ -27,7 +27,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export async function getLLMText(page:
|
|
30
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
31
31
|
const processed = await page.data.getText('processed');
|
|
32
32
|
|
|
33
33
|
return `# ${page.data.title} (${page.url})
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"fumadocs-mdx": "workspace:*",
|
|
15
15
|
"fumadocs-ui": "workspace:*",
|
|
16
16
|
"lucide-react": "^1.8.0",
|
|
17
|
-
"next": "16.2.
|
|
17
|
+
"next": "16.2.4",
|
|
18
18
|
"react": "^19.2.5",
|
|
19
19
|
"react-dom": "^19.2.5",
|
|
20
20
|
"tailwind-merge": "^3.5.0"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@types/node": "^25.6.0",
|
|
26
26
|
"@types/react": "^19.2.14",
|
|
27
27
|
"@types/react-dom": "^19.2.3",
|
|
28
|
-
"postcss": "^8.5.
|
|
28
|
+
"postcss": "^8.5.10",
|
|
29
29
|
"serve": "^14.2.6",
|
|
30
30
|
"tailwindcss": "^4.2.2",
|
|
31
|
-
"typescript": "^6.0.
|
|
31
|
+
"typescript": "^6.0.3"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
|
|
2
2
|
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
|
|
3
3
|
|
|
4
|
-
// You can
|
|
4
|
+
// You can customize Zod schemas for frontmatter and `meta.json` here
|
|
5
5
|
// see https://fumadocs.dev/docs/mdx/collections
|
|
6
6
|
export const docs = defineDocs({
|
|
7
7
|
dir: 'content/docs',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loader
|
|
1
|
+
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import { docs } from 'collections/server';
|
|
3
3
|
import { docsContentRoute, docsRoute } from './shared';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export const source = loader({
|
|
|
7
7
|
baseUrl: docsRoute,
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
export function getPageMarkdownUrl(page:
|
|
10
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
11
11
|
const segments = [...page.slugs, 'content.md'];
|
|
12
12
|
|
|
13
13
|
return {
|
|
@@ -16,7 +16,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export async function getLLMText(page:
|
|
19
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
20
20
|
const processed = await page.data.getText('processed');
|
|
21
21
|
|
|
22
22
|
return `# ${page.data.title} (${page.url})
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@react-router/node": "^7.14.1",
|
|
13
13
|
"@react-router/serve": "^7.14.1",
|
|
14
|
-
"@takumi-rs/image-response": "^1.0.
|
|
14
|
+
"@takumi-rs/image-response": "^1.0.14",
|
|
15
15
|
"fumadocs-core": "workspace:*",
|
|
16
16
|
"fumadocs-mdx": "workspace:*",
|
|
17
17
|
"fumadocs-ui": "workspace:*",
|
|
18
|
-
"isbot": "^5.1.
|
|
18
|
+
"isbot": "^5.1.39",
|
|
19
19
|
"lucide-react": "^1.8.0",
|
|
20
20
|
"react": "^19.2.5",
|
|
21
21
|
"react-dom": "^19.2.5",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@types/react-dom": "^19.2.3",
|
|
32
32
|
"react-router-devtools": "^6.2.0",
|
|
33
33
|
"tailwindcss": "^4.2.2",
|
|
34
|
-
"typescript": "^6.0.
|
|
34
|
+
"typescript": "^6.0.3",
|
|
35
35
|
"vite": "^8.0.8"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loader
|
|
1
|
+
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import { docs } from 'collections/server';
|
|
3
3
|
import { docsContentRoute, docsRoute } from './shared';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export const source = loader({
|
|
|
7
7
|
baseUrl: docsRoute,
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
export function getPageMarkdownUrl(page:
|
|
10
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
11
11
|
const segments = [...page.slugs, 'content.md'];
|
|
12
12
|
|
|
13
13
|
return {
|
|
@@ -16,7 +16,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export async function getLLMText(page:
|
|
19
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
20
20
|
const processed = await page.data.getText('processed');
|
|
21
21
|
|
|
22
22
|
return `# ${page.data.title} (${page.url})
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"fumadocs-core": "workspace:*",
|
|
15
15
|
"fumadocs-mdx": "workspace:*",
|
|
16
16
|
"fumadocs-ui": "workspace:*",
|
|
17
|
-
"isbot": "^5.1.
|
|
17
|
+
"isbot": "^5.1.39",
|
|
18
18
|
"lucide-react": "^1.8.0",
|
|
19
19
|
"react": "^19.2.5",
|
|
20
20
|
"react-dom": "^19.2.5",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-router-devtools": "^6.2.0",
|
|
32
32
|
"serve": "^14.2.6",
|
|
33
33
|
"tailwindcss": "^4.2.2",
|
|
34
|
-
"typescript": "^6.0.
|
|
34
|
+
"typescript": "^6.0.3",
|
|
35
35
|
"vite": "^8.0.8"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"types:check": "fumadocs-mdx && tsc --noEmit"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@tanstack/react-router": "1.168.
|
|
14
|
+
"@tanstack/react-router": "1.168.23",
|
|
15
15
|
"@tanstack/react-router-devtools": "1.166.13",
|
|
16
|
-
"@tanstack/react-start": "1.167.
|
|
16
|
+
"@tanstack/react-start": "1.167.42",
|
|
17
17
|
"fumadocs-core": "workspace:*",
|
|
18
18
|
"fumadocs-mdx": "workspace:*",
|
|
19
19
|
"fumadocs-ui": "workspace:*",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@types/react": "^19.2.14",
|
|
31
31
|
"@types/react-dom": "^19.2.3",
|
|
32
32
|
"@vitejs/plugin-react": "^6.0.1",
|
|
33
|
-
"nitro": "
|
|
33
|
+
"nitro": "3.0.260415-beta",
|
|
34
34
|
"tailwindcss": "^4.2.2",
|
|
35
|
-
"typescript": "^6.0.
|
|
35
|
+
"typescript": "^6.0.3"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import { docs } from 'collections/server';
|
|
3
3
|
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
|
|
4
4
|
import { docsContentRoute, docsRoute } from './shared';
|
|
@@ -9,7 +9,7 @@ export const source = loader({
|
|
|
9
9
|
plugins: [lucideIconsPlugin()],
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
export function getPageMarkdownUrl(page:
|
|
12
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
13
13
|
const segments = [...page.slugs, 'content.md'];
|
|
14
14
|
|
|
15
15
|
return {
|
|
@@ -18,7 +18,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export async function getLLMText(page:
|
|
21
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
22
22
|
const processed = await page.data.getText('processed');
|
|
23
23
|
|
|
24
24
|
return `# ${page.data.title} (${page.url})
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@orama/orama": "^3.1.18",
|
|
15
|
-
"@tanstack/react-router": "1.168.
|
|
15
|
+
"@tanstack/react-router": "1.168.23",
|
|
16
16
|
"@tanstack/react-router-devtools": "1.166.13",
|
|
17
|
-
"@tanstack/react-start": "1.167.
|
|
17
|
+
"@tanstack/react-start": "1.167.42",
|
|
18
18
|
"@tanstack/start-static-server-functions": "1.166.33",
|
|
19
19
|
"fumadocs-core": "workspace:*",
|
|
20
20
|
"fumadocs-mdx": "workspace:*",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@types/react": "^19.2.14",
|
|
33
33
|
"@types/react-dom": "^19.2.3",
|
|
34
34
|
"@vitejs/plugin-react": "^6.0.1",
|
|
35
|
-
"nitro": "
|
|
35
|
+
"nitro": "3.0.260415-beta",
|
|
36
36
|
"serve": "^14.2.6",
|
|
37
37
|
"srvx": "^0.11.15",
|
|
38
38
|
"tailwindcss": "^4.2.2",
|
|
39
|
-
"typescript": "^6.0.
|
|
39
|
+
"typescript": "^6.0.3"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
|
|
3
3
|
import { docs } from 'collections/server';
|
|
4
4
|
import { docsContentRoute, docsRoute } from './shared';
|
|
@@ -9,7 +9,7 @@ export const source = loader({
|
|
|
9
9
|
plugins: [lucideIconsPlugin()],
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
export function getPageMarkdownUrl(page:
|
|
12
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
13
13
|
const segments = [...page.slugs, 'content.md'];
|
|
14
14
|
|
|
15
15
|
return {
|
|
@@ -18,7 +18,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export async function getLLMText(page:
|
|
21
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
22
22
|
const processed = await page.data.getText('processed');
|
|
23
23
|
|
|
24
24
|
return `# ${page.data.title} (${page.url})
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"types:check": "fumadocs-mdx && tsc --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@takumi-rs/image-response": "^1.0.
|
|
13
|
+
"@takumi-rs/image-response": "^1.0.14",
|
|
14
14
|
"fumadocs-core": "workspace:*",
|
|
15
15
|
"fumadocs-mdx": "workspace:*",
|
|
16
16
|
"fumadocs-ui": "workspace:*",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/react": "^19.2.14",
|
|
29
29
|
"@types/react-dom": "^19.2.3",
|
|
30
30
|
"tailwindcss": "^4.2.2",
|
|
31
|
-
"typescript": "^6.0.
|
|
31
|
+
"typescript": "^6.0.3",
|
|
32
32
|
"vite": "^8.0.8"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
|
|
2
2
|
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
|
|
3
3
|
|
|
4
|
-
// You can
|
|
4
|
+
// You can customize Zod schemas for frontmatter and `meta.json` here
|
|
5
5
|
// see https://fumadocs.dev/docs/mdx/collections
|
|
6
6
|
export const docs = defineDocs({
|
|
7
7
|
dir: 'content/docs',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
|
|
3
3
|
import { docs } from 'collections/server';
|
|
4
4
|
import { docsContentRoute, docsImageRoute, docsRoute } from './shared';
|
|
@@ -18,7 +18,7 @@ export function getPageImage(slugs: string[]) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export function getPageMarkdownUrl(page:
|
|
21
|
+
export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) {
|
|
22
22
|
const segments = [...page.slugs, 'content.md'];
|
|
23
23
|
|
|
24
24
|
return {
|
|
@@ -27,7 +27,7 @@ export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export async function getLLMText(page:
|
|
30
|
+
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
|
31
31
|
const processed = await page.data.getText('processed');
|
|
32
32
|
|
|
33
33
|
return `# ${page.data.title} (${page.url})
|