bazelbuild / stardoc

Stardoc: Starlark Documentation Generator
Apache License 2.0
108 stars 45 forks source link

Update templates for macro returns and deprecations #75

Closed segiddins closed 3 years ago

segiddins commented 4 years ago

Closes #58

thomasvl commented 4 years ago

@c-parsons can you take a look

The buildifier failure seem to be on the test files; so and existing issue?

segiddins commented 4 years ago

The buildkite link 404s for me -- is there any way for me to see what the failures are so I can fix them?

thomasvl commented 4 years ago
test/testdata/misc_apis_test/input.bzl:20: provider-params: Calls to 'provider' should provide a documentation:\n  provider("description", fields = [...])
test/testdata/provider_basic_test/input.bzl:2: provider-params: Calls to 'provider' should provide a list of fields and a documentation:\n  provider("description", fields = [...])
test/testdata/providers_for_attributes_test/dep.bzl:3: provider-params: Calls to 'provider' should provide a list of fields:\n  provider("description", fields = [...])
test/testdata/providers_for_attributes_test/input.bzl:8: provider-params: Calls to 'provider' should provide a documentation:\n  provider("description", fields = [...])
test/testdata/providers_for_attributes_test/input.bzl:15: provider-params: Calls to 'provider' should provide a list of fields and a documentation:\n  provider("description", fields = [...])
segiddins commented 4 years ago

Hmm so # buildifier: disable=provider-params doesn't seem to allow disabling that check for some reason?

brandjon commented 3 years ago

Hi Samuel, thanks for the PR. Just an update on this repo:

We intend to develop a replacement for stardoc that's built into the Bazel binary. This will avoid skew between a bzl file's true semantics and what the doc tooling thinks the semantics should be. When it's ready, we'll deprecate this repo.

In the meantime, we commit to keeping the essential functionality working, but will not necessarily have the bandwidth to accept enhancements. We'll be making a triage pass over this repo soon and will let you know whether we can merge this PR.

@googlebot scan for cla

keith commented 3 years ago

We intend to develop a replacement for stardoc that's built into the Bazel binary

any timeline on that?

brandjon commented 3 years ago

Design doc in Q1, most likely implementation in Q2.

Note that this work isn't just for stardoc's sake. It's part of a broader effort to better specify Bazel's loading phase. Removing the current stardoc implementation will also simplify Bazel's code (no more starlarkbuildapi/ interfaces).

brandjon commented 3 years ago

I should clarify, the replacement we're talking about concerns how documentation info is actually extracted from bzl files. It does not necessarily mean this specific repo will be deprecated. That is, the templating/formatting logic might remain here even after the redesign.

The important point is we will be prioritizing developing the new architecture over feature requests in this repo.

tetromino commented 3 years ago

@segiddins, would you mind rebasing this after the jar updates and buildifier-ing in https://github.com/bazelbuild/stardoc/pull/97?

segiddins commented 3 years ago

Rebased, my apologies for the delay!

tetromino commented 3 years ago

@brandjon - would you mind taking a look and ack-ing this?