Code Monkey home page Code Monkey logo

Comments (9)

petebacondarwin avatar petebacondarwin commented on May 21, 2024

Hi @c0bra

So what this message is saying is that there is no definition of the @methodOf tag in your dgeni configuration.

If you are using the latest version of dgeni-packages (0.10.0-rc.6) there is no such tag defined. We have got @memberof instead, defined in the jsdoc Package. See https://github.com/angular/dgeni-packages/blob/master/jsdoc/tag-defs/memberof.spec.js

So you either need to change your tags or add in this tag-def yourself into your configuration.

Does that help?

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

By the way methodof is not a supported JSDoc 3 tag either. I would try changing your tags to:

  /**
   * @ngdoc method
   * @name registerStyleComputation
   * @memberof ui.grid.class:Grid
   * @description registered a styleComputation function
   * 
   * If the function returns a value it will be appended into the grid's `<style>` block
   * @param {function($scope)} styleComputation function
   */

from dgeni-packages.

c0bra avatar c0bra commented on May 21, 2024

@petebacondarwin That helps a lot; thanks. I'm not sure how I would have found that out on my own, though. I couldn't find the latest syntax for ngdoc documented anywhere and was just going by what I was finding in the angular.js source and the wiki: https://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentation

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

I don't think @methodOf appears in the latest Angular source either.

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

Or even easier:

  /**
   * @ngdoc method
   * @name ui.grid.class:Grid#registerStyleComputation
   * @description registered a styleComputation function
   * 
   * If the function returns a value it will be appended into the grid's `<style>` block
   * @param {function($scope)} styleComputation function
   */

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

By the way I am not sure that the class: modifier is supported in the ngdoc Package out of the box.

from dgeni-packages.

c0bra avatar c0bra commented on May 21, 2024

Yea I think class: was from using grunt-ngdocs. @methodOf is still on that angular.js wiki page, which is where I was erroneously looking.

Is a guide for forward-porting older ngdoc'ed projects something that would be useful? I've tried this at least twice before and gave up but I'd really like to get past it. I've seen talk about the need for documenting how to use dgeni in a couple places. Is there anyone currently taking that on, or looking to?

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

Watch this space...

from dgeni-packages.

petebacondarwin avatar petebacondarwin commented on May 21, 2024

Closing for now as I think we have covered this particular issue.

from dgeni-packages.

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.