-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[8.1.0] Symbolic macro Stardoc proto cherry picks #24607
Conversation
…rs, and attribute inheritance Symbolic macros have a mandatory visibility attribute - we need to document it. To support attribute inheritance in documentation generation, it suffices to extract non-Starlark-defined attributes in macros, and expose the fact that they are non-Starlark-defined - so that a documentation renderer can provide a link to bazel.build common attributes for the natively defined common attributes that don't have a doc string. Take the opportunity to refactor addDocumentableAttributes() into a better shape (taking an explicit argument for the implicitly-added attributes), and fix the long-standing bug that Stardoc has been inserting a non-existent "name" attribute for aspects (which was partly obscured by the old addDocumentableAttributes() implementation). RELNOTES: Fix starlark_doc_extract proto output for symbolic macro visibility, attribute inheritance, and rule finalizers; and remove non-existent "name" attribute from starlark_doc_extract output for aspects. PiperOrigin-RevId: 700811908 Change-Id: I5486919b9e2af98a7d08f952f8075216c3c60bfd
…rable and natively defined. Follow-up fix to bazelbuild@59e99b6 PiperOrigin-RevId: 703255080 Change-Id: I1055c4c8b7e2e627199bdca9e2daab5654102831
@Wyverald I hear 8.0's release is imminent and my understanding is these changes are backwards compatible so we can retarget them to 8.1. Is the process to still merge into the release-8.0.0 branch, or has the final release not been cut yet?(We can also just keep this PR in limbo until after the release.) |
I marked this as soft-release-blocker because I wasn't sure when 8.0 was "really" going to be cut. This PR should not by itself block the release - but if there are any other blockers, I'd like this to go in too. |
@bazel-io fork 8.0.1 |
Closing in favor of: #24644 |
This is a cherry-pick of the following 2 commits, which collectively allow API documentation generation for symbolic macros using Stardoc:
Cherry-pick of
59e99b6
PiperOrigin-RevId: 700811908
Change-Id: I5486919b9e2af98a7d08f952f8075216c3c60bfd
Cherry-pick of
e6a44c8
PiperOrigin-RevId: 703255080
Change-Id: I1055c4c8b7e2e627199bdca9e2daab5654102831