Skip to content

Commit

Permalink
fix: update docsify-server-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed May 30, 2017
1 parent f898a01 commit 7f56467
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ module.exports = function (path, configFile, port) {
? util.read(util.resolve(ctx, config.template))
: config.template
} else if (pkg.docsify) {
const tpl = pkg.docsify.template

config = pkg.docsify
config.template = util.exists(util.resolve(ctx, pkg.docsify.template))
? util(pkg.docsify.template)
config.template = (tpl && util.exists(util.resolve(ctx, tpl)))
? util.read(tpl)
: defaultConfig.template
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"connect-livereload": "^0.6.0",
"cp-file": "^4.1.1",
"docsify": ">=3",
"docsify-server-renderer": "^4.0.1",
"docsify-server-renderer": "^4.1.0",
"fs-extra": "^2.1.2",
"livereload": "^0.6.2",
"open": "^0.0.5",
Expand Down

0 comments on commit 7f56467

Please sign in to comment.