Skip to content

Commit

Permalink
add a param of no copy assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ykan committed Mar 14, 2017
1 parent f0ccb6e commit c1d0a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/doc.js
Expand Up @@ -148,7 +148,7 @@ module.exports = function factoryDoc(
baseUrl: './assets/',
styleName: 'atelier-estuary-light.css'
};
function renderFileTree(docDirs, cb) {
function renderFileTree(docDirs, cb, noCopyAssets) {
let converter = new showdown.Converter();
return co(function*(){
let navTree;
Expand Down Expand Up @@ -202,7 +202,7 @@ module.exports = function factoryDoc(
fs.writeFileSync(`${BUILD_DIR}/${navItem.filename}`, htmlStr, 'utf8');
cb && cb(null, navItem);
});
if(rootConfig.baseUrl === './assets/') {
if(!noCopyAssets && rootConfig.baseUrl === './assets/') {
fs.copySync(__dirname + '/../assets', BUILD_DIR + '/assets');
}
// console.log(navTree);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "cldoc",
"version": "0.5.0",
"version": "0.5.1",
"description": "Example",
"scripts": {
"dev": "http-server -p 8088",
Expand Down

0 comments on commit c1d0a86

Please sign in to comment.