create-fumadocs-app 16.0.2 → 16.0.4

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.
Files changed (41) hide show
  1. package/dist/bin.d.ts +1 -0
  2. package/dist/bin.js +215 -0
  3. package/dist/chunk-BEZTHMLF.js +51 -0
  4. package/dist/chunk-JCFTHRDR.js +50 -0
  5. package/dist/chunk-UXPTMGXV.js +130 -0
  6. package/dist/chunk-ZWEHS3HT.js +191 -0
  7. package/dist/index.d.ts +63 -1
  8. package/dist/index.js +5 -283
  9. package/dist/plugins/biome.base.d.ts +45 -0
  10. package/dist/plugins/biome.base.js +18 -0
  11. package/dist/plugins/biome.d.ts +5 -0
  12. package/dist/plugins/biome.js +43 -0
  13. package/dist/plugins/biome.next.d.ts +49 -0
  14. package/dist/plugins/biome.next.js +18 -0
  15. package/dist/plugins/eslint.d.ts +5 -0
  16. package/dist/plugins/eslint.js +61 -0
  17. package/dist/plugins/next-use-src.d.ts +8 -0
  18. package/dist/plugins/next-use-src.js +39 -0
  19. package/dist/plugins/orama-cloud.d.ts +5 -0
  20. package/dist/plugins/orama-cloud.js +359 -0
  21. package/package.json +19 -8
  22. package/template/react-router/react-router.config.ts +3 -3
  23. package/template/react-router-spa/react-router.config.ts +7 -2
  24. package/dist/chunk-6C2B326N.js +0 -372
  25. package/dist/create-app.d.ts +0 -61
  26. package/dist/create-app.js +0 -6
  27. package/template/+next+biome/biome.json +0 -34
  28. package/template/+next+eslint/eslint.config.mjs +0 -26
  29. package/template/+orama-cloud/+next+fuma-docs-mdx/app/layout.tsx +0 -18
  30. package/template/+orama-cloud/+next+fuma-docs-mdx/app/static.json/route.ts +0 -7
  31. package/template/+orama-cloud/react-router/app/root.tsx +0 -76
  32. package/template/+orama-cloud/react-router/app/routes/static.ts +0 -5
  33. package/template/+orama-cloud/react-router/app/routes.ts +0 -8
  34. package/template/+orama-cloud/react-router-spa/app/root.tsx +0 -76
  35. package/template/+orama-cloud/react-router-spa/app/routes/static.ts +0 -5
  36. package/template/+orama-cloud/react-router-spa/app/routes.ts +0 -8
  37. package/template/+orama-cloud/tanstack-start/src/routes/__root.tsx +0 -51
  38. package/template/+orama-cloud/tanstack-start/src/routes/static[.]json.ts +0 -10
  39. package/template/+orama-cloud/tanstack-start/vite.config.ts +0 -27
  40. package/template/+orama-cloud/waku/src/components/provider.tsx +0 -8
  41. package/template/+orama-cloud/waku/src/pages/api/static.json.ts +0 -9
@@ -1,5 +0,0 @@
1
- import { exportSearchIndexes } from '@/lib/export-search-indexes';
2
-
3
- export async function loader() {
4
- return Response.json(await exportSearchIndexes());
5
- }
@@ -1,8 +0,0 @@
1
- import { index, route, type RouteConfig } from '@react-router/dev/routes';
2
-
3
- export default [
4
- index('routes/home.tsx'),
5
- route('docs/*', 'docs/page.tsx'),
6
- route('api/search', 'docs/search.ts'),
7
- route('static.json', 'routes/static.ts'),
8
- ] satisfies RouteConfig;
@@ -1,51 +0,0 @@
1
- import {
2
- createRootRoute,
3
- HeadContent,
4
- Outlet,
5
- Scripts,
6
- } from '@tanstack/react-router';
7
- import * as React from 'react';
8
- import appCss from '@/styles/app.css?url';
9
- import { RootProvider } from 'fumadocs-ui/provider/tanstack';
10
- import SearchDialog from '@/components/search';
11
-
12
- export const Route = createRootRoute({
13
- head: () => ({
14
- meta: [
15
- {
16
- charSet: 'utf-8',
17
- },
18
- {
19
- name: 'viewport',
20
- content: 'width=device-width, initial-scale=1',
21
- },
22
- {
23
- title: 'Fumadocs on TanStack Start',
24
- },
25
- ],
26
- links: [{ rel: 'stylesheet', href: appCss }],
27
- }),
28
- component: RootComponent,
29
- });
30
-
31
- function RootComponent() {
32
- return (
33
- <RootDocument>
34
- <Outlet />
35
- </RootDocument>
36
- );
37
- }
38
-
39
- function RootDocument({ children }: { children: React.ReactNode }) {
40
- return (
41
- <html suppressHydrationWarning>
42
- <head>
43
- <HeadContent />
44
- </head>
45
- <body className="flex flex-col min-h-screen">
46
- <RootProvider search={{ SearchDialog }}>{children}</RootProvider>
47
- <Scripts />
48
- </body>
49
- </html>
50
- );
51
- }
@@ -1,10 +0,0 @@
1
- import { createFileRoute } from '@tanstack/react-router';
2
- import { exportSearchIndexes } from '@/lib/export-search-indexes';
3
-
4
- export const Route = createFileRoute('/static.json')({
5
- server: {
6
- handlers: {
7
- GET: async () => Response.json(await exportSearchIndexes()),
8
- },
9
- },
10
- });
@@ -1,27 +0,0 @@
1
- import react from '@vitejs/plugin-react';
2
- import { tanstackStart } from '@tanstack/react-start/plugin/vite';
3
- import { defineConfig } from 'vite';
4
- import tsConfigPaths from 'vite-tsconfig-paths';
5
- import tailwindcss from '@tailwindcss/vite';
6
- import mdx from 'fumadocs-mdx/vite';
7
-
8
- export default defineConfig({
9
- server: {
10
- port: 3000,
11
- },
12
- plugins: [
13
- mdx(await import('./source.config')),
14
- tailwindcss(),
15
- tsConfigPaths({
16
- projects: ['./tsconfig.json'],
17
- }),
18
- tanstackStart({
19
- prerender: {
20
- enabled: true,
21
- // pre-render the static file
22
- pages: [{ path: '/static.json' }],
23
- },
24
- }),
25
- react(),
26
- ],
27
- });
@@ -1,8 +0,0 @@
1
- 'use client';
2
- import type { ReactNode } from 'react';
3
- import { RootProvider } from 'fumadocs-ui/provider/waku';
4
- import SearchDialog from '@/components/search';
5
-
6
- export function Provider({ children }: { children: ReactNode }) {
7
- return <RootProvider search={{ SearchDialog }}>{children}</RootProvider>;
8
- }
@@ -1,9 +0,0 @@
1
- import { exportSearchIndexes } from '@/lib/export-search-indexes';
2
-
3
- export async function GET() {
4
- return Response.json(await exportSearchIndexes());
5
- }
6
-
7
- export const getConfig = () => ({
8
- render: 'static',
9
- });