-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.e2e.js
124 lines (112 loc) · 2.86 KB
/
config.e2e.js
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
export const api = {
'url': 'http://localhost:9002'
}
export const publicApi = {
'url': 'http://localhost:9002'
}
export const siteName = 'E2E Test Site';
export const mainAuthor = 'john doe';
export const lang = "ja";
export const locale = "ja_JP";
export const url = 'http://localhost:3000';
export const favicon = {
"url": "your/favicon.ico",
"type": "img"
};
export const defaultImage = 'defaultImage.jpg';
// NOTE: NTML support
export const title = 'E2E Test Site Title'
export const subTitle = 'E2E Test Site Subtitle'
export const defaultRobotsMeta = "noarchive, nofollow, noimageindex, noindex"
export const archivesPage = {
'titlePlaceholder': 'filter by title',
'found': 'posts'
}
export const tagsPage = {
'titlePlaceholder': 'filter by tag name',
'found': 'tags'
}
export const headerItems = [
{
'url': '/',
'position': 'left', //left or right
'text': 'Home',
'content': 'Go to Home' // HTML support
}
]
export const coverBottomItems = [
{
'url': '/archives/',
'position': 'left', //left or right
'text': 'Archives',
'content': 'Go to Archives' // HTML support
}
]
// NOTE: HTML support
export const copyrights = '© jhon due'
export const footerItems = [
{
'url': '/',
'text': 'FooterHome'
},
{
'url': '/about',
'text': 'FooterAbout'
}
]
// Inject <meta> to all pages. Only supports `name` and `content`.
export const injectMetas = [
{
"name": "injectedMetaName",
"content": "injectedMetaContent"
}
]
// NOTE: inject external resource (perhaps from CDN) to under the <head>.
export const externalResources = [
{
'kind': 'js',
'src': {
'key': 'mermaid', // must be same with registerd db record key
'async': false,
'src': "https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js",
},
'code': {
'key': 'mermaid', // must be same with registerd db record key
'async': false,
'type': "text/javascript",
'code': `window.onload = function () {
mermaid.initialize({startOnLoad:true});
};`
}
},
{
'kind': 'js',
'src': {
'key': 'mathjax', // must be same with registerd db record key
'async': false,
'src': "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML",
},
'code': {
'key': 'mathjax', // must be same with registerd db record key
'async': false,
'type': "text/x-mathjax-config",
'code': `MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
processEscapes: true
},
CommonHTML: { matchFontHeight: false }
});`
}
}
]
// Should not send request list to API server
export const filterRequestPaths = [
'**.svg',
'**.jpg',
'**.png',
'**.xml',
'**.ico',
'**.webp'
]