Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
docs(readme): build root readme
Browse files Browse the repository at this point in the history
  • Loading branch information
seognil committed May 3, 2020
1 parent c38a4a4 commit 2bcfa6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion build/build-readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const noReadmeList: string[] = demos
return `- [${folder}](${relPath})`;
});

const mdList = [...readmeList, '\n_还没写文档的_\n', ...noReadmeList].join('\n');
const mdList = (noReadmeList.length
? [...readmeList, '\n_还没写文档的_\n', ...noReadmeList]
: [...readmeList]
).join('\n');

// * ================================================================================

Expand Down
5 changes: 1 addition & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
- [15 React](demo/15-react)
- [16 Vue](demo/16-vue)
- [17 目前为止的功能\*(二)](demo/17-milestone-with-framework)

_还没写文档的_

- [18-webpack-output-filename](demo/18-webpack-output-filename)
- [18 输出文件名、Vendor](demo/18-webpack-output-filename)

<!-- demo end -->

Expand Down

0 comments on commit 2bcfa6f

Please sign in to comment.