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

docs: fix jsdoc version links and semantics #878

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

cgdibble
Copy link
Contributor

Summary

We were getting broken links in the built docs because we have a placeholder for the SDK version that gets swapped out for the actual version at build time. Some of the JSDoc comments are large enough that ended up with more than one version placeholder, thus a basic use of replace wasn't going to work since it just does the first occurrence.

Specifically:

If pattern is a string, only the first occurrence will be replaced.

So, a basic regex does the trick.

During this exploration, I also noted that the JSDocs were using incorrect semantic JSDoc syntax. For a bunch of type definitions we were using @param instead of the appropriate @property: https://jsdoc.app/tags-typedef.html

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@cgdibble cgdibble requested a review from a team as a code owner March 31, 2023 22:46
Copy link
Contributor

@ibooker ibooker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@shango420
Copy link

cdb906e

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

Successfully merging this pull request may close these issues.

4 participants