Skip to content

Commit 4c4a505

Browse files
nijamanijamaDev
nijama
authored andcommitted
Better comments
1 parent fb02090 commit 4c4a505

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

site.config.ts

+37-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
import { siteConfig } from './lib/site-config'
22

33
export default siteConfig({
4-
// the site's root Notion page (required)
4+
/* (required)
5+
The site's root Notion page
6+
*/
57
rootNotionPageId: '7875426197cf461698809def95960ebf',
68

7-
// if you want to restrict pages to a single notion workspace (optional)
8-
// (this should be a Notion ID; see the docs for how to extract this)
9+
/* (optional)
10+
if you want to restrict pages to a single notion workspace
11+
(this should be a Notion ID; see the docs for how to extract this)
12+
*/
913
rootNotionSpaceId: null,
1014

11-
// basic site info (required)
15+
/* (required)
16+
Basic site info
17+
*/
1218
name: 'Next.js Notion Starter Kit',
1319
domain: 'nextjs-notion-starter-kit.transitivebullsh.it',
1420
author: 'Travis Fischer',
1521

16-
// open graph metadata (optional)
22+
/* (optional)
23+
Open graph metadata
24+
*/
1725
description: 'Example Next.js Notion Starter Kit Site',
1826

1927
/* (optional)
@@ -28,32 +36,43 @@ export default siteConfig({
2836
// newsletter: '#', /* Optional newsletter URL */
2937
// youtube: '#', /* Optional youtube channel name or `channel/UCGbXXXXXXXXXXXXXXXXXXXXXX` */
3038

31-
// default notion icon and cover images for site-wide consistency (optional)
32-
// page-specific values will override these site-wide defaults
39+
/* (optional)
40+
Default notion icon and cover images for site-wide consistency.
41+
Page-specific values will override these site-wide defaults.
42+
*/
3343
defaultPageIcon: null,
3444
defaultPageCover: null,
3545
defaultPageCoverPosition: 0.5,
3646

37-
// whether or not to enable support for LQIP preview images (optional)
47+
/* (optional)
48+
Whether or not to enable support for LQIP preview images.
49+
*/
3850
isPreviewImageSupportEnabled: true,
3951

40-
// whether or not redis is enabled for caching generated preview images (optional)
41-
// NOTE: if you enable redis, you need to set the `REDIS_HOST` and `REDIS_PASSWORD`
42-
// environment variables. see the readme for more info
52+
/* (optional)
53+
Whether or not redis is enabled for caching generated preview images.
54+
NOTE: if you enable redis, you need to set the `REDIS_HOST`
55+
and `REDIS_PASSWORD` environment variables.
56+
See the readme for more info.
57+
*/
4358
isRedisEnabled: false,
4459

45-
// map of notion page IDs to URL paths (optional)
46-
// any pages defined here will override their default URL paths
47-
// example:
48-
//
60+
/* (optional)
61+
Map of notion page IDs to URL paths.
62+
Any pages defined here will override their default URL paths.
63+
Example:
64+
*/
4965
// pageUrlOverrides: {
5066
// '/foo': '067dd719a912471ea9a3ac10710e7fdf',
5167
// '/bar': '0be6efce9daf42688f65c76b89f8eb27'
5268
// }
5369
pageUrlOverrides: null,
5470

55-
// whether to use the default notion navigation style or a custom one with links to
56-
// important pages. To use `navigationLinks`, set `navigationStyle` to `custom`.
71+
/*
72+
Whether to use the default notion navigation style
73+
or a custom one with links to important pages.
74+
To use `navigationLinks`, set `navigationStyle` to `custom`.
75+
*/
5776
navigationStyle: 'default'
5877
// navigationStyle: 'custom',
5978
// navigationLinks: [
@@ -63,7 +82,7 @@ export default siteConfig({
6382
// },
6483
// {
6584
// title: 'Contact',
66-
// pageId: '6a29ebcb935a4f0689fe661ab5f3b8d1'
85+
// url: 'https://twitter.com/transitive_bs'
6786
// }
6887
// ]
6988
})

0 commit comments

Comments
 (0)