onedocs 0.1.0 → 0.1.3
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/components/cta-section.d.ts +13 -0
- package/dist/components/cta-section.d.ts.map +1 -0
- package/dist/components/cta-section.js +4 -0
- package/dist/components/dark-mode-fix.d.ts +2 -0
- package/dist/components/dark-mode-fix.d.ts.map +1 -0
- package/dist/components/dark-mode-fix.js +9 -0
- package/dist/components/icons.d.ts +4 -0
- package/dist/components/icons.d.ts.map +1 -0
- package/dist/components/icons.js +4 -0
- package/dist/components/index.d.ts +13 -17
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +12 -53
- package/dist/components/install-block.d.ts +4 -6
- package/dist/components/install-block.d.ts.map +1 -0
- package/dist/components/install-block.js +5 -6
- package/dist/components/logo.d.ts +9 -0
- package/dist/components/logo.d.ts.map +1 -0
- package/dist/components/logo.js +4 -0
- package/dist/config.d.ts +10 -12
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +7 -6
- package/dist/index.d.ts +13 -59
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -166
- package/dist/layouts/docs-page.d.ts +9 -0
- package/dist/layouts/docs-page.d.ts.map +1 -0
- package/dist/layouts/docs-page.js +6 -0
- package/dist/layouts/docs.d.ts +10 -0
- package/dist/layouts/docs.d.ts.map +1 -0
- package/dist/layouts/docs.js +6 -0
- package/dist/layouts/home.d.ts +14 -0
- package/dist/layouts/home.d.ts.map +1 -0
- package/dist/layouts/home.js +12 -0
- package/dist/layouts/root.d.ts +7 -0
- package/dist/layouts/root.d.ts.map +1 -0
- package/dist/layouts/root.js +40 -0
- package/dist/layouts/shared.d.ts +4 -0
- package/dist/layouts/shared.d.ts.map +1 -0
- package/dist/layouts/shared.js +29 -0
- package/dist/llms/index.d.ts +35 -7
- package/dist/llms/index.d.ts.map +1 -0
- package/dist/llms/index.js +90 -70
- package/dist/seo/index.d.ts +12 -0
- package/dist/seo/index.d.ts.map +1 -0
- package/dist/seo/index.js +43 -0
- package/dist/source/index.d.ts +6 -9
- package/dist/source/index.d.ts.map +1 -0
- package/dist/source/index.js +8 -8
- package/package.json +16 -10
- package/dist/chunk-EKYRMBZ6.js +0 -14
- package/dist/chunk-I3NBXJTK.js +0 -26
- package/dist/chunk-TKN3PLPZ.js +0 -37
- package/dist/chunk-WWULBBXM.js +0 -12
- package/dist/logo-BKLMVPA6.d.ts +0 -11
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface CTASectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
cta: {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function CTASection({ title, description, cta, children }: CTASectionProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=cta-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cta-section.d.ts","sourceRoot":"","sources":["../../src/components/cta-section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAsBhF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function CTASection({ title, description, cta, children }) {
|
|
3
|
+
return (_jsx("section", { children: _jsxs("div", { className: "flex flex-col items-center justify-center text-center py-16 px-6", children: [_jsx("h2", { className: "text-2xl font-semibold text-fd-foreground sm:text-3xl", children: title }), description && (_jsx("p", { className: "mt-2 text-fd-muted-foreground max-w-md", children: description })), _jsx("a", { href: cta.href, className: "mt-6 inline-flex h-10 items-center justify-center rounded-lg bg-fd-primary px-6 text-sm font-medium text-fd-primary-foreground shadow transition-colors hover:bg-fd-primary/90", children: cta.label }), children] }) }));
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dark-mode-fix.d.ts","sourceRoot":"","sources":["../../src/components/dark-mode-fix.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,4CAW1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function DarkModeFix() {
|
|
3
|
+
return (_jsx("style", { dangerouslySetInnerHTML: {
|
|
4
|
+
__html: `.dark *, .dark *::before, .dark *::after { border-color: hsl(0 0% 20%) }
|
|
5
|
+
@media (prefers-color-scheme: dark) {
|
|
6
|
+
html:not(.light) *, html:not(.light) *::before, html:not(.light) *::after { border-color: hsl(0 0% 20%) }
|
|
7
|
+
}`,
|
|
8
|
+
} }));
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/components/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAY/D"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function GitHubIcon({ className }) {
|
|
3
|
+
return (_jsx("svg", { role: "img", "aria-label": "GitHub", viewBox: "0 0 24 24", fill: "currentColor", className: className ?? "size-5", children: _jsx("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) }));
|
|
4
|
+
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
export { Callout } from
|
|
2
|
-
export { Card, Cards } from
|
|
3
|
-
export { Tab, Tabs } from
|
|
4
|
-
export {
|
|
5
|
-
export { Accordion, Accordions } from
|
|
6
|
-
export { CodeBlock } from
|
|
7
|
-
export { ImageZoom } from
|
|
8
|
-
export { TypeTable } from
|
|
9
|
-
export { File,
|
|
10
|
-
export { InstallBlock } from
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
declare function DarkModeFix(): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { DarkModeFix };
|
|
1
|
+
export { Callout } from "fumadocs-ui/components/callout";
|
|
2
|
+
export { Card, Cards } from "fumadocs-ui/components/card";
|
|
3
|
+
export { Tab, Tabs } from "fumadocs-ui/components/tabs";
|
|
4
|
+
export { Steps, Step } from "fumadocs-ui/components/steps";
|
|
5
|
+
export { Accordion, Accordions } from "fumadocs-ui/components/accordion";
|
|
6
|
+
export { CodeBlock } from "fumadocs-ui/components/codeblock";
|
|
7
|
+
export { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
8
|
+
export { TypeTable } from "fumadocs-ui/components/type-table";
|
|
9
|
+
export { File, Folder, Files } from "fumadocs-ui/components/files";
|
|
10
|
+
export { InstallBlock } from "./install-block";
|
|
11
|
+
export { DarkModeFix } from "./dark-mode-fix";
|
|
12
|
+
export { Logo } from "./logo";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,53 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
} from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
|
|
14
|
-
import { CodeBlock } from "fumadocs-ui/components/codeblock";
|
|
15
|
-
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
16
|
-
import { TypeTable } from "fumadocs-ui/components/type-table";
|
|
17
|
-
import { File, Folder, Files } from "fumadocs-ui/components/files";
|
|
18
|
-
|
|
19
|
-
// src/components/dark-mode-fix.tsx
|
|
20
|
-
import { jsx } from "react/jsx-runtime";
|
|
21
|
-
function DarkModeFix() {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
"style",
|
|
24
|
-
{
|
|
25
|
-
dangerouslySetInnerHTML: {
|
|
26
|
-
__html: `.dark *, .dark *::before, .dark *::after { border-color: hsl(0 0% 20%) }
|
|
27
|
-
@media (prefers-color-scheme: dark) {
|
|
28
|
-
html:not(.light) *, html:not(.light) *::before, html:not(.light) *::after { border-color: hsl(0 0% 20%) }
|
|
29
|
-
}`
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
Accordion,
|
|
36
|
-
Accordions,
|
|
37
|
-
Callout,
|
|
38
|
-
Card,
|
|
39
|
-
Cards,
|
|
40
|
-
CodeBlock,
|
|
41
|
-
DarkModeFix,
|
|
42
|
-
File,
|
|
43
|
-
Files,
|
|
44
|
-
Folder,
|
|
45
|
-
ImageZoom,
|
|
46
|
-
InstallBlock,
|
|
47
|
-
Logo,
|
|
48
|
-
Step,
|
|
49
|
-
Steps,
|
|
50
|
-
Tab,
|
|
51
|
-
Tabs,
|
|
52
|
-
TypeTable
|
|
53
|
-
};
|
|
1
|
+
export { Callout } from "fumadocs-ui/components/callout";
|
|
2
|
+
export { Card, Cards } from "fumadocs-ui/components/card";
|
|
3
|
+
export { Tab, Tabs } from "fumadocs-ui/components/tabs";
|
|
4
|
+
export { Steps, Step } from "fumadocs-ui/components/steps";
|
|
5
|
+
export { Accordion, Accordions } from "fumadocs-ui/components/accordion";
|
|
6
|
+
export { CodeBlock } from "fumadocs-ui/components/codeblock";
|
|
7
|
+
export { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
8
|
+
export { TypeTable } from "fumadocs-ui/components/type-table";
|
|
9
|
+
export { File, Folder, Files } from "fumadocs-ui/components/files";
|
|
10
|
+
export { InstallBlock } from "./install-block";
|
|
11
|
+
export { DarkModeFix } from "./dark-mode-fix";
|
|
12
|
+
export { Logo } from "./logo";
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
4
2
|
interface InstallBlockProps {
|
|
5
3
|
title?: string;
|
|
6
4
|
description?: string;
|
|
7
5
|
packageName: string;
|
|
8
6
|
children?: ReactNode;
|
|
9
7
|
}
|
|
10
|
-
declare function InstallBlock({ title, description, packageName, children, }: InstallBlockProps):
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export declare function InstallBlock({ title, description, packageName, children, }: InstallBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=install-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-block.d.ts","sourceRoot":"","sources":["../../src/components/install-block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,WAAW,EACX,QAAQ,GACT,EAAE,iBAAiB,2CAsCnB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
|
|
3
|
+
export function InstallBlock({ title, description, packageName, children, }) {
|
|
4
|
+
return (_jsxs("div", { children: [title && (_jsx("h1", { className: "mb-4 text-4xl font-bold tracking-tight md:text-5xl lg:text-6xl", children: title })), description && (_jsx("p", { className: "text-fd-muted-foreground mb-6 text-balance", children: description })), _jsxs(Tabs, { groupId: "pm", items: ["npm", "yarn", "pnpm", "bun"], className: "!mb-0", children: [_jsx(Tab, { value: "npm", children: _jsxs("code", { className: "block rounded bg-fd-secondary px-3 py-2 text-sm", children: ["npm i ", packageName] }) }), _jsx(Tab, { value: "yarn", children: _jsxs("code", { className: "block rounded bg-fd-secondary px-3 py-2 text-sm", children: ["yarn add ", packageName] }) }), _jsx(Tab, { value: "pnpm", children: _jsxs("code", { className: "block rounded bg-fd-secondary px-3 py-2 text-sm", children: ["pnpm add ", packageName] }) }), _jsx(Tab, { value: "bun", children: _jsxs("code", { className: "block rounded bg-fd-secondary px-3 py-2 text-sm", children: ["bun add ", packageName] }) })] }), children && (_jsx("div", { className: "mt-6", children: children }))] }));
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAY,EAAE,SAAS,EAAE,EAAE,SAAS,2CAevE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function Logo({ light, dark, alt = "Logo", className }) {
|
|
3
|
+
return (_jsxs(_Fragment, { children: [_jsx("img", { src: light, alt: alt, className: `dark:hidden ${className ?? ""}` }), _jsx("img", { src: dark, alt: alt, className: `hidden dark:block ${className ?? ""}` })] }));
|
|
4
|
+
}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
interface NavLink {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface NavLink {
|
|
4
3
|
label: string;
|
|
5
4
|
href: string;
|
|
6
5
|
}
|
|
7
|
-
interface HeroConfig {
|
|
6
|
+
export interface HeroConfig {
|
|
8
7
|
title?: string;
|
|
9
8
|
description?: string;
|
|
10
9
|
cta?: {
|
|
@@ -12,24 +11,24 @@ interface HeroConfig {
|
|
|
12
11
|
href: string;
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
|
-
interface FeatureConfig {
|
|
14
|
+
export interface FeatureConfig {
|
|
16
15
|
title: string;
|
|
17
16
|
description: string;
|
|
18
17
|
icon?: ReactNode;
|
|
19
18
|
}
|
|
20
|
-
interface HomepageConfig {
|
|
19
|
+
export interface HomepageConfig {
|
|
21
20
|
hero?: HeroConfig;
|
|
22
21
|
features?: FeatureConfig[];
|
|
23
22
|
}
|
|
24
|
-
interface ThemeConfig {
|
|
23
|
+
export interface ThemeConfig {
|
|
25
24
|
primaryColor?: string;
|
|
26
25
|
darkMode?: boolean;
|
|
27
26
|
}
|
|
28
|
-
interface I18nConfig {
|
|
27
|
+
export interface I18nConfig {
|
|
29
28
|
defaultLanguage: string;
|
|
30
29
|
languages: string[];
|
|
31
30
|
}
|
|
32
|
-
interface OnedocsConfig {
|
|
31
|
+
export interface OnedocsConfig {
|
|
33
32
|
title: string;
|
|
34
33
|
description?: string;
|
|
35
34
|
logo?: string | {
|
|
@@ -48,6 +47,5 @@ interface OnedocsConfig {
|
|
|
48
47
|
theme?: ThemeConfig;
|
|
49
48
|
i18n?: I18nConfig;
|
|
50
49
|
}
|
|
51
|
-
declare function defineConfig(config: OnedocsConfig): OnedocsConfig;
|
|
52
|
-
|
|
53
|
-
export { type FeatureConfig, type HeroConfig, type HomepageConfig, type I18nConfig, type NavLink, type OnedocsConfig, type ThemeConfig, defineConfig };
|
|
50
|
+
export declare function defineConfig(config: OnedocsConfig): OnedocsConfig;
|
|
51
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAMjE"}
|
package/dist/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
export function defineConfig(config) {
|
|
2
|
+
return {
|
|
3
|
+
docs: { dir: "content/docs" },
|
|
4
|
+
theme: { darkMode: true },
|
|
5
|
+
...config,
|
|
6
|
+
};
|
|
7
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
declare function RootLayout({ children }: RootLayoutProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
interface DocsLayoutProps {
|
|
18
|
-
config: OnedocsConfig;
|
|
19
|
-
pageTree: any;
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
declare function DocsLayout({ config, pageTree, children }: DocsLayoutProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
interface DocsPageProps {
|
|
25
|
-
toc?: any[];
|
|
26
|
-
children: ReactNode;
|
|
27
|
-
}
|
|
28
|
-
declare function DocsPage({ toc, children }: DocsPageProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
|
|
30
|
-
interface HomeLayoutProps {
|
|
31
|
-
config: OnedocsConfig;
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
}
|
|
34
|
-
declare function HomeLayout({ config, children }: HomeLayoutProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
interface HomePageProps {
|
|
36
|
-
config: OnedocsConfig;
|
|
37
|
-
packageName?: string;
|
|
38
|
-
children?: React.ReactNode;
|
|
39
|
-
}
|
|
40
|
-
declare function HomePage({ config, packageName, children }: HomePageProps): react_jsx_runtime.JSX.Element;
|
|
41
|
-
|
|
42
|
-
declare function createBaseOptions(config: OnedocsConfig): BaseLayoutProps;
|
|
43
|
-
|
|
44
|
-
declare function GitHubIcon({ className }: {
|
|
45
|
-
className?: string;
|
|
46
|
-
}): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
interface CTASectionProps {
|
|
49
|
-
title: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
cta: {
|
|
52
|
-
label: string;
|
|
53
|
-
href: string;
|
|
54
|
-
};
|
|
55
|
-
children?: ReactNode;
|
|
56
|
-
}
|
|
57
|
-
declare function CTASection({ title, description, cta, children }: CTASectionProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
|
|
59
|
-
export { CTASection, DocsLayout, DocsPage, GitHubIcon, HomeLayout, HomePage, OnedocsConfig, RootLayout, createBaseOptions };
|
|
1
|
+
export { RootLayout } from "./layouts/root";
|
|
2
|
+
export { DocsLayout } from "./layouts/docs";
|
|
3
|
+
export { DocsPage, DocsBody } from "./layouts/docs-page";
|
|
4
|
+
export { HomeLayout, HomePage } from "./layouts/home";
|
|
5
|
+
export { createBaseOptions } from "./layouts/shared";
|
|
6
|
+
export { defineConfig } from "./config";
|
|
7
|
+
export type { OnedocsConfig } from "./config";
|
|
8
|
+
export { createSource, loader } from "./source";
|
|
9
|
+
export { InstallBlock } from "./components/install-block";
|
|
10
|
+
export { Logo } from "./components/logo";
|
|
11
|
+
export { GitHubIcon } from "./components/icons";
|
|
12
|
+
export { CTASection } from "./components/cta-section";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,166 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
loader
|
|
13
|
-
} from "./chunk-EKYRMBZ6.js";
|
|
14
|
-
|
|
15
|
-
// src/layouts/root.tsx
|
|
16
|
-
import { RootProvider } from "fumadocs-ui/provider/tanstack";
|
|
17
|
-
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
function RootLayout({ children }) {
|
|
19
|
-
return /* @__PURE__ */ jsx(RootProvider, { children });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// src/layouts/docs.tsx
|
|
23
|
-
import { DocsLayout as FumaDocsLayout } from "fumadocs-ui/layouts/docs";
|
|
24
|
-
|
|
25
|
-
// src/components/icons.tsx
|
|
26
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
27
|
-
function GitHubIcon({ className }) {
|
|
28
|
-
return /* @__PURE__ */ jsx2(
|
|
29
|
-
"svg",
|
|
30
|
-
{
|
|
31
|
-
role: "img",
|
|
32
|
-
"aria-label": "GitHub",
|
|
33
|
-
viewBox: "0 0 24 24",
|
|
34
|
-
fill: "currentColor",
|
|
35
|
-
className: className ?? "size-5",
|
|
36
|
-
children: /* @__PURE__ */ jsx2("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// src/layouts/shared.tsx
|
|
42
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
43
|
-
function createBaseOptions(config) {
|
|
44
|
-
const links = (config.nav?.links ?? []).map((link) => ({
|
|
45
|
-
type: "main",
|
|
46
|
-
text: link.label,
|
|
47
|
-
url: link.href
|
|
48
|
-
}));
|
|
49
|
-
if (config.nav?.github) {
|
|
50
|
-
links.push({
|
|
51
|
-
type: "icon",
|
|
52
|
-
text: "GitHub",
|
|
53
|
-
icon: /* @__PURE__ */ jsx3(GitHubIcon, {}),
|
|
54
|
-
url: `https://github.com/${config.nav.github}`
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const navTitle = config.logo ? typeof config.logo === "string" ? /* @__PURE__ */ jsx3("img", { src: config.logo, alt: config.title, className: "h-6" }) : /* @__PURE__ */ jsx3(Logo, { light: config.logo.light, dark: config.logo.dark, alt: config.title, className: "h-6" }) : config.title;
|
|
58
|
-
return {
|
|
59
|
-
nav: {
|
|
60
|
-
title: navTitle
|
|
61
|
-
},
|
|
62
|
-
links
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// src/layouts/docs.tsx
|
|
67
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
68
|
-
function DocsLayout({ config, pageTree, children }) {
|
|
69
|
-
return /* @__PURE__ */ jsx4(FumaDocsLayout, { ...createBaseOptions(config), tree: pageTree, children });
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// src/layouts/docs-page.tsx
|
|
73
|
-
import { DocsPage as FumaDocsPage, DocsBody } from "fumadocs-ui/page";
|
|
74
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
75
|
-
function DocsPage({ toc, children }) {
|
|
76
|
-
return /* @__PURE__ */ jsx5(FumaDocsPage, { toc, children: /* @__PURE__ */ jsx5(DocsBody, { children }) });
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// src/layouts/home.tsx
|
|
80
|
-
import { HomeLayout as FumaHomeLayout } from "fumadocs-ui/layouts/home";
|
|
81
|
-
import { jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
82
|
-
function HomeLayout({ config, children }) {
|
|
83
|
-
return /* @__PURE__ */ jsx6(FumaHomeLayout, { ...createBaseOptions(config), children });
|
|
84
|
-
}
|
|
85
|
-
function HomePage({ config, packageName, children }) {
|
|
86
|
-
const { homepage } = config;
|
|
87
|
-
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
88
|
-
return /* @__PURE__ */ jsx6(HomeLayout, { config, children: /* @__PURE__ */ jsxs("main", { className: "flex-1 flex flex-col min-h-[calc(100vh-var(--fd-nav-height))]", children: [
|
|
89
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col relative mx-auto w-full max-w-(--fd-layout-width)", children: [
|
|
90
|
-
/* @__PURE__ */ jsx6("div", { className: "absolute inset-0 border-x pointer-events-none" }),
|
|
91
|
-
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
92
|
-
/* @__PURE__ */ jsx6("section", { id: "hero", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-4", children: [
|
|
93
|
-
/* @__PURE__ */ jsxs("div", { className: "lg:col-span-2 p-6 lg:p-12", children: [
|
|
94
|
-
/* @__PURE__ */ jsx6("h1", { className: "text-left text-4xl font-semibold leading-tight text-fd-foreground sm:text-5xl md:text-6xl tracking-tight", children: homepage?.hero?.title ?? config.title }),
|
|
95
|
-
/* @__PURE__ */ jsx6("p", { className: "text-left max-w-xl leading-normal text-fd-muted-foreground sm:text-lg sm:leading-normal text-balance mt-4", children: homepage?.hero?.description ?? config.description }),
|
|
96
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row items-start sm:items-end gap-4 mt-8 w-full", children: [
|
|
97
|
-
packageName && /* @__PURE__ */ jsx6("div", { className: "flex-1", children: /* @__PURE__ */ jsx6(InstallBlock, { packageName }) }),
|
|
98
|
-
/* @__PURE__ */ jsx6(
|
|
99
|
-
"a",
|
|
100
|
-
{
|
|
101
|
-
href: homepage?.hero?.cta?.href ?? "/docs",
|
|
102
|
-
className: "inline-flex h-10 items-center justify-center rounded-lg bg-fd-primary px-6 text-sm font-medium text-fd-primary-foreground shadow transition-colors hover:bg-fd-primary/90 whitespace-nowrap",
|
|
103
|
-
children: homepage?.hero?.cta?.label ?? "Get Started"
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
] })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ jsx6("div", { className: "lg:col-span-2 hidden lg:block" })
|
|
109
|
-
] }) }),
|
|
110
|
-
homepage?.features && homepage.features.length > 0 && /* @__PURE__ */ jsx6("section", { id: "features", children: /* @__PURE__ */ jsx6("div", { className: "border-y", children: /* @__PURE__ */ jsx6("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 [&>*]:border-b [&>*:nth-last-child(-n+1)]:border-b-0 sm:[&>*:nth-last-child(-n+2)]:border-b-0 lg:[&>*:nth-last-child(-n+4)]:border-b-0", children: homepage.features.map((feature) => /* @__PURE__ */ jsxs(
|
|
111
|
-
"div",
|
|
112
|
-
{
|
|
113
|
-
className: "flex flex-col gap-y-2 items-start justify-start py-8 px-6 transition-colors hover:bg-fd-secondary/20 sm:border-r sm:[&:nth-child(2n)]:border-r-0 lg:[&:nth-child(2n)]:border-r lg:[&:nth-child(4n)]:border-r-0",
|
|
114
|
-
children: [
|
|
115
|
-
feature.icon && /* @__PURE__ */ jsx6("div", { className: "bg-fd-primary/10 p-2 rounded-lg mb-2", children: feature.icon }),
|
|
116
|
-
/* @__PURE__ */ jsx6("h3", { className: "text-base font-medium text-fd-card-foreground", children: feature.title }),
|
|
117
|
-
/* @__PURE__ */ jsx6("p", { className: "text-sm text-fd-muted-foreground", children: feature.description })
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
feature.title
|
|
121
|
-
)) }) }) })
|
|
122
|
-
] }),
|
|
123
|
-
children && /* @__PURE__ */ jsx6("div", { className: "flex-1 flex items-center justify-center", children })
|
|
124
|
-
] }),
|
|
125
|
-
/* @__PURE__ */ jsx6("footer", { className: "relative mx-auto w-full max-w-(--fd-layout-width)", children: /* @__PURE__ */ jsx6("div", { className: "border-x border-t px-6 py-4", children: /* @__PURE__ */ jsxs("p", { className: "text-sm text-fd-muted-foreground", children: [
|
|
126
|
-
"\xA9 ",
|
|
127
|
-
currentYear,
|
|
128
|
-
" ",
|
|
129
|
-
config.title
|
|
130
|
-
] }) }) })
|
|
131
|
-
] }) });
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// src/components/cta-section.tsx
|
|
135
|
-
import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
136
|
-
function CTASection({ title, description, cta, children }) {
|
|
137
|
-
return /* @__PURE__ */ jsx7("section", { children: /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center justify-center text-center py-16 px-6", children: [
|
|
138
|
-
/* @__PURE__ */ jsx7("h2", { className: "text-2xl font-semibold text-fd-foreground sm:text-3xl", children: title }),
|
|
139
|
-
description && /* @__PURE__ */ jsx7("p", { className: "mt-2 text-fd-muted-foreground max-w-md", children: description }),
|
|
140
|
-
/* @__PURE__ */ jsx7(
|
|
141
|
-
"a",
|
|
142
|
-
{
|
|
143
|
-
href: cta.href,
|
|
144
|
-
className: "mt-6 inline-flex h-10 items-center justify-center rounded-lg bg-fd-primary px-6 text-sm font-medium text-fd-primary-foreground shadow transition-colors hover:bg-fd-primary/90",
|
|
145
|
-
children: cta.label
|
|
146
|
-
}
|
|
147
|
-
),
|
|
148
|
-
children
|
|
149
|
-
] }) });
|
|
150
|
-
}
|
|
151
|
-
export {
|
|
152
|
-
CTASection,
|
|
153
|
-
DocsBody,
|
|
154
|
-
DocsLayout,
|
|
155
|
-
DocsPage,
|
|
156
|
-
GitHubIcon,
|
|
157
|
-
HomeLayout,
|
|
158
|
-
HomePage,
|
|
159
|
-
InstallBlock,
|
|
160
|
-
Logo,
|
|
161
|
-
RootLayout,
|
|
162
|
-
createBaseOptions,
|
|
163
|
-
createSource,
|
|
164
|
-
defineConfig,
|
|
165
|
-
loader
|
|
166
|
-
};
|
|
1
|
+
export { RootLayout } from "./layouts/root";
|
|
2
|
+
export { DocsLayout } from "./layouts/docs";
|
|
3
|
+
export { DocsPage, DocsBody } from "./layouts/docs-page";
|
|
4
|
+
export { HomeLayout, HomePage } from "./layouts/home";
|
|
5
|
+
export { createBaseOptions } from "./layouts/shared";
|
|
6
|
+
export { defineConfig } from "./config";
|
|
7
|
+
export { createSource, loader } from "./source";
|
|
8
|
+
export { InstallBlock } from "./components/install-block";
|
|
9
|
+
export { Logo } from "./components/logo";
|
|
10
|
+
export { GitHubIcon } from "./components/icons";
|
|
11
|
+
export { CTASection } from "./components/cta-section";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DocsBody } from "fumadocs-ui/page";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface DocsPageProps {
|
|
4
|
+
toc?: any[];
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function DocsPage({ toc, children }: DocsPageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { DocsBody };
|
|
9
|
+
//# sourceMappingURL=docs-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-page.d.ts","sourceRoot":"","sources":["../../src/layouts/docs-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAMxD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DocsPage as FumaDocsPage, DocsBody } from "fumadocs-ui/page";
|
|
3
|
+
export function DocsPage({ toc, children }) {
|
|
4
|
+
return (_jsx(FumaDocsPage, { toc: toc, children: _jsx(DocsBody, { children: children }) }));
|
|
5
|
+
}
|
|
6
|
+
export { DocsBody };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { OnedocsConfig } from "../config";
|
|
3
|
+
interface DocsLayoutProps {
|
|
4
|
+
config: OnedocsConfig;
|
|
5
|
+
pageTree: any;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function DocsLayout({ config, pageTree, children }: DocsLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/layouts/docs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAMzE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DocsLayout as FumaDocsLayout } from "fumadocs-ui/layouts/docs";
|
|
3
|
+
import { createBaseOptions } from "./shared";
|
|
4
|
+
export function DocsLayout({ config, pageTree, children }) {
|
|
5
|
+
return (_jsx(FumaDocsLayout, { ...createBaseOptions(config), tree: pageTree, children: children }));
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OnedocsConfig } from "../config";
|
|
2
|
+
interface HomeLayoutProps {
|
|
3
|
+
config: OnedocsConfig;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function HomeLayout({ config, children }: HomeLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
interface HomePageProps {
|
|
8
|
+
config: OnedocsConfig;
|
|
9
|
+
packageName?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function HomePage({ config, packageName, children }: HomePageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=home.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../src/layouts/home.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAI/D;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAkFxE"}
|