Skip to content

Commit

Permalink
refactor: update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: ph1p <phil@capshake.com>
  • Loading branch information
ph1p committed Jun 23, 2019
1 parent 02d6b28 commit c3beca6
Show file tree
Hide file tree
Showing 3 changed files with 9,705 additions and 12 deletions.
80 changes: 71 additions & 9 deletions example/documentation/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,91 @@
const { sidebarTree } = require('../code/config');

// module.exports = {
// contentLoading: true,
// title: 'Hello vuepress-jsdoc',
// description: 'Just playing around with vuepress-jsdoc',
// locales: {
// '/': {
// title: 'vuepress-jsdoc',
// description: 'A CLI to create jsdoc md files for vuepress'
// }
// },
// themeConfig: {
// sidebarDepth: 4,
// locales: {
// '/': {
// nav: [
// {
// text: 'Home',
// link: '/'
// }
// ],
// // Add the generated sidebar
// sidebar: {
// ...sidebarTree('Test')
// }
// }
// }
// }
// };

// auto generated sidebar

// console.log('sidebarTree',sidebarTree())
// let sidebarTreeData = sidebarTree()

module.exports = {
contentLoading: true,
title: 'Hello vuepress-jsdoc',
description: 'Just playing around with vuepress-jsdoc',
dest: 'dist',
// base: '/bwFEdoc',
locales: {
'/': {
title: 'vuepress-jsdoc',
description: 'A CLI to create jsdoc md files for vuepress'
title: 'baiwangFE-doc',
description: 'Generate baiwangFE-doc markdown files for vuepress'
}
},
themeConfig: {
sidebarDepth: 4,
editLinks: true,
sidebarDepth: 2,
docsDir: '/code',
locales: {
'/': {
nav: [
{
text: 'Home',
link: '/'
},
{
text: 'Code',
link: '/code'
}
],
// can't show
// Add the generated sidebar
sidebar: {
...sidebarTree('Test')
}
// can't show
sidebar: Object.assign({}, sidebarTree('Mainpage title'))
// can't show
// sidebar: Object.assign({}, sidebarTree()['/code/'])
// can't show
// sidebar: sidebarTree()['/code/']
// can't show
// sidebar: sidebarTreeData
// sidebar: [{
// 'title': 'common-ui',
// 'collapsable': false,
// 'children': ['common-ui/button/Button', 'common-ui/data-grid/_index', 'common-ui/icon/Icon', 'common-ui/loading/Loading', 'common-ui/page/Page', 'common-ui/page/Page2', 'common-ui/single-table/_index', 'common-ui/switch/Switch', 'common-ui/table/Table', 'common-ui/table/cell', 'common-ui/table/dynamic-column', 'common-ui/table/table-body', 'common-ui/table/table-head']
// },
// {
// 'title': 'common-ui',
// 'collapsable': false,
// 'children': ['common-ui/button/Button', 'common-ui/data-grid/_index', 'common-ui/icon/Icon', 'common-ui/loading/Loading', 'common-ui/page/Page', 'common-ui/page/Page2', 'common-ui/single-table/_index', 'common-ui/switch/Switch', 'common-ui/table/Table', 'common-ui/table/cell', 'common-ui/table/dynamic-column', 'common-ui/table/table-body', 'common-ui/table/table-head']
// },
// {
// 'title': 'common-ui',
// 'collapsable': false,
// 'children': ['common-ui/button/Button', 'common-ui/data-grid/_index', 'common-ui/icon/Icon', 'common-ui/loading/Loading', 'common-ui/page/Page', 'common-ui/page/Page2', 'common-ui/single-table/_index', 'common-ui/switch/Switch', 'common-ui/table/Table', 'common-ui/table/cell', 'common-ui/table/dynamic-column', 'common-ui/table/table-body', 'common-ui/table/table-head']
// }]

// and so on like in vuepress doc
}
}
}
Expand Down
Loading

0 comments on commit c3beca6

Please sign in to comment.