diff --git a/.vuepress/config/themeConf.js b/.vuepress/config/themeConf.js index d6ea5dbd2..883bcc71b 100644 --- a/.vuepress/config/themeConf.js +++ b/.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/" } ] }; diff --git a/package.json b/package.json index 1e133d648..3f2f5fb47 100644 --- a/package.json +++ b/package.json @@ -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",