Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - Support for {@link} from JSDoc #92

Closed
lexon0011 opened this issue Jan 24, 2017 · 9 comments
Closed

[FEATURE] - Support for {@link} from JSDoc #92

lexon0011 opened this issue Jan 24, 2017 · 9 comments

Comments

@lexon0011
Copy link

We use the {@link} tag in our comments, like

/**
 * See {@link MyClass} and [MyClass's foo property]{@link MyClass#foo}.
 * Also, check out {@link http://www.google.com|Google} and
 * {@link https://github.com GitHub}.
 */

see JSDoc

Is it possible to include this link-tags to the generated documentation?

Thanks!

@vogloblinsky vogloblinsky changed the title Support for {@link} from JSDoc [FEATURE] - Support for {@link} from JSDoc Jan 24, 2017
@pburrows
Copy link

@link does not seem to be getting parsed for properties. For the following comments:

/**
 * Event object emitted by {@link AutoFormMasterComponent}
 */
export interface IAutoFormEvent {

	/**
	 * The original {@link FieldDefinition} object that participated in this event. Can be used
	 * to determine which field was modified
	 */
	fieldDefinition: FieldDefinition;

	/**
	 * The original {@link Event}
	 */
	event: Event;
}

The {@link AutoFormMasterComponent} is getting parsed correctly, but the two @link tags in the property descriptions are not.

@tommueller
Copy link

This is in the docs now, but it does not work for me. It breaks the parsing of the comment. If I paste the exact example from the docs (both for internal and external links):

    /**
     * @param {string} target  The target to process see {@link Todo}
     *
     * @example
     * This is a good example
     * processTarget('yo')
     *
     * @returns      The processed target number
     */

it generates this output:

Parameters :

target

The target to process see {

Example :

This is a good example processTarget('yo')
Returns : Observable<>

The processed target number

@vogloblinsky
Copy link
Contributor

@tommueller Related to #237
Completed, released soon in 1.0.0-beta.14

@tommueller
Copy link

Great, thanks!

@007300
Copy link

007300 commented Aug 31, 2017

in 1.0.0-beta.14:
{@link xxx} is getting parsed for properties still not correctly:
only "{" will be represented

@vogloblinsky
Copy link
Contributor

@007300
Any example ?

@007300
Copy link

007300 commented Aug 31, 2017

/**
 * Creates a typed instance of the ApiService with the endpoint selected from the {@link ApiMap} with the endpointKey
 * @param {string} endpointKey The key to pick the enpoint from the {@link ApiMap}
 */

then it generates:

Name Type Description
endpointKey string The key to pick the enpoint from the {

The second {@link} is broken

@vogloblinsky
Copy link
Contributor

@007300
Seems related to microsoft/TypeScript#16498
I open another specific issue for that : #294

@lock
Copy link

lock bot commented Oct 1, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants