Skip to content

Commit a2177ff

Browse files
committed
fix: init new rep
1 parent fb3d3e1 commit a2177ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+23168
-9450
lines changed

.gitignore

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
/builds
5-
6-
# local env files
7-
.env.local
8-
.env.*.local
9-
10-
# Log files
11-
npm-debug.log*
12-
yarn-debug.log*
13-
yarn-error.log*
14-
pnpm-debug.log*
15-
16-
# Editor directories and files
17-
.idea
18-
.vscode
19-
.obsidian
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
1+
.DS_Store
2+
node_modules
3+
/dist
4+
/builds
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
.obsidian
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
2525
*.sh

LICENSE

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2021 Elgar17
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2021 Elgar17
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
+39-39
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
2-
<template>
3-
<div class="gitalk-container">
4-
<div id="gitalk-container"></div>
5-
</div>
6-
</template>
7-
<script>
8-
import 'gitalk/dist/gitalk.css'
9-
10-
export default {
11-
name: 'comment',
12-
data() {
13-
return {};
14-
},
15-
mounted() {
16-
let body = document.querySelector('.gitalk-container');
17-
let script = document.createElement('script');
18-
script.src = 'https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js';
19-
body.appendChild(script);
20-
script.onload = () => {
21-
const commentConfig = {
22-
clientID: 'a39f2ead2e12644980fb',
23-
clientSecret: 'dd715cf3e807d81644a0947379253ae68bad3ff3',
24-
repo: 'note',
25-
owner: 'Elgar17',
26-
// 这里接受一个数组,可以添加多个管理员
27-
admin: ['Elgar17'],
28-
// id 用于当前页面的唯一标识,一般来讲 pathname 足够了,
29-
30-
// 但是如果你的 pathname 超过 50 个字符,GitHub 将不会成功创建 issue,此情况可以考虑给每个页面生成 hash 值的方法.
31-
id: location.pathname,
32-
distractionFreeMode: false,
33-
};
34-
const gitalk = new Gitalk(commentConfig);
35-
gitalk.render('gitalk-container');
36-
};
37-
},
38-
};
39-
</script>
1+
2+
<template>
3+
<div class="gitalk-container">
4+
<div id="gitalk-container"></div>
5+
</div>
6+
</template>
7+
<script>
8+
import 'gitalk/dist/gitalk.css'
9+
10+
export default {
11+
name: 'comment',
12+
data() {
13+
return {};
14+
},
15+
mounted() {
16+
let body = document.querySelector('.gitalk-container');
17+
let script = document.createElement('script');
18+
script.src = 'https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js';
19+
body.appendChild(script);
20+
script.onload = () => {
21+
const commentConfig = {
22+
clientID: 'a39f2ead2e12644980fb',
23+
clientSecret: 'dd715cf3e807d81644a0947379253ae68bad3ff3',
24+
repo: 'note',
25+
owner: 'Elgar17',
26+
// 这里接受一个数组,可以添加多个管理员
27+
admin: ['Elgar17'],
28+
// id 用于当前页面的唯一标识,一般来讲 pathname 足够了,
29+
30+
// 但是如果你的 pathname 超过 50 个字符,GitHub 将不会成功创建 issue,此情况可以考虑给每个页面生成 hash 值的方法.
31+
id: location.pathname,
32+
distractionFreeMode: false,
33+
};
34+
const gitalk = new Gitalk(commentConfig);
35+
gitalk.render('gitalk-container');
36+
};
37+
},
38+
};
39+
</script>

docs/.vuepress/config.js

+56-56
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
const Nav = require("./nav.js")
2-
const Sidebar = require("./sidebar/index.js")
3-
4-
module.exports = {
5-
title: '前端到全栈',
6-
base: '/docs/',
7-
head: [
8-
['link', {
9-
rel: 'icon',
10-
href: '/favicon.png'
11-
}],
12-
[
13-
'meta', {
14-
name: 'baidu-site-verification',
15-
content: 'code-qGZsGsi6Kf'
16-
}
17-
],
18-
// 添加百度统计
19-
[
20-
"script",
21-
{},
22-
`var _hmt = _hmt || [];
23-
(function() {
24-
var hm = document.createElement("script");
25-
hm.src = "https://hm.baidu.com/hm.js?fc5ff755829e74db29f25cb68a49a4e1";
26-
var s = document.getElementsByTagName("script")[0];
27-
s.parentNode.insertBefore(hm, s);
28-
})();`
29-
],
30-
['meta', {
31-
name: 'keywords',
32-
content: '专注于 Vue 和 Go 语言'
33-
}]
34-
],
35-
description: '专注于 Vue 和 Go 语言', // 描述
36-
dest: './dist', // 设置输出目录
37-
port: 2233, // 端口
38-
39-
themeConfig: { // 主题配置
40-
lastUpdated: '更新时间', // string | boolean
41-
nav: Nav, // 添加导航栏
42-
sidebar: Sidebar, // 为以下路由添加侧边栏
43-
darkMode: true
44-
},
45-
plugins: {
46-
'sitemap': {
47-
hostname: "http://www.kz321.com/docs",
48-
// 排除无实际内容的页面
49-
exclude: ["/404.html"]
50-
},
51-
'robots': {
52-
host: "http://www.kz321.com/docs",
53-
disallowAll: true,
54-
sitemap: "/sitemap.xml",
55-
}
56-
}
1+
const Nav = require("./nav.js")
2+
const Sidebar = require("./sidebar/index.js")
3+
4+
module.exports = {
5+
title: '前端到全栈',
6+
base: '/docs/',
7+
head: [
8+
['link', {
9+
rel: 'icon',
10+
href: '/favicon.png'
11+
}],
12+
[
13+
'meta', {
14+
name: 'baidu-site-verification',
15+
content: 'code-qGZsGsi6Kf'
16+
}
17+
],
18+
// 添加百度统计
19+
[
20+
"script",
21+
{},
22+
`var _hmt = _hmt || [];
23+
(function() {
24+
var hm = document.createElement("script");
25+
hm.src = "https://hm.baidu.com/hm.js?fc5ff755829e74db29f25cb68a49a4e1";
26+
var s = document.getElementsByTagName("script")[0];
27+
s.parentNode.insertBefore(hm, s);
28+
})();`
29+
],
30+
['meta', {
31+
name: 'keywords',
32+
content: '专注于 Vue 和 Go 语言'
33+
}]
34+
],
35+
description: '专注于 Vue 和 Go 语言', // 描述
36+
dest: './dist', // 设置输出目录
37+
port: 2233, // 端口
38+
39+
themeConfig: { // 主题配置
40+
lastUpdated: '更新时间', // string | boolean
41+
nav: Nav, // 添加导航栏
42+
sidebar: Sidebar, // 为以下路由添加侧边栏
43+
darkMode: true
44+
},
45+
plugins: {
46+
'sitemap': {
47+
hostname: "http://www.kz321.com/docs",
48+
// 排除无实际内容的页面
49+
exclude: ["/404.html"]
50+
},
51+
'robots': {
52+
host: "http://www.kz321.com/docs",
53+
disallowAll: true,
54+
sitemap: "/sitemap.xml",
55+
}
56+
}
5757
}

0 commit comments

Comments
 (0)