Skip to content

Commit

Permalink
blog rollup目录结构重构
Browse files Browse the repository at this point in the history
  • Loading branch information
wangtunan committed Jul 23, 2024
1 parent 0beeb92 commit e716a21
Show file tree
Hide file tree
Showing 13 changed files with 498 additions and 483 deletions.
4 changes: 3 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const navConfig = require('./configs/nav.js')
const { ua } = require('./ua.js')
const {
webpackSidebar,
rollupSidebar,
vueAnalysisSidebar,
vueNextAnalysisSidebar,
algorithmBaseSidebar,
Expand Down Expand Up @@ -55,7 +56,8 @@ export default defineUserConfig({
...booksNav
],
sidebar: {
'/webpack/webpack/': [webpackSidebar],
'/webpack/webpack/': webpackSidebar,
'/rollup/': rollupSidebar,
'/vueAnalysis/': vueAnalysisSidebar,
'/vueNextAnalysis/': vueNextAnalysisSidebar,
'/algorithm/base/': algorithmBaseSidebar,
Expand Down
24 changes: 22 additions & 2 deletions docs/.vuepress/configs/sidebar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// webpack目录结构
const webpackSidebar = {
const webpackSidebar = [{
text: 'Webpack',
collapsable: false,
children: [
Expand All @@ -15,7 +15,26 @@ const webpackSidebar = {
'/webpack/webpack/loader.md',
'/webpack/webpack/plugin.md'
]
}
}]

// rollup目录结构
const rollupSidebar = [{
text: 'Rollup',
collapsable: false,
children: [
'/rollup/',
'/rollup/concept/',
'/rollup/base/',
'/rollup/plugins/',
'/rollup/babel/',
'/rollup/environment/',
'/rollup/typescript/',
'/rollup/eslint/',
'/rollup/jest/',
'/rollup/commit/',
'/rollup/changelog/',
]
}]

// Vue源码分析目录结构
const vueAnalysisSidebar = [
Expand Down Expand Up @@ -338,6 +357,7 @@ const algorithmLeetCodeSidebar = [

module.exports = {
webpackSidebar,
rollupSidebar,
vueAnalysisSidebar,
vueNextAnalysisSidebar,
algorithmBaseSidebar,
Expand Down
Loading

0 comments on commit e716a21

Please sign in to comment.