Open tetromino opened 4 months ago
Probably option 1b is the easiest way to go, since it is self-explanatory at the rule declaration point and doesn't require coordinating stardoc and bazel releases.
I'm wondering if there is any prior art for such a magic "do not use this" docstring value - maybe something in the python world?
From @fenghaolw in https://github.com/bazelbuild/stardoc/pull/46:
I think this is a reasonable feature to have. I can see several ways of fixing this:
xxx_for_migration_only = attr.label(undocumented = True)
; or b. via a magic value fordoc
:xxx_for_migration_only = attr.label(doc = "__undocumented__")
starlark_doc_extract
to hide documentation for some attributes, maybe something likestarlark_doc_extract(name = "foo_doc", src = "//:foo.bzl", hide_attributes = {"rule_foo": ["xxx_for_migration_only"]})
I would lean to option 1 or 3.