Skip to content

Add docs:update target#703

Open
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/add-docs-update-target
Open

Add docs:update target#703
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/add-docs-update-target

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Apr 24, 2026

This can be run with bazel run docs:update to copy over changes.

@keith
Copy link
Copy Markdown
Member Author

keith commented Apr 24, 2026

I noticed we're not putting all the other cc_binary etc stardoc generations in the docs/ directory, i assume because they're also on the website? i wonder if we should generate them here too just for easier discovery for people who are already looking at this repo

This can be run with `bazel run docs:update` to copy over changes.
@keith keith force-pushed the ks/add-docs-update-target branch from 3a6deb9 to fff9723 Compare April 24, 2026 00:35
@lilygorsheneva
Copy link
Copy Markdown
Collaborator

i wonder if we should generate them here too just for easier discovery for people who are already looking at this repo

I think that's a good idea.

(the file in #701 would need a rename, haven't looked closely at that PR yet)

@trybka
Copy link
Copy Markdown
Collaborator

trybka commented May 12, 2026

Wonder if @meteorcloudy or @Wyverald have any thoughts? I'm a bit more in the dark on doc things

@lilygorsheneva lilygorsheneva added the under investigation Issue couldn't be triaged, more data or investigation is needed label May 12, 2026
@Wyverald
Copy link
Copy Markdown
Member

I don't have much to offer here -- different rulesets have very different ways of serving documentation; some use just GitHub, others use stuff like readthedocs. Maybe the future is the automatic doc extraction from the new BCR UI (e.g. https://registry-preview.bazel.build/modules/rules_cc/0.2.18/docs/cc/toolchains/impl/documented_api.bzl/cc_tool)?

@trybka
Copy link
Copy Markdown
Collaborator

trybka commented May 12, 2026

I don't have much to offer here -- different rulesets have very different ways of serving documentation; some use just GitHub, others use stuff like readthedocs.

I think it's more of a policy / intent question.

When rulesets originate from Bazel as builtins, and then they "graduate" to their own Rulesets, how do we want to handle those?

What have we done for other rulesets (proto, java, etc.)?

@Wyverald
Copy link
Copy Markdown
Member

Nothing centrally managed has happened (not that I know of anyway). The sorry state of affairs is plainly visible if you look at the "language-specific rules" section of the Bazel Build Encyclopedia (https://bazel.build/reference/be/java for example). IMO ideally there would be a well-lit path for docs serving for all rulesets (not just the ones that 'graduated' from Bazel) -- hence why I suggested just congregating on the BCR UI; but that's not a great solution for prose docs.

I think the most readily achievable thing for now is for each ruleset to put some generated .md files in the same directory so that they're viewable from GitHub at least (rules_go does this quite well: https://github.com/bazel-contrib/rules_go/blob/master/docs/go/core/rules.md). This PR is a good step towards that.

@armandomontanez
Copy link
Copy Markdown
Collaborator

+1, I'd like to see the BCR reference docs be the long-term future (a la rustdoc) as well, but I think markdown files are immediately helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

under investigation Issue couldn't be triaged, more data or investigation is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants