-
Notifications
You must be signed in to change notification settings - Fork 41
/
index.html
139 lines (139 loc) · 4.01 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>right-menu 右键菜单插件</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/buuing/docsify-theme-blue/index.css" />
<link rel="stylesheet" href="./static/main.css">
<style>
</style>
</head>
<body>
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/@right-menu/core@latest"></script>
<script>
const rm = new RightMenu({
el: window
}, [
{
type: 'ul',
text: `关于 right-menu`,
children: [
{
type: 'li',
text: `version@latest`,
disabled: true
},
{ type: 'hr' },
{
type: 'li',
text: 'Github 仓库',
callback: async () => window.open('https://github.com/buuing/right-menu')
},
{
type: 'li',
text: 'Bug 反馈',
callback: () => window.open('https://github.com/buuing/right-menu/issues/new')
},
{ type: 'hr' },
{
type: 'li',
text: '入门教程',
disabled: true
},
{
type: 'li',
text: '高级配置',
disabled: true
},
{ type: 'hr' },
{
type: 'li',
text: '查看历史更新',
disabled: true
},
{ type: 'hr' },
{
type: 'li',
text: '📋 开源协议 License MIT',
callback: () => window.open('https://github.com/buuing/right-menu/blob/master/LICENSE')
}
]
}
])
window.$docsify = {
name: '首页',
nameLink: '/right-menu/',
// 主题色
themeColor: '#6190e8',
// 入口文件
homepage: 'README.md',
// 右上方渲染github挂钟
repo: 'buuing/right-menu',
// 定制侧边栏
loadSidebar: true,
// 抓取目录渲染
maxLevel: 3,
subMaxLevel: 3,
// 开启封面页
coverpage: false,
// 切换页面后跳到顶部
auto2top: false,
// 小屏设备下合并导航栏到侧边栏
mergeNavbar: true,
// 开启导航栏
loadNavbar: false,
// 路由
alias: {
'/.*/_sidebar.md': '/_sidebar.md',
},
// 搜索框
search: {
// 目录
paths: 'auto',
// 默认文字
placeholder: '搜索',
// 404显示
noData: '找不到结果'
},
executeScript: true,
// mini sandbox 公共配置
sandboxOptions: {
resource: {
css: `
.right-menu {
height: 100px;
background: #ccc;
text-align: center;
line-height: 100px;
}
`,
js: `
window.options = [
{ type: 'li', text: 'asd' }
]
`,
jsLibs: ['https://cdn.jsdelivr.net/npm/@right-menu/core@latest']
},
defaultConfig: {
height: '350px',
editorRange: '50%',
},
},
}
</script>
<script src="./static/docsify.min.js"></script>
<script src="./static/search.js"></script>
<script src="./static/docsify-copy-code.js"></script>
<script src="./static/prism-bash.js"></script>
<script src="./static/prism-jsx.js"></script>
<script src="./static/prism-tsx.js"></script>
<script src="./static/prism-typescript.js"></script>
<script src="https://cdn.jsdelivr.net/combine/npm/mini-sandbox@0.3.9,npm/mini-sandbox@0.3.9/dist/docsify-plugin.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mini-sandbox@0.3.9/dist/vue-loader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mini-sandbox@0.3.9/dist/react-loader.js"></script>
</body>
</html>