Skip to content

crossLink entries don't seem to link to the proper anchor #24

Description

@toolness

This might not be a bug on the side of this theme--I'm not sure, because I'm not very experienced with yuidoc. But when I try cross-referencing Modules and Classes, the following Handlebars code:

{{#crossLink "p5.play/createSprite:method"}}{{/crossLink}}

results in a hyperlink to the right file, but the wrong anchor. The anchor in the generated hyperlink is #method_createSprite, yet the actual anchor created by this theme uses a hyphen instead of an underscore (that is, it's #method-createSprite). Hence the link appears to be half-broken.

One fix might be to change the relevant handlebars templates in the partials directory of this theme to use underscores instead of hyphens, but I'm not sure if it's the right fix. If it is, I'm happy to issue a PR.

I'm using yuidocjs v0.10.0, so this might be happening because I'm using the wrong version of yuidoc with this theme? Sorry if this bug report isn't very helpful. 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions