documentationjs / documentationjs/documentation

Link to something in a namespace doesn't work.

Open
#820 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

Say I have the following JavaScript:
```javascript
/**
* Test namespace.
* @namespace MyNamespace
*/

/** @memberof MyNamespace */
function foo() {}

/**
* A link to {@link MyNamespace} will work, but a link to {@link MyNamespace.foo} won't.
*/
function bar() {}
```

As the description of `foo` says, the first link will work but the second will direct to nonexistent file. Using the default template, you can navigate directly to `MyNamespace.foo` via the left-hand navigation, so there is a valid address to the symbol, but the link generated manually points at something else entirely that doesn't exist.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.