Skip to content

Commit

Permalink
build: remove sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuanxin committed Jan 27, 2020
1 parent a7603d6 commit 5971912
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 91 deletions.
95 changes: 6 additions & 89 deletions .vuepress/config/themeConf.js
@@ -1,104 +1,21 @@
const sidebar = require("./sidebar-auto.js");

module.exports = {
repo: "dongyuanxin/blog",
navbar: true,
editLinks: true,
editLinkText: "在 GitHub 上编辑此页",
lastUpdated: "更新于",
sidebar,
nav: [
{
text: "最新",
link: "/guide/"
text: "前端图谱",
link: "https://xxoo521.com/frontend/"
},
// 前端
{
text: "前端",
items: [
{
text: "JavaScript",
link: "/passages/2019-03-26-javascript-first/"
},
{
text: "React",
link: "/passages/2019-04-08-react-components-communication/"
},
{
text: "TypeScript",
link: "/passages/2019-08-27-typescript-notes/"
},
{ text: "ES6", link: "/passages/2019-04-09-es6/" },
{ text: "HTML5", link: "/passages/2019-04-10-html5-drag-drop/" },
{ text: "浏览器与安全", link: "/passages/2019-05-15-browser/" }
]
text: "算法题解",
link: "https://xxoo521.com/algorithm/"
},
// UI
{
text: "UI",
items: [
{ text: "css", link: "/passages/2018-06-05-border-sizing/" },
{
text: "scss",
link: "/passages/2019-05-17-why-i-stopped-using-sass/"
},
{ text: "动画", link: "/passages/2019-07-16-font-animation/" }
]
},
// 算法
{
text: "算法",
items: [
{
text: "剑指offer",
link: "/passages/2019-06-23-algorithm-offer/"
},
{
text: "设计模式",
link: "/passages/2018-10-23-singleton-pattern/"
}
]
},
// Node
{
text: "Node",
items: [
{ text: "Koa", link: "/passages/2019-06-21-deep-in-koa/" },
{
text: "命令行",
link: "/passages/2019-05-07-play-node-shell/"
},
{ text: "测试", link: "/passages/2019-05-04-jest-base/" },
{ text: "Serverless", link: "/passages/2019-08-14-game-gomoku/" }
]
},
// 其它
{
text: "其它",
items: [
{
text: "想法",
link: "/passages/2019-11-25-how-insist-on-learning/"
},
{
text: "学习笔记",
link: "/passages/2019-10-02-os-base/"
},
{
text: "友情链接",
link: "/friends/"
},
{
text: "开发工具",
items: [
{
text: "Webpack4",
link: "/passages/2018-07-29-webpack-demos-introduction/"
},
{ text: "Git", link: "/passages/2018-09-06-git-tag-and-version/" }
]
}
]
text: "文章归档",
link: "https://xxoo521.com/archives/"
}
]
};
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -26,8 +26,8 @@
"check:notes": "node bin/prettier.js -t notes -c",
"lint:notes": "node bin/prettier.js -t notes -l",
"start": "npm run dev",
"dev": "nodemon --watch docs bin/sidebar.js & ./node_modules/.bin/vuepress dev .",
"build": "node bin/sidebar.js && ./node_modules/.bin/vuepress build ."
"dev": "./node_modules/.bin/vuepress dev .",
"build": "./node_modules/.bin/vuepress build ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 5971912

Please sign in to comment.