create-fumadocs-app 15.7.7 → 15.7.9

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.
@@ -59,7 +59,7 @@ async function tryGitInit(cwd2) {
59
59
  }
60
60
 
61
61
  // src/versions.js
62
- var versions = { "fumadocs-core": "15.7.7", "fumadocs-ui": "15.7.7", "fumadocs-mdx": "11.8.2", "@fumadocs/mdx-remote": "1.4.0", "@fumadocs/content-collections": "1.2.2" };
62
+ var versions = { "fumadocs-core": "15.7.9", "fumadocs-ui": "15.7.9", "fumadocs-mdx": "11.8.3", "@fumadocs/mdx-remote": "1.4.0", "@fumadocs/content-collections": "1.2.2" };
63
63
 
64
64
  // ../create-app-versions/package.json
65
65
  var package_default = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  create,
3
3
  templates
4
- } from "./chunk-4VGHG4L7.js";
4
+ } from "./chunk-YD5ULJXR.js";
5
5
  export {
6
6
  create,
7
7
  templates
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getPackageManager,
6
6
  managers,
7
7
  templates
8
- } from "./chunk-4VGHG4L7.js";
8
+ } from "./chunk-YD5ULJXR.js";
9
9
 
10
10
  // src/index.ts
11
11
  import fs from "fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fumadocs-app",
3
- "version": "15.7.7",
3
+ "version": "15.7.9",
4
4
  "description": "Create a new documentation site with Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -31,8 +31,8 @@
31
31
  "@types/node": "24.3.0",
32
32
  "tinyglobby": "^0.2.14",
33
33
  "typescript": "^5.9.2",
34
- "tsconfig": "0.0.0",
35
- "eslint-config-custom": "0.0.0"
34
+ "eslint-config-custom": "0.0.0",
35
+ "tsconfig": "0.0.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=18.17.0"
@@ -1,6 +1,6 @@
1
1
  import type { Route } from './+types/search';
2
2
  import { createFromSource } from 'fumadocs-core/search/server';
3
- import { source } from '@/source';
3
+ import { source } from '@/lib/source';
4
4
 
