Giter Club home page Giter Club logo

Comments (8)

wchopite avatar wchopite commented on July 18, 2024

Any documentation to configure and use this module?

from sails-apidocs.

anandmahajan avatar anandmahajan commented on July 18, 2024

Yes

from sails-apidocs.

leejt489 avatar leejt489 commented on July 18, 2024

Hi sorry the documentation is pretty lacking. I've been meaning to get around to cleaning it up to make it more useful and adding some features, but I won't be able to really over the next month as I'm currently travelling with sporadic internet.

If I remember correctly there are some comments in the source code that should be helpful.

On Jun 6, 2015, at 5:52 AM, anandmahajan [email protected] wrote:

Yes


Reply to this email directly or view it on GitHub.

from sails-apidocs.

leejt489 avatar leejt489 commented on July 18, 2024

Essentially the program takes a config object. in lib/config.js there are some defaults to specify where to look for your API files (defaults to sails structure). You can set the 'exclude' option to an array of strings of API resources to exclude from the API.

It compiles using dox and doxx style jshint markup, so checking those out is a good place to start.

Sorry I can't be of more help right now, thanks for checking out the project, and I'll put some time into next month!

On Jun 6, 2015, at 5:52 AM, anandmahajan [email protected] wrote:

Yes


Reply to this email directly or view it on GitHub.

from sails-apidocs.

anandmahajan avatar anandmahajan commented on July 18, 2024

OK thx. I will try that!

from sails-apidocs.

armellarcier avatar armellarcier commented on July 18, 2024

Hi! Thanks for this but unfortunately I could not even figure how to hook up the module with sails and gen anything... Should I add a task to call up the module?

from sails-apidocs.

leejt489 avatar leejt489 commented on July 18, 2024

I just call it from my bootstrap file, using a 'require' statement to load the model.

I just got back from a field assignment. I'll try and devote some time to this next week.

On Jul 16, 2015, at 7:04 AM, Armel Larcier [email protected] wrote:

Hi! Thanks for this but unfortunately I could not even figure how to hook up the module with sails and gen anything... Should I add a task to call up the module?


Reply to this email directly or view it on GitHub.

from sails-apidocs.

drewlio avatar drewlio commented on July 18, 2024

EDITED

Maybe this will help someone. I put the following in my ./config/bootstrap.js. I like to leave everything in node_modules unmodified, so this is what I did:

require('sails-apidocs')({
        template: process.cwd() + '/lib/sails-apidocs-views/template.jade',
        targetDir: process.cwd() + '/assets/docs/api'
});

It runs and generates output, but no documentation is extracted. Briefly looking through index.js it seems to process routes, but not blueprints, controllers and models. Also, any routes are skipped near the comment: TODO: Parse the string.

Any other ideas would be welcome.

from sails-apidocs.

Related Issues (1)

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.