useblocks / sphinx-bazel

Sphinx extension to read bazel files
http://sphinx-bazel.readthedocs.io/en/latest/
Apache License 2.0
11 stars 4 forks source link

bazelreport command for cli #14

Open danwos opened 5 years ago

danwos commented 5 years ago

There is a use case to create a complete, nice looking documentation out of a bazel workspace, targets, rules, ...

So the goal is to get one/multiple .rst-documents, which contains headlines, text, bazel:xy output and maybe tables for attributes. These rst documents can then be integrated into each sphinx project.

This feature would provide a more readable, better structured output as autobazel-workspace can give, as it creates output row by row only (no tables or headlines).

Main focus is to document found targets (.bzl-fies). For each target a rst-file shall be created.

Spec:

Examples:

bazelreport /bazel/workspace_1
-> creates rst file if bzw files are found

bazelreport -r -s /bazel/workspace_1/package/*_python.bzl
-> documents all _python.bzl files find in subfolder of .../package/ in a single rst file