Skip to content

Commit

Permalink
修改配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
lilinsen committed Jan 23, 2019
1 parent 96d169c commit 2bc24f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 4 additions & 2 deletions build/webpack.doc.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ module.exports = merge(webpackBaseConf, {
entry:'./src',
output:'./sites/doc/view/',
template:'./doc-site/template.html',
nav:'left'
nav:'left',
needCode:true
}),
new mdtohtml({
entry:'./docs',
output:'./sites/doc/page/',
template:'./doc-site/template.html',
nav:'left',
nohead:true
needCode:false

}),
new HtmlWebpackPlugin({
template: './sites/doc/index.html',
Expand Down
8 changes: 2 additions & 6 deletions scripts/mdToVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function insert(sorce) {
*/
function createdFile(output, sorce, ishasCode) {
var pathSrc = output;
if (!ishasCode) {
if (ishasCode) {
var res = insert(sorce);
} else {
var res = sorce;
Expand Down Expand Up @@ -173,11 +173,7 @@ function fileDisplay(param) {
readDirRecur(param.entry, function(filePath) {
//文件列表

fileList.map(item=>{
// ismd(item).then(res=>{
// //res md文件处理结果
// createdFile(param.output + '/' + res.mdName + '.vue', res.html, param.needCode)
// })
fileList.map(item=>{
ismd(item,res=>{
//res md文件处理结果
createdFile(param.output + res.mdName + '.vue', res.html, param.needCode)
Expand Down

0 comments on commit 2bc24f3

Please sign in to comment.