Skip to content

Commit

Permalink
refactor: remove code and lock file - update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Jul 26, 2019
1 parent f511db8 commit d604412
Show file tree
Hide file tree
Showing 11 changed files with 3,116 additions and 13,083 deletions.
80 changes: 9 additions & 71 deletions example/documentation/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,29 @@
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 = {
dest: 'dist',
// base: '/bwFEdoc',
contentLoading: true,
title: 'Hello vuepress-jsdoc',
description: 'Just playing around with vuepress-jsdoc',
locales: {
'/': {
title: 'baiwangFE-doc',
description: 'Generate baiwangFE-doc markdown files for vuepress'
title: 'vuepress-jsdoc',
description: 'A CLI to create jsdoc md files for vuepress'
}
},
themeConfig: {
editLinks: true,
sidebarDepth: 2,
docsDir: '/code',
sidebarDepth: 4,
locales: {
'/': {
nav: [
{
text: 'Home',
link: '/'
},
{
text: 'Code',
link: '/code'
}
],
// can't show
// Add the generated sidebar
// 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
sidebar: {
...sidebarTree('Test')
}
}
}
}
Expand Down
31 changes: 0 additions & 31 deletions example/documentation/code/config.js

This file was deleted.

42 changes: 0 additions & 42 deletions example/documentation/code/objects.md

This file was deleted.

34 changes: 0 additions & 34 deletions example/documentation/code/subfolder/subfolder.1/variables.md

This file was deleted.

34 changes: 0 additions & 34 deletions example/documentation/code/subfolder/variables.md

This file was deleted.

74 changes: 0 additions & 74 deletions example/documentation/code/test.md

This file was deleted.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"vuepress": "^0.14.11"
"vuepress": "^1.0.2"
}
}
Loading

0 comments on commit d604412

Please sign in to comment.