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

Use @link for jsdoc, and make compatible with lit.dev API documentation #503

Closed
AndrewJakubowicz opened this issue Sep 15, 2021 · 3 comments
Assignees

Comments

@AndrewJakubowicz
Copy link
Contributor

Tracking issue from lit/lit#2161.

We should start using e.g. {@link ReactiveController}, since that will work in VSCode too. We will need to change or update this regexp to extract them for our lit.dev API docs:

/\[\[[\s`]*(.+?)(?:[\s`]*\|[\s`]*(.+?))?[\s`]*\]\]/g,

@AndrewJakubowicz
Copy link
Contributor Author

Bumping this onto my radar. @link is better for editors. VS code will allow clicking on @link and will jump to definition. Whilst [[ ]] renders directly in the editor without any possible user interaction.

@AndrewJakubowicz
Copy link
Contributor Author

Note, links in @param don't work.

@AndrewJakubowicz
Copy link
Contributor Author

Original issue is resolved.

Note, links in @param don't work.

This may still be an issue, but should have a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant