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

Export all the deps we need for stardoc to work #150

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Sep 4, 2024

This enables rulesets that use rules_license to be properly documented via stardoc. Without this, stardoc will fail because the source files for particular rules or providers will not be available.

This enables rulesets that use `rules_license` to be properly
documented via `stardoc`. Without this, `stardoc` will fail
because the source files for particular rules or providers
will not be available.
@shs96c shs96c requested a review from aiuto as a code owner September 4, 2024 12:55
Copy link
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

LOL. I spent too much time fighting with stardoc yesterday.
This PR is fine, but not really sufficient. Just FYI about the issue

  • stardoc has no mechanism to propgate up docstrings from an implementation rule to a wrapper around it (e.g _license vs. license)
  • So I built a post processor that does this.
  • Somewhere in the recent past, bazel changed so that it never generates docs for any non-external rule, so I can't generate the docs for "_license".
  • whump, whump, whump.

I decided to fix that after the 1.0.0. See #151 for WIP on that.

@aiuto aiuto merged commit dfa2c47 into bazelbuild:main Sep 4, 2024
2 checks passed
@shs96c shs96c deleted the export-docs branch September 4, 2024 13:31
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