create-fumadocs-app 15.0.17 → 15.1.0
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.
|
@@ -60,7 +60,7 @@ function tryGitInit(root) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/versions.js
|
|
63
|
-
var versions = { "fumadocs-core": "15.0
|
|
63
|
+
var versions = { "fumadocs-core": "15.1.0", "fumadocs-ui": "15.1.0", "fumadocs-mdx": "11.5.6", "@fumadocs/content-collections": "1.1.8" };
|
|
64
64
|
|
|
65
65
|
// ../create-app-versions/package.json
|
|
66
66
|
var package_default = {
|
package/dist/create-app.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from 'fumadocs-ui/page';
|
|
9
9
|
import { notFound } from 'next/navigation';
|
|
10
10
|
import { MDXContent } from '@content-collections/mdx/react';
|
|
11
|
-
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
11
|
+
import defaultMdxComponents, { createRelativeLink } from 'fumadocs-ui/mdx';
|
|
12
12
|
|
|
13
13
|
export default async function Page(props: {
|
|
14
14
|
params: Promise<{ slug?: string[] }>;
|
|
@@ -24,7 +24,12 @@ export default async function Page(props: {
|
|
|
24
24
|
<DocsBody>
|
|
25
25
|
<MDXContent
|
|
26
26
|
code={page.data.body}
|
|
27
|
-
components={{
|
|
27
|
+
components={{
|
|
28
|
+
...defaultMdxComponents,
|
|
29
|
+
// this allows you to link to other pages with relative file paths
|
|
30
|
+
a: createRelativeLink(source, page),
|
|
31
|
+
// you can add other MDX components here
|
|
32
|
+
}}
|
|
28
33
|
/>
|
|
29
34
|
</DocsBody>
|
|
30
35
|
</DocsPage>
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
DocsTitle,
|
|
7
7
|
} from 'fumadocs-ui/page';
|
|
8
8
|
import { notFound } from 'next/navigation';
|
|
9
|
-
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
9
|
+
import defaultMdxComponents, { createRelativeLink } from 'fumadocs-ui/mdx';
|
|
10
10
|
|
|
11
11
|
export default async function Page(props: {
|
|
12
12
|
params: Promise<{ slug?: string[] }>;
|
|
@@ -15,14 +15,21 @@ export default async function Page(props: {
|
|
|
15
15
|
const page = source.getPage(params.slug);
|
|
16
16
|
if (!page) notFound();
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const MDXContent = page.data.body;
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<DocsPage toc={page.data.toc} full={page.data.full}>
|
|
22
22
|
<DocsTitle>{page.data.title}</DocsTitle>
|
|
23
23
|
<DocsDescription>{page.data.description}</DocsDescription>
|
|
24
24
|
<DocsBody>
|
|
25
|
-
<
|
|
25
|
+
<MDXContent
|
|
26
|
+
components={{
|
|
27
|
+
...defaultMdxComponents,
|
|
28
|
+
// this allows you to link to other pages with relative file paths
|
|
29
|
+
a: createRelativeLink(source, page),
|
|
30
|
+
// you can add other MDX components here
|
|
31
|
+
}}
|
|
32
|
+
/>
|
|
26
33
|
</DocsBody>
|
|
27
34
|
</DocsPage>
|
|
28
35
|
);
|