Skip to content

Commit

Permalink
feat: initialize settings for easier initial deployment
Browse files Browse the repository at this point in the history
修改模板设置,便于初始化部署
  • Loading branch information
rockbenben committed Mar 1, 2024
1 parent 8ecc030 commit 179b912
Show file tree
Hide file tree
Showing 128 changed files with 98 additions and 10,253 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@

6. 设置成功后,页面会提示访问链接:`https://xxx.github.io/`。此时,你的知识库就已经搭建完成了。

如果未出现访问链接提示或不能打开 GitHub Pages,则删除 `docs/_posts` 路径下的博客文章。这是因为 GitHub Pages 有时会对旧文章里的代码报错。

## 🔣 配置 LearnData

### 文档结构
Expand Down
17 changes: 6 additions & 11 deletions docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,19 @@ export default navbar([
children: [
"apps/Applist",
{
text: "常用扩展",
text: "开源工具",
icon: "chrome",
link: "apps/Chrome",
link: "apps/toolbox",
},
{
text: "服务/专题",
icon: "any",
prefix: "",
children: [
{
text: "直播手册",
icon: "quote",
link: "apps/livestreaming/1_obs_basic",
},
{
text: "NAS 应用",
text: "专题示例",
icon: "process",
link: "services/dockers-on-nas/",
link: "apps/topic/",
},
],
},
Expand All @@ -38,7 +33,7 @@ export default navbar([
text: "生活",
icon: "emmet",
prefix: "/family/",
children: ["Diet", "Shoppinglist", "Coupon", "baby/"],
children: ["Diet", "Coupon"],
},
{
text: "工具",
Expand All @@ -50,7 +45,7 @@ export default navbar([
link: "https://www.aishort.top/",
},
{ text: "IMGPrompt", icon: "pic", link: "https://prompt.newzone.top/" },
{ text: "文字处理", icon: "others", link: "https://tools.newzone.top/json-translate" },
{ text: "多语言处理", icon: "others", link: "https://tools.newzone.top/json-translate" },
{
text: "工具收藏",
icon: "categoryselected",
Expand Down
94 changes: 26 additions & 68 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,98 +17,57 @@ export default sidebar({
children: [
"Applist.md",
"toolbox.md",
"Chrome.md",
{
text: "工具笔记",
icon: "plugin",
prefix: "tutorials/",
link: "",
collapsible: true,
children: "structure",
},
{
text: "直播手册",
icon: "load",
prefix: "livestreaming/",
link: "",
collapsible: true,
children: "structure",
},
{
text: "其他",
icon: "emmet",
collapsible: true,
children: ["design.md", "ChatGPT.md"],
children: ["design.md"],
},
],
},
{
text: "🐋 Docker 服务",
text: "🌐 页面开发",
icon: "",
prefix: "/services/",
prefix: "/web/",
link: "",
collapsible: true,
children: "structure",
},
{
text: "🪟 系统问题",
text: "🏗️ 网站部署",
icon: "",
prefix: "/windows/",
link: "",
prefix: "/deploy/",
collapsible: true,
children: "structure",
children: [
"Static.md",
"CloudServices.md",
"VPS.md",
{
text: "部署工具",
icon: "emmet",
collapsible: true,
children: ["GitHub.md", "Cloudflare.md", "MySQL.md", "DNS.md"],
},
],
},
{
text: "🔡 代码编程",
icon: "",
prefix: "",
link: "",
prefix: "/code/",
collapsible: true,
children: [
"README.md",
{
text: "页面开发",
icon: "",
prefix: "/web/",
collapsible: true,
children: "structure",
},
{
text: "网站部署",
icon: "",
prefix: "/deploy/",
text: "Basic",
icon: "emmet",
collapsible: true,
children: [
"Static.md",
"CloudServices.md",
"VPS.md",
{
text: "部署工具",
icon: "emmet",
collapsible: true,
children: ["GitHub.md", "Cloudflare.md", "MySQL.md", "DNS.md"],
},
],
children: ["Markdown.md", "Electron.md", "AutoHotkey.md", "Regex.md"],
},
{
text: "代码学习",
icon: "",
prefix: "/code/",
text: "FrondEnd",
icon: "app",
collapsible: true,
children: [
"README.md",
{
text: "Basic",
icon: "emmet",
collapsible: true,
children: ["Markdown.md", "Electron.md", "AutoHotkey.md", "Regex.md"],
},
{
text: "FrondEnd",
icon: "app",
collapsible: true,
children: ["Vue.md", "HTML.md", "JavaScript.md", "Python.md"],
},
],
children: ["Vue.md", "HTML.md", "Javascript.md", "Python.md"],
},
],
},
Expand All @@ -129,7 +88,6 @@ export default sidebar({
children: "structure",
},
],
// 独立功能区
"/services/dockers-on-nas/": "structure",
"/family/baby/": "structure",
// 专题区
"/apps/topic/": "structure",
});
17 changes: 1 addition & 16 deletions docs/.vuepress/templateBuild.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,13 @@
<!--vuepress-ssr-styles-->
<!--vuepress-ssr-preload-->
<!--vuepress-ssr-prefetch-->
<!-- Matomo 此区块为统计代码,请删除-->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://piwik.seoipo.com/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '7']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code 此区块为统计代码,请删除-->
<!-- 统计代码区域-->
</head>
<body>
<div id="app"><!--vuepress-ssr-content--></div>
<!--vuepress-ssr-scripts-->
<!-- 看板娘区块 -->
<script src="/live2d-widget/autoload.js"></script>
<!-- End 看板娘区块 -->
<script src="https://oss.newzone.top/instantpage.min.js" type="module"></script>
</body>
</html>
18 changes: 9 additions & 9 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default hopeTheme({
iconAssets: "iconfont",

author: {
name: "清顺",
name: "LearnData",
url: "https://newzone.top",
},

Expand All @@ -21,7 +21,7 @@ export default hopeTheme({
// 页面元数据:贡献者,最后修改时间,编辑链接
contributors: false,
lastUpdated: true,
editLink: true,
editLink: false,

// 深色模式配置
darkmode: "switch",
Expand Down Expand Up @@ -89,6 +89,7 @@ export default hopeTheme({

// 评论配置(仅做样例,记得更换)
comment: {
/*
// 在本地运行 `pnpm docs:dev` 并使用非 localhost 域名时,容易出现 403 错误,移除本部分即可解决
provider: "Waline",
serverURL: "https://waline.newzone.top",
Expand Down Expand Up @@ -120,15 +121,14 @@ export default hopeTheme({
level5: "化神",
},
},
*/

// Giscus 备用配置
/*
// Giscus
provider: "Giscus",
repo: "rockbenben/LearnData",
repoId: "R_kgDOHdfk6Q",
category: "Comments",
categoryId: "DIC_kwDOHdfk6c4CQYNn",
*/
},

// 组件库
Expand Down Expand Up @@ -160,16 +160,16 @@ export default hopeTheme({
},

// Algolia 全文搜索:需要自己设置爬虫并生成下方配置,如不会自己设置,启用下方本地搜索
docsearch: {
/* docsearch: {
indexName: "newzone",
appId: "M4EXXEZIEG",
apiKey: "fd8891a9c4cc21e0ef4f11bf44f7a11e",
},
}, */
// 本地搜索,和上方二选一
/* searchPro: {
searchPro: {
// 索引全部内容
indexContent: true,
}, */
},

feed: {
rss: true,
Expand Down
2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ icon: note

6. 设置成功后,页面会提示访问链接:`https://xxx.github.io/`。此时,你的知识库就已经搭建完成了。

如果未出现访问链接提示或不能打开 GitHub Pages,则删除 `docs/_posts` 路径下的博客文章。这是因为 GitHub Pages 有时会对旧文章里的代码报错。

## 🔣 配置 LearnData

### 文档结构
Expand Down
52 changes: 0 additions & 52 deletions docs/_posts/2017-04-18-wechat_multi_open.md

This file was deleted.

Loading

0 comments on commit 179b912

Please sign in to comment.