generated from HEIGE-PCloud/Notion-Hugo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notion-hugo.config.ts
47 lines (45 loc) · 1.85 KB
/
notion-hugo.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { UserConfig } from "./src/config"
const userConfig: UserConfig = {
mount: {
manual: false,
page_url: 'https://www.notion.so/ajiangstudy/Notion-DoIt-cc6cc02f69974c8490534b32026bec96?pvs=4',
pages: [
// {
// page_id: '<page_id>',
// target_folder: 'path/relative/to/content/folder'
// }
{
page_id: 'Notion-DoIt-cc6cc02f69974c8490534b32026bec96',
target_folder: '.'
}
],
databases: [
// {
// database_id: '<database_id>',
// target_folder: 'path/relative/to/content/folder'
// }
{
database_id: 'b7b1816c05ec464391c8c111fa242985',
target_folder: '.'
}
],
},
formatter: {
equation: {
// config how maths equations are rendered into markdown
// there are three options (markdown, shortcode, html)
// the markdown option renders the equations in default markdown flavor:
// \(inline equation\) \[displayed equation\]
// the shortcode option renders the equations into the math shortcode
// which relies on your Hugo theme to support and render the equations
// the html option directly renders equations into HTML + MathML
// when converting your Notion page into the markdown file,
// it makes the markdown file a lot less readable but it works for all themes.
// `markup.goldmark.renderer.unsafe` needs to be set to true for the HTML tags to work,
// which is the default setting.
// https://gohugo.io/getting-started/configuration-markup///configure-markup
style: 'html'
}
}
}
module.exports = userConfig