-
Notifications
You must be signed in to change notification settings - Fork 45
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
Better support for stardoc usage in another directory from the bzl files #57
Comments
Looks like the problem is Any ideas how this can be improved to make using the |
I think with #69 it'll be moot anyway. I imagine you'd effectively be querying the documentation of a bzl file by giving its label, regardless of visibility. |
I'm not sure I follow how #69 helps? Since the |
What I was getting at was that you'd end up generating a file (a la genquery) that includes extracted documentation, and that file would become the input to the rendering side of things (though perhaps both steps would be wrapped up in a common macro). Transitive information is no longer needed at that point. |
Ah, I guess it will depend on if there is still a |
We'd only want the actual extraction to be built into Bazel. What you do with that information in terms of rendering, resolving labels to hyperlinks, etc., should be customizable and would almost certainly still live in the Stardoc repo. Since the |
It seems like it would make sense to put your
stardoc()
rules in adocs
directory where you check in the generated files. But to do that you also have to export the*.bzl
files if it has dependencies because thebzl_library
will have more that one file in it. Ideally the rule would support abzl_library
as input where there is only one direct src entry, or it should support a raw string that isn't a label so thedeps
of thebzl_library
could tell it which file to act on.The text was updated successfully, but these errors were encountered: