Code Monkey home page Code Monkey logo

Comments (6)

tmcw avatar tmcw commented on July 17, 2024

Sure, I'm updating this module to documentation v4 and updating the readme with a multi-file example.

from gulp-documentation.

rwam avatar rwam commented on July 17, 2024

It seems your documentation should be updated. When I use

gulp.task('documentation', function() {
    gulp.src('app/js/**/*.js')
        .pipe(gulpDocumentation({
            format: 'html'
        }))
        .pipe(gulp.dest('docs/api'));
});

I get the following error:

[10:59:38] Error: invalid format given: valid options are html, md, remark, json
    at module.exports (/…/…/Workspace/pm-wg-angular/node_modules/gulp-documentation/index.js:82:11)
    …

from gulp-documentation.

rwam avatar rwam commented on July 17, 2024

And it works only, when the task returns the stream. Otherwise no output is generated ;(

from gulp-documentation.

tmcw avatar tmcw commented on July 17, 2024

Hi @rwam - the recent version bump to 3.0.0 included a breaking change, along with updated examples. To update to 3.0.0, your code would look like:

gulp.task('documentation', function() {
    gulp.src('app/js/**/*.js')
        .pipe(gulpDocumentation('html'))
        .pipe(gulp.dest('docs/api'));
});

That that modified version out and let me know if it still doesn't work with the change.

from gulp-documentation.

rwam avatar rwam commented on July 17, 2024

Hi @tmcw – I use version 3.0.0 and yes I tried it as described. But it only write it on the output directory when I use a return statement:

gulp.task('documentation', function() {
    return gulp.src('app/js/**/*.js')
        .pipe(gulpDocumentation('html'))
        .pipe(gulp.dest('docs/api'));
});

Ok I see the info on the 3.0.0 tag is actual, but it's a little weird ;) There is a missing character:

bildschirmfoto 2016-11-28 um 13 32 46

from gulp-documentation.

tmcw avatar tmcw commented on July 17, 2024

Thanks for spotting that! I've updated the code examples so they should be functional.

from gulp-documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.