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

Adequate our use of @link tag #14334

Closed
oandregal opened this issue Mar 8, 2019 · 10 comments
Closed

Adequate our use of @link tag #14334

oandregal opened this issue Mar 8, 2019 · 10 comments
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Dev Ready for, and needs developer efforts [Tool] Docgen /packages/docgen [Type] Enhancement A suggestion for improvement.

Comments

@oandregal
Copy link
Member

oandregal commented Mar 8, 2019

The spec defines block and inline tags. @block stand on their own, inline tags live within the description of block level tags and are wrapped by {}. Example:

@block-tag {type} A description with {@inline-tag} within it.

It looks like @link is an inline-only tag. Tools actually implement the @link as block and inline, so it's a non-issue at a practical level.

Action items

Bad:

/**
 * Handles a delete keyDown event to handle merge or removal for collapsed
 * selection where caret is at directional edge: forward for a delete key,
 * reverse for a backspace key.
 *
 * @link https://en.wikipedia.org/wiki/Caret_navigation
 *
 * @param {KeyboardEvent} event Keydown event.
 */

Good:

/**
 * Handles a delete keyDown event to handle merge or removal for collapsed
 * selection where caret is at directional edge: forward for a delete key,
 * reverse for a backspace key.
 *
 * @see https://en.wikipedia.org/wiki/Caret_navigation
 *
 * @param {KeyboardEvent} event Keydown event.
 */
@oandregal oandregal added the [Tool] Docgen /packages/docgen label Mar 8, 2019
@oandregal
Copy link
Member Author

Tagged as [Package] docgen just to have a way to group this somewhere. It doesn't actually affect anything docgen (other than being technically incorrect).

@oandregal oandregal added [Type] Developer Documentation Documentation for developers Good First Issue An issue that's suitable for someone looking to contribute for the first time labels Mar 8, 2019
@gziolo gziolo added Needs Dev Ready for, and needs developer efforts [Status] Needs More Info Follow-up required in order to be actionable. labels Apr 10, 2019
@gziolo
Copy link
Member

gziolo commented Apr 10, 2019

@nosolosw can you add more details about what exactly needs to be done? :)

@oandregal oandregal removed the [Status] Needs More Info Follow-up required in order to be actionable. label Apr 10, 2019
@oandregal
Copy link
Member Author

Added more info in the description.

@aduth
Copy link
Member

aduth commented Apr 25, 2019

The action items could still be clearer, I think. Or at least, my initial impressions are, aside from just updating existing usage:

@oandregal
Copy link
Member Author

I don't know where this should be documented (if anywhere) but would love having a linting rule for it. Added the action item to the issue description.

@aduth
Copy link
Member

aduth commented Apr 25, 2019

To the point of the lint rule, #13741 is likely related here, as I expect the resolution there will migrate us toward eslint-plugin-jsdoc, which has an option to specify alias preferences.

https://www.npmjs.com/package/eslint-plugin-jsdoc#eslint-plugin-jsdoc-settings-alias-preference

{
    "settings": {
        "jsdoc": {
            "tagNamePreference": {
                "link": "see"
            }
        }
    }
}

(It's not entirely clear to me whether tagNamePreference can be used for this tag specifically)

@codesue
Copy link
Contributor

codesue commented May 13, 2019

Hi, everyone! I'm a first time contributor here! May I work on the "update existing usage" portion of this fix? Should the changes be applied to all the relevant files that aren't listed in .gitignore or the files that are available before running ./bin/setup-local-env.sh? (I don't know if these are the same.)

@oandregal
Copy link
Member Author

oandregal commented May 13, 2019

Hi, everyone! I'm a first time contributor here! May I work on the "update existing usage" portion of this fix?

👋 Suzen (@codesue), you're very welcome to do so! Ping me in the Pull Request you prepare for this and I'll make sure it gets reviewed.

As for the files involved: any JavaScript file that is not listed in .gitignore would be great.

@oandregal
Copy link
Member Author

Noting that #15616 updated the @link tags that were meant to be @see ones.

@DaisyOlsen DaisyOlsen removed the [Type] Developer Documentation Documentation for developers label Feb 21, 2023
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 4, 2023
@oandregal
Copy link
Member Author

I'm triagging issues we don't plan to tackle. We can reopen if it regains interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Dev Ready for, and needs developer efforts [Tool] Docgen /packages/docgen [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants