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

complete public API documentation #1212

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OmarTawfik
Copy link
Contributor

Adds typedoc linter, and fixes all violations in the public API.

See the config in crates/solidity/outputs/npm/package/typedoc.mjs for more info.

Copy link

changeset-bot bot commented Jan 2, 2025

⚠️ No Changeset found

Latest commit: 5455207

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@OmarTawfik OmarTawfik force-pushed the typedoc-site branch 2 times, most recently from 3e89c36 to 30cffc8 Compare January 2, 2025 02:28
@OmarTawfik OmarTawfik marked this pull request as ready for review January 2, 2025 05:07
@OmarTawfik OmarTawfik requested review from a team as code owners January 2, 2025 05:07
@OmarTawfik OmarTawfik enabled auto-merge January 2, 2025 05:07
Adds `typedoc` linter, and fixes all violations in the public API.

See the config in `crates/solidity/outputs/npm/package/typedoc.mjs` for more info.
@@ -11,7 +11,7 @@ interface cst {
stub3,
{%- else %}
{%- for variant in model.kinds.nonterminal_kinds %}
/// This kind represents a `{{ variant.id }}` node, with the following structure:
/// Represents a node with kind `{{ variant.id | pascal_case }}`, having the following structure:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how useful a lot of this documentation is, considering it's mostly just repeating the type and identifier again. Is it important to the user to know that the node kind should be represented in pascal_case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The query language will always use PascalCase for node kinds, regardless of the client language. That might not be as important for this enum specifically, but for others like EdgeLabel, it is important, since the query language uses snake_case and TypeScript/Rust use PascalCase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think the NonterminalKind docs here are adding noise/harming readability?

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.

2 participants