-
Notifications
You must be signed in to change notification settings - Fork 1k
Replace jsdoc symbol links with @linkcode instead of square brackets #2370
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
Conversation
🦋 Changeset detectedLatest commit: d0cbb19 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
4c8ade5 to
90fed6a
Compare
90fed6a to
fd1762d
Compare
Hmmm... maybe? What are some examples? |
|
Just needs a changeset |
aomarks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
In the screenshot for LitElement, note that I haven't investigated what other consequences an import like this might have. Previously these links didn't work in the editor so I think this change is still a valid incremental improvement. |
71d2b2c to
d0cbb19
Compare
Context
Currently we support [[
symbol]] in our documentation to create an automated hyperlink in our generated lit.dev API documentation. However [[symbol]] isn't recognized by VS code and ends up being rendered directly into the documentation.Instead if we use
{@link symbol}or{@linkcode symbol}then we get automatic hyperlinks and jump to definition in the IDE hover documentation if the linked symbol is in scope. If the symbol is not in scope the IDE experience is similar to currently where the link text is directly printed into the documentation.This change should follow lit.dev's change lit/lit.dev#629 which adds logic to handle transforming
@linkand@linkcode.Testing
This was tested manually by hovering over the symbols, and using this PR to generate Lit.dev documentation.
Open questions
Screenshots
In editor, hover documentation on main branch:
In editor, hover documentation with this change:
Generated documentation on lit.dev (for both):