theme-reco

5/29/2020

.vuepress/config.js 配置表

module.exports = {
  "title": "疯狂的萝卜",
  "description": "my blog,hello",
  "dest": "public",
  "port": 8280,
  "head": [
    [
      "link",
      {
        "rel": "icon",
        "href": "/favicon.ico"
      }
    ],
    [
      "meta",
      {
        "name": "viewport",
        "content": "width=device-width,initial-scale=1,user-scalable=no"
      }
    ]
  ],
  "theme": "reco",
  "themeConfig": {
    "nav": [
      {
        "text": "主页",
        "link": "/",
        "icon": "reco-home"
      },
      {
        "text": "时间线",
        "link": "/timeline/",
        "icon": "reco-date"
      },
      {
        "text": "文档",
        "icon": "reco-message",
        "items": [
          {
            "text": "vuepress-reco",
            "link": "/docs/theme-reco/"
          },
          {
            "text": "Unity3D",
            "link": "/docs/unity/"
          },
		   {
            "text": "xlua",
            "link": "/docs/xlua/"
          },
        ]
      },
      {
        "text": "Contact",
        "icon": "reco-message",
        "items": [
          {
            "text": "GitHub",
            "link": "https://github.com/recoluan",
            "icon": "reco-github"
          }
        ]
      }
    ],
	"sidebar":{
		'/docs/theme-reco/':[
			{
				title: 'theme-reco',
				// sidebarDepth: 3,
				collapsable: true,
				children: [
					
					{title: '接口', path: 'api'},
				]
			},
			
		],
		"/docs/Unity/":	[
			{
					title: 'Unity',
					sidebarDepth: 2, // 这里对侧边栏目录显示的标题级别深度起作用
					collapsable: true,
					children: [
						{title: '常用', path: '常用'},
					]
				}	
		],	
		"/docs/xlua/":	[
			{
					title: 'xlua',
					sidebarDepth: 2, // 这里对侧边栏目录显示的标题级别深度起作用
					collapsable: true,
					children: [
						{title: '简介', path: '简介'},
					]
				}	
		],
	},
    "sidebar1": {
      "/docs/theme-reco/": [
        "",
        "theme",
        "plugin",
        "api"
      ],
	   "/docs/Unity/": [
        "",
		"常用"
      ],
	  "/docs/xlua/": [
        "",
		"简介"
      ],
    },
    "type": "blog",
    "blogConfig": {
      "category": {
        "location": 2,
        "text": "分门别类"
      },
      "tag": {
        "location": 3,
        "text": "标签"
      }
    },
    "friendLink": [
      {
        "title": "午后南杂",
        "desc": "Enjoy when you can, and endure when you must.",
        "email": "1156743527@qq.com",
        "link": "https://www.recoluan.com"
      },
      {
        "title": "主题vuepress-theme-reco",
        "desc": "A simple and beautiful vuepress Blog & Doc theme.",
        "avatar": "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
        "link": "https://vuepress-theme-reco.recoluan.com"
      }
    ],
    "logo": "/logo.png",
    "search": true,
    "searchMaxSuggestions": 10,
    "lastUpdated": "Last Updated",
    "author": "helloz",
    "authorAvatar": "/avatar.png",
	// 项目开始时间,只填写年份
    "startYear": "2023",
	// 自动形成侧边导航
	subSidebar: 'auto',
    sidebarDepth: 4,
	// 备案
    record: 'ICP 备案文案',
    recordLink: 'ICP 备案指向链接',
    cyberSecurityRecord: '公安部备案文案',
    cyberSecurityLink: '公安部备案指向链接',
	author: 'helloz',
  },
  "markdown": {
    "lineNumbers": true
  },
  plugins: [
      // 更新刷新插件
      ['@vuepress/pwa', {
        serviceWorker: true,
        updatePopup: {
            message: "发现新内容可用",
            buttonText: "刷新"
        }
      }],
    // 代码复制弹窗插件
      ["vuepress-plugin-nuggets-style-copy", {
        copyText: "copy",
        tip: {
            content: "复制成功!"
        }
      }],
      ['@vuepress/last-updated', 
        {
          transformer: (timestamp, lang) => {
            return (new Date(timestamp)).toUTCString() 
            //或者用下面这段
            // const moment = require('moment')
            // moment.locale(lang)
            // return moment(timestamp).toLocaleString()
          }
        }],
      ['@vuepress-reco/vuepress-plugin-pagation', {
        perPage: 16
      }],
      ['sitemap', {
        hostname: 'https://conimi.com'
      }],
    ]
}
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
"sidebar3":{
		'/docs/theme-reco/':[
			{
				title: 'theme-reco',
				// sidebarDepth: 3,
				collapsable: true,
				children: [
					
					{title: '接口', path: 'api'},
				]
			},
			
		],
		"/docs/Unity/":	[
			{
					title: 'Unity',
					sidebarDepth: 2, // 这里对侧边栏目录显示的标题级别深度起作用
					collapsable: true,
					children: [
						{title: '常用', path: '常用'},
					]
				}	
		],
	},
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Last Updated: Fri, 21 Apr 2023 17:30:46 GMT