5
5
  const server = createFromSource(source, {
6
6
  // https://docs.orama.com/docs/orama-js/supported-languages
@@ -1,5 +1,5 @@
1
1
  import { loader } from 'fumadocs-core/source';
2
- import { create, docs } from '../source.generated';
2
+ import { create, docs } from '../../source.generated';
3
3
 
4
4
  export const source = loader({
5
5
  source: await create.sourceAsync(docs.doc, docs.meta),
@@ -18,13 +18,13 @@
18
18
  "waku": "^0.26.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@tailwindcss/postcss": "^4.1.12",
21
+ "@tailwindcss/vite": "^4.1.12",
22
22
  "@types/node": "^24.3.0",
23
23
  "@types/react": "^19.1.12",
24
24
  "@types/react-dom": "^19.1.9",
25
- "postcss": "^8.5.6",
26
25
  "tailwindcss": "^4.1.12",
27
26
  "typescript": "^5.9.2",
28
- "vite": "^7.1.3"
27
+ "vite": "^7.1.3",
28
+ "vite-tsconfig-paths": "^5.1.4"
29
29
  }
30
30
  }
@@ -0,0 +1,9 @@
1
+ import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
2
+
3
+ export function baseOptions(): BaseLayoutProps {
4
+ return {
5
+ nav: {
6
+ title: 'Waku',
7
+ },
8
+ };
9
+ }
@@ -1,5 +1,5 @@
1
1
  import { loader } from 'fumadocs-core/source';
2
- import { create, docs } from '../source.generated.js';
2
+ import { create, docs } from '../../source.generated.js';
3
3
 
4
4
  export const source = loader({
5
5
  source: await create.sourceAsync(docs.doc, docs.meta),
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ import { baseOptions } from '@/lib/layout.shared';
3
+ import { HomeLayout } from 'fumadocs-ui/layouts/home';
4
+
5
+ export default function Layout({ children }: { children: ReactNode }) {
6
+ return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
7
+ }
8
+
9
+ export const getConfig = async () => {
10
+ return {
11
+ render: 'static',
12
+ };
13
+ };
@@ -1,14 +1,8 @@
1
- import { HomeLayout } from 'fumadocs-ui/layouts/home';
2
1
  import { Link } from 'waku';
3
2
 
4
3
  export default function Home() {
5
4
  return (
6
- <HomeLayout
7
- nav={{
8
- title: 'Waku',
9
- }}
10
- className="text-center py-32 justify-center"
11
- >
5
+ <div className="flex-1 flex flex-col items-center justify-center text-center">
12
6
  <h1 className="font-medium text-xl mb-4">Fumadocs on Waku.</h1>
13
7
  <Link
14
8
  to="/docs"
@@ -16,7 +10,7 @@ export default function Home() {
16
10
  >
17
11
  Open Docs
18
12
  </Link>
19
- </HomeLayout>
13
+ </div>
20
14
  );
21
15
  }
22
16
 
@@ -1,13 +1,8 @@
1
- import '../styles/globals.css';
1
+ import '@/styles/globals.css';
2
2
  import type { ReactNode } from 'react';
3
- import { Provider } from '../components/provider';
3
+ import { Provider } from '@/components/provider';
4
4
 
5
- export default function RootLayout({
6
- children,
7
- }: {
8
- children: ReactNode;
9
- path: string;
10
- }) {
5
+ export default function RootLayout({ children }: { children: ReactNode }) {
11
6
  return <Provider>{children}</Provider>;
12
7
  }
13
8
 
@@ -1,4 +1,4 @@
1
1
  import { createFromSource } from 'fumadocs-core/search/server';
2
- import { source } from '../../source';
2
+ import { source } from '@/lib/source';
3
3
 
4
4
  export const { GET } = createFromSource(source);
@@ -1,4 +1,4 @@
1
- import { source } from '../../source';
1
+ import { source } from '@/lib/source';
2
2
  import { PageProps } from 'waku/router';
3
3
  import defaultMdxComponents from 'fumadocs-ui/mdx';
4
4
  import {
@@ -24,7 +24,7 @@ export default function DocPage({ slugs }: PageProps<'/docs/[...slugs]'>) {
24
24
  );
25
25
  }
26
26
 
27
- const MDX = page.data.default;
27
+ const MDX = page.data.body;
28
28
  return (
29
29
  <DocsPage toc={page.data.toc}>
30
30
  <DocsTitle>{page.data.title}</DocsTitle>
@@ -41,7 +41,9 @@ export default function DocPage({ slugs }: PageProps<'/docs/[...slugs]'>) {
41
41
  }
42
42
 
43
43
  export async function getConfig() {
44
- const pages = source.getPages().map((page) => page.slugs);
44
+ const pages = source
45
+ .generateParams()
46
+ .map((item) => (item.lang ? [item.lang, ...item.slug] : item.slug));
45
47
 
46
48
  return {
47
49
  render: 'static' as const,
@@ -1,20 +1,11 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { DocsLayout } from 'fumadocs-ui/layouts/docs';
3
- import { source } from '../../source';
3
+ import { source } from '@/lib/source';
4
+ import { baseOptions } from '@/lib/layout.shared';
4
5
 
5
- export default function Layout({
6
- children,
7
- }: {
8
- children: ReactNode;
9
- path: string;
10
- }) {
6
+ export default function Layout({ children }: { children: ReactNode }) {
11
7
  return (
12
- <DocsLayout
13
- tree={source.pageTree}
14
- nav={{
15
- title: 'Waku',
16
- }}
17
- >
8
+ <DocsLayout {...baseOptions()} tree={source.pageTree}>
18
9
  {children}
19
10
  </DocsLayout>
20
11
  );
@@ -13,7 +13,10 @@
13
13
  "strict": true,
14
14
  "skipLibCheck": true,
15
15
  "noUncheckedIndexedAccess": true,
16
- "noEmit": true
16
+ "noEmit": true,
17
+ "paths": {
18
+ "@/*": ["./src/*"]
19
+ }
17
20
  },
18
21
  "exclude": ["node_modules", "dist"]
19
22
  }
@@ -1,10 +1,11 @@
1
1
  import { defineConfig } from 'waku/config';
2
2
  import mdx from 'fumadocs-mdx/vite';
3
3
  import * as MdxConfig from './source.config.js';
4
+ import tailwindcss from '@tailwindcss/vite';
5
+ import tsconfigPaths from 'vite-tsconfig-paths';
4
6
 
5
7
  export default defineConfig({
6
8
  vite: {
7
- // avoid type problems due to Vite version conflicts
8
- plugins: [mdx(MdxConfig) as any],
9
+ plugins: [tailwindcss(), mdx(MdxConfig), tsconfigPaths()],
9
10
  },
10
11
  });
@@ -1,5 +0,0 @@
1
- export default {
2
- plugins: {
3
- '@tailwindcss/postcss': {},
4
- },
5
- };