Skip to content

Add a "realParent" tag #3

Open
Open
@rlin415

Description

@rlin415

I think adding a new tag would be the best way to fix canjs/bit-docs-html-canjs#204. This realParent tag would hold the module's "real parent", which is used to build the source link that points to the module's editing site.

For example:

@module {function} can-define/list/list
@parent can-core
@realParent can-define

And then it would be used like this in https://github.com/canjs/bit-docs-html-canjs/blob/master/templates/helpers.js#L298:

DocMapInfo.prototype.getParents = function(docObject, cb){
    var names = {};
    // walk up parents until you don't have a parent
    var parent = this.docMap[docObject.realParent] || this.docMap[docObject.parent] <-- Only change
  // Rest of original stuff
} 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions