File tree 7 files changed +16
-9
lines changed
packages/cli/src/templates
7 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 13
13
a
14
14
yes
15
15
soon
16
- website
16
+ website
17
+ test *
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default {
26
26
toggleFolders : false , // Beware! Experimental feature
27
27
separate : false ,
28
28
appName : 'Doxium' ,
29
+ appDescription : 'A documentation system for Next.js' ,
29
30
showAppNameInTitle : true ,
30
31
scollHeightBreakpoint : 300 ,
31
32
showEditInGithub : true ,
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ export interface DoxiumConfig {
108
108
} ;
109
109
misc : {
110
110
toggleFolders : boolean ; // Experimental: Folder collapse feature
111
- appName : string ;
111
+ appName ?: string ;
112
+ appDescription ?: string ;
112
113
showAppNameInTitle : boolean ;
113
114
separate : boolean ;
114
115
scollHeightBreakpoint : number ;
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import rehypeMdxCodeProps from 'rehype-mdx-code-props';
16
16
import remarkGfm from 'remark-gfm' ;
17
17
import remarkMath from 'remark-math' ;
18
18
19
+ const colorScheme = config . style . colorScheme ;
20
+
19
21
export const generateStaticParams = async ( ) => {
20
22
try {
21
23
const files = await getAllMdxSlugs ( ) ;
@@ -46,8 +48,6 @@ export const generateMetadata = async ({ params }: { params: params }) => {
46
48
} ;
47
49
} ;
48
50
49
- const colorScheme = config . style . colorScheme ;
50
-
51
51
const Page = async ( { params } : { params : params } ) => {
52
52
try {
53
53
const slug = ( await params ) . slug ?. join ( '/' ) || 'index' ;
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ import './globals.css';
8
8
9
9
const inter = Inter ( { subsets : [ 'latin' ] } ) ;
10
10
const colorScheme = config . style . colorScheme ;
11
+ const appName = config . misc . appName ;
12
+ const appDescription = config . misc . appDescription ;
11
13
12
14
export const metadata : Metadata = {
13
- title : 'Doxium app' ,
14
- description : 'New doxium app generated by create- doxium-app ' ,
15
+ title : appName ?? 'Doxium app' ,
16
+ description : appDescription ?? 'New doxium app generated by @ doxium/cli ' ,
15
17
} ;
16
18
17
19
const RootLayout = async ( {
Original file line number Diff line number Diff line change 1
1
// @ts -nocheck
2
2
3
- import { Button } from '@doxium/ui' ;
4
3
import { FiChevronRight } from '@vertisanpro/react-icons/fi' ;
4
+ import { Button } from 'doxium/components/button' ;
5
5
import Link from 'next/link' ;
6
6
7
7
const Home = ( ) => {
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ import './globals.css';
13
13
14
14
const inter = Inter ( { subsets : [ 'latin' ] } ) ;
15
15
const colorScheme = config . style . colorScheme ;
16
+ const appName = config . misc . appName ;
17
+ const appDescription = config . misc . appDescription ;
16
18
17
19
export const metadata : Metadata = {
18
- title : 'Doxium app' ,
19
- description : 'New doxium app generated by create- doxium-app ' ,
20
+ title : appName ?? 'Doxium app' ,
21
+ description : appDescription ?? 'New doxium app generated by @ doxium/cli ' ,
20
22
} ;
21
23
22
24
const RootLayout = async ( {
You can’t perform that action at this time.
0 commit comments