Skip to content

Commit

Permalink
feat(cli): update boilerplate.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Aug 12, 2019
1 parent 304719f commit d524441
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/cli/create-antd-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,26 @@ function createApp(name = './', useNpm, eject, isForce) {
'page1',
{
title: 'page2',
collapsable: true,
children: ['page2']
},
{
title: 'page3',
collapsable: false,
children: ['page3']
},
{
title: 'page4',
collapsable: false,
children: [
{
title: 'group-1',
children: ['page4-1']
},
{
title: 'group-2',
children: ['page4-2']
}
]
}
]
}
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/template/docs/guide/page4-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# item

Page4 catalog-1-item
3 changes: 3 additions & 0 deletions packages/cli/template/docs/guide/page4-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# item

Page4 catalog-2-item

0 comments on commit d524441

Please sign in to comment.