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

Normalize repository starlark API docs #22762

Closed

Conversation

Silic0nS0ldier
Copy link
Contributor

Now that Bazel built with JDK21, Starlark builtin documentation can be made more readable in source (and easier to author, since less escaping is required).

This PR refactors the repository starlark API under src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/ to use multi-line text blocks. Minor edits have also been made to some documentation (replacing unprocessed back-ticks with HTML code tags, adding code tags where I think it makes sense, capitalization, punctuation).

Stats wise (excluding test directory) this covers;

  • 34 of 1101 @StarlarkMethod(...) (5 of 170 files)
  • 5 of 233 @StarlarkBuiltin(...) (5 of 221 files)

@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Jun 15, 2024
@fmeum
Copy link
Collaborator

fmeum commented Jul 4, 2024

@meteorcloudy

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Awesome, thank you so much!!

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jul 4, 2024
@copybara-service copybara-service bot closed this in 8f16990 Jul 9, 2024
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jul 9, 2024
fmeum pushed a commit to fmeum/bazel that referenced this pull request Aug 22, 2024
Now that Bazel built with JDK21, Starlark builtin documentation can be made more readable in source (and easier to author, since less escaping is required).

This PR refactors the repository starlark API under `src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/` to use multi-line text blocks. Minor edits have also been made to some documentation (replacing unprocessed back-ticks with HTML `code` tags, adding `code` tags where I think it makes sense, capitalization, punctuation).

Stats wise (excluding `test` directory) this covers;
- 34 of 1101 `@StarlarkMethod(...)` (5 of 170 files)
- 5 of 233 `@StarlarkBuiltin(...)` (5 of 221 files)

Closes bazelbuild#22762.

PiperOrigin-RevId: 650649974
Change-Id: I3002b8d4bccbe1d11aa6aff184b448eb1f280ba4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants