File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { mdxComponents } from "@/src/components/mdx-components" ;
2
2
import { docsSource } from "@/src/lib/source" ;
3
- import { MDXContent } from ' @content-collections/mdx/react' ;
3
+ import { MDXContent } from " @content-collections/mdx/react" ;
4
4
import { DocsBody , DocsDescription , DocsPage , DocsTitle } from "fumadocs-ui/page" ;
5
5
import { notFound } from "next/navigation" ;
6
6
@@ -15,25 +15,23 @@ export default async function Page(props: any) {
15
15
if ( ! page ) notFound ( ) ;
16
16
17
17
const authors = page . data . authors || [ ] ;
18
-
18
+
19
19
return (
20
20
< DocsPage toc = { page . data . toc } full = { page . data . full } >
21
21
< DocsTitle > { page . data . title } </ DocsTitle >
22
22
< DocsDescription > { page . data . description } </ DocsDescription >
23
- { page . data . updatedAt ?
24
- < span className = "text-sm text-gray-500" > 해당 글은 { page . data . updatedAt } 에 수정되었습니다.</ span > :
25
- page . data . createdAt ? < span className = "text-sm text-gray-500" > 해당 글은 { page . data . createdAt } 에 작성되었습니다.</ span > : null
26
- }
23
+ { page . data . updatedAt ? (
24
+ < span className = "text-sm text-gray-500" > 해당 글은 { page . data . updatedAt } 에 수정되었습니다.</ span >
25
+ ) : page . data . createdAt ? (
26
+ < span className = "text-sm text-gray-500" > 해당 글은 { page . data . createdAt } 에 작성되었습니다.</ span >
27
+ ) : null }
27
28
< div className = "flex gap-4" >
28
29
{ authors . map ( ( author ) => (
29
30
< Author key = { author } name = { author } />
30
31
) ) }
31
32
</ div >
32
33
< DocsBody >
33
- < MDXContent
34
- code = { page . data . body }
35
- components = { { ...mdxComponents as MDXComponents } }
36
- />
34
+ < MDXContent code = { page . data . body } components = { { ...( mdxComponents as MDXComponents ) } } />
37
35
</ DocsBody >
38
36
</ DocsPage >
39
37
) ;
Original file line number Diff line number Diff line change 1
- import { withContentCollections } from ' @content-collections/next' ;
1
+ import { withContentCollections } from " @content-collections/next" ;
2
2
3
3
// const withMDX = createMDX();
4
4
5
5
/** @type {import('next').NextConfig } */
6
6
const config = {
7
- output : ' export' ,
7
+ output : " export" ,
8
8
reactStrictMode : true ,
9
+ trailingSlash : true ,
9
10
images : { unoptimized : true } ,
10
11
webpack : ( config ) => {
11
12
config . module . rules . push ( {
12
13
test : / \. y a ? m l $ / ,
13
- use : ' yaml-loader' ,
14
+ use : " yaml-loader" ,
14
15
} ) ;
15
16
return config ;
16
17
} ,
You can’t perform that action at this time.
0 commit comments