@hanzo/docs-create-app 16.0.50

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 (204) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/auto-install-CenyMuK7.js +33 -0
  4. package/dist/auto-install-CenyMuK7.js.map +1 -0
  5. package/dist/bin.d.ts +1 -0
  6. package/dist/bin.js +165 -0
  7. package/dist/bin.js.map +1 -0
  8. package/dist/constants-BkYWkLHa.d.ts +22 -0
  9. package/dist/constants-BkYWkLHa.d.ts.map +1 -0
  10. package/dist/constants-CbNzssp2.js +957 -0
  11. package/dist/constants-CbNzssp2.js.map +1 -0
  12. package/dist/index.d.ts +49 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +60 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/plugins/biome.base.d.ts +40 -0
  17. package/dist/plugins/biome.base.d.ts.map +1 -0
  18. package/dist/plugins/biome.base.js +38 -0
  19. package/dist/plugins/biome.base.js.map +1 -0
  20. package/dist/plugins/biome.d.ts +7 -0
  21. package/dist/plugins/biome.d.ts.map +1 -0
  22. package/dist/plugins/biome.js +33 -0
  23. package/dist/plugins/biome.js.map +1 -0
  24. package/dist/plugins/biome.next.d.ts +41 -0
  25. package/dist/plugins/biome.next.d.ts.map +1 -0
  26. package/dist/plugins/biome.next.js +44 -0
  27. package/dist/plugins/biome.next.js.map +1 -0
  28. package/dist/plugins/eslint.d.ts +7 -0
  29. package/dist/plugins/eslint.d.ts.map +1 -0
  30. package/dist/plugins/eslint.js +47 -0
  31. package/dist/plugins/eslint.js.map +1 -0
  32. package/dist/plugins/next-use-src.d.ts +10 -0
  33. package/dist/plugins/next-use-src.d.ts.map +1 -0
  34. package/dist/plugins/next-use-src.js +37 -0
  35. package/dist/plugins/next-use-src.js.map +1 -0
  36. package/dist/plugins/orama-cloud.d.ts +7 -0
  37. package/dist/plugins/orama-cloud.d.ts.map +1 -0
  38. package/dist/plugins/orama-cloud.js +296 -0
  39. package/dist/plugins/orama-cloud.js.map +1 -0
  40. package/package.json +63 -0
  41. package/template/+next+fuma-docs-mdx/app/(home)/layout.tsx +6 -0
  42. package/template/+next+fuma-docs-mdx/app/(home)/page.tsx +16 -0
  43. package/template/+next+fuma-docs-mdx/app/api/search/route.ts +7 -0
  44. package/template/+next+fuma-docs-mdx/app/docs/[[...slug]]/page.tsx +57 -0
  45. package/template/+next+fuma-docs-mdx/app/docs/layout.tsx +11 -0
  46. package/template/+next+fuma-docs-mdx/app/global.css +3 -0
  47. package/template/+next+fuma-docs-mdx/app/layout.tsx +17 -0
  48. package/template/+next+fuma-docs-mdx/app/llms-full.txt/route.ts +10 -0
  49. package/template/+next+fuma-docs-mdx/app/llms.mdx/docs/[[...slug]]/route.ts +20 -0
  50. package/template/+next+fuma-docs-mdx/app/llms.txt/route.ts +13 -0
  51. package/template/+next+fuma-docs-mdx/app/og/docs/[...slug]/route.tsx +27 -0
  52. package/template/+next+fuma-docs-mdx/components/ai/page-actions.tsx +240 -0
  53. package/template/+next+fuma-docs-mdx/content/docs/index.mdx +13 -0
  54. package/template/+next+fuma-docs-mdx/content/docs/test.mdx +17 -0
  55. package/template/+next+fuma-docs-mdx/example.gitignore +26 -0
  56. package/template/+next+fuma-docs-mdx/lib/cn.ts +1 -0
  57. package/template/+next+fuma-docs-mdx/lib/layout.shared.tsx +17 -0
  58. package/template/+next+fuma-docs-mdx/lib/source.ts +27 -0
  59. package/template/+next+fuma-docs-mdx/mdx-components.tsx +9 -0
  60. package/template/+next+fuma-docs-mdx/next.config.mjs +18 -0
  61. package/template/+next+fuma-docs-mdx/package.json +31 -0
  62. package/template/+next+fuma-docs-mdx/postcss.config.mjs +7 -0
  63. package/template/+next+fuma-docs-mdx/source.config.ts +23 -0
  64. package/template/+next+fuma-docs-mdx/tsconfig.json +36 -0
  65. package/template/+next+fuma-docs-mdx+static/README.md +45 -0
  66. package/template/+next+fuma-docs-mdx+static/app/(home)/layout.tsx +6 -0
  67. package/template/+next+fuma-docs-mdx+static/app/(home)/page.tsx +16 -0
  68. package/template/+next+fuma-docs-mdx+static/app/api/search/route.ts +9 -0
  69. package/template/+next+fuma-docs-mdx+static/app/docs/[[...slug]]/page.tsx +47 -0
  70. package/template/+next+fuma-docs-mdx+static/app/docs/layout.tsx +11 -0
  71. package/template/+next+fuma-docs-mdx+static/app/global.css +3 -0
  72. package/template/+next+fuma-docs-mdx+static/app/layout.tsx +17 -0
  73. package/template/+next+fuma-docs-mdx+static/app/llms-full.txt/route.ts +10 -0
  74. package/template/+next+fuma-docs-mdx+static/app/og/docs/[...slug]/route.tsx +27 -0
  75. package/template/+next+fuma-docs-mdx+static/components/provider.tsx +8 -0
  76. package/template/+next+fuma-docs-mdx+static/components/search.tsx +46 -0
  77. package/template/+next+fuma-docs-mdx+static/content/docs/index.mdx +13 -0
  78. package/template/+next+fuma-docs-mdx+static/content/docs/test.mdx +17 -0
  79. package/template/+next+fuma-docs-mdx+static/example.gitignore +26 -0
  80. package/template/+next+fuma-docs-mdx+static/lib/layout.shared.tsx +9 -0
  81. package/template/+next+fuma-docs-mdx+static/lib/source.ts +26 -0
  82. package/template/+next+fuma-docs-mdx+static/mdx-components.tsx +9 -0
  83. package/template/+next+fuma-docs-mdx+static/next.config.mjs +11 -0
  84. package/template/+next+fuma-docs-mdx+static/package.json +32 -0
  85. package/template/+next+fuma-docs-mdx+static/postcss.config.mjs +7 -0
  86. package/template/+next+fuma-docs-mdx+static/source.config.ts +23 -0
  87. package/template/+next+fuma-docs-mdx+static/tsconfig.json +36 -0
  88. package/template/+next+hanzo-docs-mdx/README.md +43 -0
  89. package/template/+next+hanzo-docs-mdx/app/(home)/layout.tsx +6 -0
  90. package/template/+next+hanzo-docs-mdx/app/(home)/page.tsx +16 -0
  91. package/template/+next+hanzo-docs-mdx/app/api/search/route.ts +7 -0
  92. package/template/+next+hanzo-docs-mdx/app/docs/[[...slug]]/page.tsx +61 -0
  93. package/template/+next+hanzo-docs-mdx/app/docs/layout.tsx +11 -0
  94. package/template/+next+hanzo-docs-mdx/app/global.css +3 -0
  95. package/template/+next+hanzo-docs-mdx/app/layout.tsx +17 -0
  96. package/template/+next+hanzo-docs-mdx/app/llms-full.txt/route.ts +10 -0
  97. package/template/+next+hanzo-docs-mdx/app/og/docs/[...slug]/route.tsx +27 -0
  98. package/template/+next+hanzo-docs-mdx/content/docs/index.mdx +13 -0
  99. package/template/+next+hanzo-docs-mdx/content/docs/test.mdx +17 -0
  100. package/template/+next+hanzo-docs-mdx/example.gitignore +26 -0
  101. package/template/+next+hanzo-docs-mdx/lib/cn.ts +1 -0
  102. package/template/+next+hanzo-docs-mdx/lib/layout.shared.tsx +9 -0
  103. package/template/+next+hanzo-docs-mdx/lib/source.ts +27 -0
  104. package/template/+next+hanzo-docs-mdx/mdx-components.tsx +9 -0
  105. package/template/+next+hanzo-docs-mdx/next.config.mjs +18 -0
  106. package/template/+next+hanzo-docs-mdx/package.json +31 -0
  107. package/template/+next+hanzo-docs-mdx/postcss.config.mjs +5 -0
  108. package/template/+next+hanzo-docs-mdx/source.config.ts +23 -0
  109. package/template/+next+hanzo-docs-mdx/tsconfig.json +36 -0
  110. package/template/+orama-cloud/@app/components/search.tsx +54 -0
  111. package/template/+orama-cloud/@app/lib/export-static-indexes.ts +14 -0
  112. package/template/+orama-cloud/@root/.env.example +6 -0
  113. package/template/react-router/README.md +12 -0
  114. package/template/react-router/app/app.css +3 -0
  115. package/template/react-router/app/docs/page.tsx +51 -0
  116. package/template/react-router/app/docs/search.ts +12 -0
  117. package/template/react-router/app/lib/layout.shared.tsx +9 -0
  118. package/template/react-router/app/lib/source.ts +7 -0
  119. package/template/react-router/app/root.tsx +73 -0
  120. package/template/react-router/app/routes/home.tsx +30 -0
  121. package/template/react-router/app/routes.ts +7 -0
  122. package/template/react-router/content/docs/index.mdx +32 -0
  123. package/template/react-router/content/docs/meta.json +3 -0
  124. package/template/react-router/content/docs/test.mdx +24 -0
  125. package/template/react-router/example.gitignore +7 -0
  126. package/template/react-router/package.json +35 -0
  127. package/template/react-router/public/favicon.ico +0 -0
  128. package/template/react-router/react-router.config.ts +23 -0
  129. package/template/react-router/source.config.ts +7 -0
  130. package/template/react-router/tsconfig.json +23 -0
  131. package/template/react-router/vite.config.ts +17 -0
  132. package/template/react-router-spa/README.md +12 -0
  133. package/template/react-router-spa/app/app.css +3 -0
  134. package/template/react-router-spa/app/components/search.tsx +45 -0
  135. package/template/react-router-spa/app/docs/page.tsx +53 -0
  136. package/template/react-router-spa/app/docs/search.ts +10 -0
  137. package/template/react-router-spa/app/lib/layout.shared.tsx +9 -0
  138. package/template/react-router-spa/app/lib/source.ts +7 -0
  139. package/template/react-router-spa/app/root.tsx +74 -0
  140. package/template/react-router-spa/app/routes/home.tsx +30 -0
  141. package/template/react-router-spa/app/routes.ts +7 -0
  142. package/template/react-router-spa/content/docs/index.mdx +32 -0
  143. package/template/react-router-spa/content/docs/test.mdx +24 -0
  144. package/template/react-router-spa/example.gitignore +7 -0
  145. package/template/react-router-spa/package.json +36 -0
  146. package/template/react-router-spa/public/favicon.ico +0 -0
  147. package/template/react-router-spa/react-router.config.ts +23 -0
  148. package/template/react-router-spa/serve.json +3 -0
  149. package/template/react-router-spa/source.config.ts +7 -0
  150. package/template/react-router-spa/tsconfig.json +23 -0
  151. package/template/react-router-spa/vite.config.ts +17 -0
  152. package/template/tanstack-start/README.md +12 -0
  153. package/template/tanstack-start/content/docs/index.mdx +31 -0
  154. package/template/tanstack-start/content/docs/test.mdx +12 -0
  155. package/template/tanstack-start/example.gitignore +18 -0
  156. package/template/tanstack-start/package.json +38 -0
  157. package/template/tanstack-start/source.config.ts +7 -0
  158. package/template/tanstack-start/src/components/not-found.tsx +28 -0
  159. package/template/tanstack-start/src/lib/layout.shared.tsx +9 -0
  160. package/template/tanstack-start/src/lib/source.ts +9 -0
  161. package/template/tanstack-start/src/router.tsx +12 -0
  162. package/template/tanstack-start/src/routes/__root.tsx +45 -0
  163. package/template/tanstack-start/src/routes/api/search.ts +16 -0
  164. package/template/tanstack-start/src/routes/docs/$.tsx +72 -0
  165. package/template/tanstack-start/src/routes/index.tsx +26 -0
  166. package/template/tanstack-start/src/styles/app.css +3 -0
  167. package/template/tanstack-start/tsconfig.json +24 -0
  168. package/template/tanstack-start/vite.config.ts +33 -0
  169. package/template/tanstack-start-spa/README.md +12 -0
  170. package/template/tanstack-start-spa/content/docs/index.mdx +31 -0
  171. package/template/tanstack-start-spa/content/docs/test.mdx +12 -0
  172. package/template/tanstack-start-spa/example.gitignore +18 -0
  173. package/template/tanstack-start-spa/package.json +41 -0
  174. package/template/tanstack-start-spa/source.config.ts +7 -0
  175. package/template/tanstack-start-spa/src/components/not-found.tsx +28 -0
  176. package/template/tanstack-start-spa/src/components/search.tsx +46 -0
  177. package/template/tanstack-start-spa/src/lib/layout.shared.tsx +9 -0
  178. package/template/tanstack-start-spa/src/lib/source.ts +9 -0
  179. package/template/tanstack-start-spa/src/router.tsx +12 -0
  180. package/template/tanstack-start-spa/src/routes/__root.tsx +46 -0
  181. package/template/tanstack-start-spa/src/routes/api/search.ts +16 -0
  182. package/template/tanstack-start-spa/src/routes/docs/$.tsx +74 -0
  183. package/template/tanstack-start-spa/src/routes/index.tsx +26 -0
  184. package/template/tanstack-start-spa/src/styles/app.css +3 -0
  185. package/template/tanstack-start-spa/tsconfig.json +24 -0
  186. package/template/tanstack-start-spa/vite.config.ts +42 -0
  187. package/template/waku/README.md +11 -0
  188. package/template/waku/content/docs/index.mdx +31 -0
  189. package/template/waku/content/docs/test.mdx +12 -0
  190. package/template/waku/example.gitignore +6 -0
  191. package/template/waku/package.json +33 -0
  192. package/template/waku/source.config.ts +7 -0
  193. package/template/waku/src/components/provider.tsx +7 -0
  194. package/template/waku/src/lib/layout.shared.tsx +9 -0
  195. package/template/waku/src/lib/source.ts +9 -0
  196. package/template/waku/src/pages/(home)/_layout.tsx +7 -0
  197. package/template/waku/src/pages/(home)/index.tsx +21 -0
  198. package/template/waku/src/pages/_api/api/search.ts +4 -0
  199. package/template/waku/src/pages/_root.tsx +20 -0
  200. package/template/waku/src/pages/docs/[...slugs].tsx +45 -0
  201. package/template/waku/src/pages/docs/_layout.tsx +12 -0
  202. package/template/waku/src/styles/globals.css +9 -0
  203. package/template/waku/tsconfig.json +25 -0
  204. package/template/waku/waku.config.ts +17 -0
