-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made sure docs were only created when they didn't exist, as well as …
…making sure documents were not created when using commands to keep the speed high
- Loading branch information
1 parent
4b6574d
commit 3941dec
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/usr/bin/env node | ||
|
||
require('../learnyounode').execute(process.argv.slice(2)) | ||
require('../lib/docbuild') | ||
|
||
if(process.argv.slice(2) == 0){ | ||
require('../lib/docbuild') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
var createDocs = require('node-offline-api').createDocs | ||
var buildOptions = require('node-offline-api').buildOptions | ||
var fs = require('fs') | ||
|
||
buildOptions.buildDir = process.cwd() | ||
buildOptions.buildName = 'node_apidoc' | ||
|
||
createDocs() | ||
fs.stat('../node-apidoc', function (err) { | ||
if (err) { createDocs() } | ||
}) |