Skip to content

Commit

Permalink
Clarified compile vs convert and removed unnecessary doc
Browse files Browse the repository at this point in the history
  • Loading branch information
obilodeau committed Dec 24, 2017
1 parent 2d3b38a commit 3709920
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions npm/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,17 @@ Builder.prototype.examples = function (callback) {

async.series([
callback => builder.build(callback), // Build
callback => builder.compileExamples(callback), // Compile examples
callback => builder.convertExamples(callback), // Convert the examples
], () => {
log.info(`
In order to visualize the result, a local HTTP server must be started within the root of this project otherwise you will have cross-origin issues.
For this purpose, you can run the following command to start a HTTP server locally: 'npm run server'.`);
log.success(`You can now open: build/examples/`);
Examples will be converted from AsciiDoc to HTML for Reveal.js. We expect no errors to happen.`);
log.success(`Examples were converted and generated in: build/examples/`);
typeof callback === 'function' && callback();
});
};

Builder.prototype.compileExamples = function (callback) {
log.task('compile examples');
Builder.prototype.convertExamples = function (callback) {
log.task('convert examples');
bfs.mkdirsSync(this.examplesBuildDir);

// Load asciidoctor.js and local asciidoctor-reveal.js
Expand Down

0 comments on commit 3709920

Please sign in to comment.