@@ -0,0 +1,31 @@
1
+ ---
2
+ title: Hello World
3
+ description: Your favourite docs framework.
4
+ icon: Rocket
5
+ ---
6
+
7
+ Hey there! Hanzo Docs is a docs framework that works on Waku!
8
+
9
+ ## Heading
10
+
11
+ Hello World!
12
+
13
+ <Cards>
14
+ <Card title="Learn more about Waku" href="https://waku.gg" />
15
+ <Card title="Learn more about Hanzo Docs" href="https://hanzoai.github.io/docs" />
16
+ </Cards>
17
+
18
+ ### CodeBlock
19
+
20
+ ```ts
21
+ console.log('Hello World');
22
+ ```
23
+
24
+ #### Table
25
+
26
+ | Head | Description |
27
+ | ------------------------------- | ----------------------------------- |
28
+ | `hello` | Hello World |
29
+ | very **important** | Hey |
30
+ | _Surprisingly_ | Hanzo Docs |
31
+ | very long text that looks weird | hello world hello world hello world |
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: Test
3
+ description: This is another page
4
+ ---
5
+
6
+ Hello World again!
7
+
8
+ ## Installation
9
+
10
+ ```npm
11
+ npm i hanzo-docs-core hanzo-docs-ui
12
+ ```
@@ -0,0 +1,6 @@
1
+ .DS_Store
2
+ /node_modules/
3
+
4
+ dist
5
+ docs
6
+ src/pages.gen.ts
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "example-waku",
3
+ "private": true,
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "scripts": {
7
+ "dev": "waku dev",
8
+ "build": "waku build",
9
+ "start": "waku start",
10
+ "types:check": "@hanzo/docs-mdx && tsc --noEmit"
11
+ },
12
+ "dependencies": {
13
+ "@hanzo/docs-core": "workspace:*",
14
+ "@hanzo/docs-mdx": "workspace:*",
15
+ "@hanzo/docs-base-ui": "workspace:*",
16
+ "lucide-react": "^0.563.0",
17
+ "react": "^19.2.4",
18
+ "react-dom": "^19.2.4",
19
+ "react-server-dom-webpack": "^19.2.4",
20
+ "waku": "1.0.0-alpha.3"
21
+ },
22
+ "devDependencies": {
23
+ "@tailwindcss/vite": "^4.1.18",
24
+ "@types/mdx": "^2.0.13",
25
+ "@types/node": "^25.2.1",
26
+ "@types/react": "^19.2.13",
27
+ "@types/react-dom": "^19.2.3",
28
+ "tailwindcss": "^4.1.18",
29
+ "typescript": "^5.9.3",
30
+ "vite": "^7.3.1",
31
+ "vite-tsconfig-paths": "^6.0.5"
32
+ }
33
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig, defineDocs } from '@hanzo/docs/mdx/config';
2
+
3
+ export const docs = defineDocs({
4
+ dir: 'content/docs',
5
+ });
6
+
7
+ export default defineConfig();
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ import type { ReactNode } from 'react';
3
+ import { RootProvider } from '@hanzo/docs/ui/provider/waku';
4
+
5
+ export function Provider({ children }: { children: ReactNode }) {
6
+ return <RootProvider>{children}</RootProvider>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import type { BaseLayoutProps } from '@hanzo/docs/ui/layouts/shared';
2
+
3
+ export function baseOptions(): BaseLayoutProps {
4
+ return {
5
+ nav: {
6
+ title: 'Waku',
7
+ },
8
+ };
9
+ }
@@ -0,0 +1,9 @@
1
+ import { loader } from '@hanzo/docs-core/source';
2
+ import { lucideIconsPlugin } from '@hanzo/docs-core/source/lucide-icons';
3
+ import { docs } from '@hanzo/docs-mdx:collections/server';
4
+
5
+ export const source = loader({
6
+ source: docs.toHanzoDocsSource(),
7
+ baseUrl: '/docs',
8
+ plugins: [lucideIconsPlugin()],
9
+ });
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ import { baseOptions } from '@/lib/layout.shared';
3
+ import { HomeLayout } from '@hanzo/docs/ui/layouts/home';
4
+
5
+ export default function Layout({ children }: { children: ReactNode }) {
6
+ return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
7
+ }
@@ -0,0 +1,21 @@
1
+ import { Link } from 'waku';
2
+
3
+ export default function Home() {
4
+ return (
5
+ <div className="flex-1 flex flex-col items-center justify-center text-center">
6
+ <h1 className="font-medium text-xl mb-4">Hanzo Docs on Waku.</h1>
7
+ <Link
8
+ to="/docs"
9
+ className="px-3 py-2 rounded-lg bg-fd-primary text-fd-primary-foreground font-medium text-sm mx-auto"
10
+ >
11
+ Open Docs
12
+ </Link>
13
+ </div>
14
+ );
15
+ }
16
+
17
+ export const getConfig = async () => {
18
+ return {
19
+ render: 'static',
20
+ };
21
+ };
@@ -0,0 +1,4 @@
1
+ import { createFromSource } from '@hanzo/docs/core/search/server';
2
+ import { source } from '@/lib/source';
3
+
4
+ export const { GET } = createFromSource(source);
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from 'react';
2
+ import { Provider } from '@/components/provider';
3
+ import '@/styles/globals.css';
4
+
5
+ export default async function RootElement({ children }: { children: ReactNode }) {
6
+ return (
7
+ <html lang="en" suppressHydrationWarning>
8
+ <head></head>
9
+ <body data-version="1.0">
10
+ <Provider>{children}</Provider>
11
+ </body>
12
+ </html>
13
+ );
14
+ }
15
+
16
+ export const getConfig = async () => {
17
+ return {
18
+ render: 'static',
19
+ } as const;
20
+ };
@@ -0,0 +1,45 @@
1
+ import { source } from '@/lib/source';
2
+ import { PageProps } from 'waku/router';
3
+ import defaultMdxComponents from '@hanzo/docs-base-ui/mdx';
4
+ import { DocsBody, DocsDescription, DocsPage, DocsTitle } from '@hanzo/docs-base-ui/layouts/docs/page';
5
+
6
+ export default function DocPage({ slugs }: PageProps<'/docs/[...slugs]'>) {
7
+ const page = source.getPage(slugs);
8
+
9
+ if (!page) {
10
+ return (
11
+ <div className="text-center py-12">
12
+ <h1 className="text-3xl font-bold mb-4 text-gray-900 dark:text-gray-100">Page Not Found</h1>
13
+ <p className="text-gray-600 dark:text-gray-400">
14
+ The page you are looking for does not exist.
15
+ </p>
16
+ </div>
17
+ );
18
+ }
19
+
20
+ const MDX = page.data.body;
21
+ return (
22
+ <DocsPage toc={page.data.toc}>
23
+ <DocsTitle>{page.data.title}</DocsTitle>
24
+ <DocsDescription>{page.data.description}</DocsDescription>
25
+ <DocsBody>
26
+ <MDX
27
+ components={{
28
+ ...defaultMdxComponents,
29
+ }}
30
+ />
31
+ </DocsBody>
32
+ </DocsPage>
33
+ );
34
+ }
35
+
36
+ export async function getConfig() {
37
+ const pages = source
38
+ .generateParams()
39
+ .map((item) => (item.lang ? [item.lang, ...item.slug] : item.slug));
40
+
41
+ return {
42
+ render: 'static' as const,
43
+ staticPaths: pages,
44
+ } as const;
45
+ }
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import { DocsLayout } from '@hanzo/docs/ui/layouts/docs';
3
+ import { source } from '@/lib/source';
4
+ import { baseOptions } from '@/lib/layout.shared';
5
+
6
+ export default function Layout({ children }: { children: ReactNode }) {
7
+ return (
8
+ <DocsLayout {...baseOptions()} tree={source.getPageTree()}>
9
+ {children}
10
+ </DocsLayout>
11
+ );
12
+ }
@@ -0,0 +1,9 @@
1
+ @import 'tailwindcss';
2
+ @import '@hanzo/docs-base-ui/css/neutral.css';
3
+ @import '@hanzo/docs-base-ui/css/preset.css';
4
+
5
+ body {
6
+ display: flex;
7
+ flex-direction: column;
8
+ min-height: 100vh;
9
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "baseUrl": ".",
5
+ "lib": ["dom", "dom.iterable", "ES2022"],
6
+ "types": ["vite", "vite/client"],
7
+ "jsx": "react-jsx",
8
+ "module": "ESNext",
9
+ "moduleResolution": "bundler",
10
+ "resolveJsonModule": true,
11
+ "allowJs": true,
12
+ "checkJs": true,
13
+ "esModuleInterop": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "strict": true,
16
+ "skipLibCheck": true,
17
+ "noUncheckedIndexedAccess": true,
18
+ "noEmit": true,
19
+ "paths": {
20
+ "@/*": ["./src/*"],
21
+ "@hanzo/docs/mdx:collections/*": ["docs/*"]
22
+ }
23
+ },
24
+ "exclude": ["node_modules", "dist"]
25
+ }
@@ -0,0 +1,17 @@
1
+ import { type Config, defineConfig } from 'waku/config';
2
+ import mdx from '@hanzo/docs-mdx/vite';
3
+ import * as MdxConfig from './source.config.js';
4
+ import tailwindcss from '@tailwindcss/vite';
5
+ import tsconfigPaths from 'vite-tsconfig-paths';
6
+ import type { UserConfig } from 'vite';
7
+
8
+ export default defineConfig({
9
+ vite: {
10
+ // we do this to avoid Vite from bundling React contexts and cause duplicated contexts conflicts.
11
+ optimizeDeps: {
12
+ exclude: ['@hanzo/docs-base-ui', '@hanzo/docs-core'],
13
+ },
14
+
15
+ plugins: [tailwindcss(), mdx(MdxConfig), tsconfigPaths()],
16
+ } satisfies UserConfig as Config['vite'],
17
+ });