-
-
Notifications
You must be signed in to change notification settings - Fork 103
/
pagic.config.tsx
136 lines (135 loc) · 3.94 KB
/
pagic.config.tsx
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// import { React } from './deps.ts';
export default {
srcDir: 'pagic.org',
theme: 'docs',
plugins: ['sidebar', 'prev_next', 'i18n', 'blog', 'ga'],
title: 'Pagic',
description: 'A static site generator powered by Deno + React',
// head: (
// <>
// <script src="https://cdn.pagic.org/vconsole@3.3.4/dist/vconsole.min.js" />
// <script dangerouslySetInnerHTML={{ __html: 'var vConsole = new VConsole();' }} />
// </>
// ),
nav: [
{
text: 'Docs',
link: '/docs/introduction.html',
},
{
text: 'Themes',
link: '/themes/index.html',
},
{
text: 'Plugins',
link: '/plugins/index.html',
},
{
text: 'Blog',
link: '/blog/index.html',
},
{
text: 'About',
link: '/about/index.html',
},
],
github: 'https://github.com/xcatliu/pagic',
sidebar: {
'/docs/': [
'docs/introduction.md',
'docs/usage.md',
'docs/config.md',
'docs/content.md',
'docs/layout.md',
'docs/themes.md',
'docs/plugins.md',
'docs/blog.md',
'docs/i18n.md',
'docs/deployment.md',
'docs/demos.md',
'docs/limitations.md',
],
},
ga: {
id: 'UA-45256157-16',
},
blog: {
root: '/blog/',
},
i18n: {
languages: [
{ code: 'en', name: 'English', root: '/' },
{ code: 'zh-CN', name: '简体中文', root: '/zh-CN/' },
],
overrides: {
'zh-CN': {
nav: [
{
text: '文档',
link: '/zh-CN/docs/introduction.html',
},
{
text: '主题',
link: '/zh-CN/themes/index.html',
},
{
text: '插件',
link: '/zh-CN/plugins/index.html',
},
{
text: '博客',
link: '/zh-CN/blog/index.html',
},
{
text: '关于',
link: '/zh-CN/about/index.html',
},
],
sidebar: {
'/zh-CN/docs/': [
'zh-CN/docs/introduction.md',
'zh-CN/docs/usage.md',
'zh-CN/docs/config.md',
'zh-CN/docs/content.md',
'zh-CN/docs/layout.md',
'zh-CN/docs/themes.md',
'zh-CN/docs/plugins.md',
'zh-CN/docs/blog.md',
'zh-CN/docs/i18n.md',
'zh-CN/docs/deployment.md',
'zh-CN/docs/demos.md',
'zh-CN/docs/limitations.md',
],
},
blog: {
root: '/zh-CN/blog/',
},
},
},
resources: {
'zh-CN': {
translation: {
'A static site generator powered by Deno + React': 'Deno + React 驱动的静态网站生成器',
'Get Started': '开始使用',
Demos: '示例网站',
'Easy to configure': '配置简单',
'Convention over configuration': '约定优于配置',
'Single config file': '一个配置文件',
'Intuitive design': '符合直觉的设计',
'Support md and tsx': '支持 md 和 tsx',
'Render <1>md/tsx</1> to static HTML page': '支持将 <1>md/tsx</1> 文件渲染成静态页面',
'Support React Hooks': '支持 React Hooks',
'Pre-render to static HTML, run as an SPA once loaded': '预渲染生成静态 HTML,加载后作为 SPA 运行',
'Themes and plugins': '主题和插件',
'Official themes default/docs/blog with dark mode': '内置 default, docs, blog 等主题,支持黑暗模式',
'Combine plugins to build process': '构建过程由插件组成,可随意组合',
'Import third-party themes or plugins through URL': '通过 URL 引入第三方主题或插件',
'Get up and running in seconds': '只需几行命令,快来体验吧',
'Install pagic': '安装 pagic',
'Create pagic.config.ts and README.md': '创建 pagic.config.ts 和 README.md',
'Run pagic': '运行 pagic',
},
},
},
},
};