Docs Dependencies#
When running bazel run :docs, the documentation build system orchestrates multiple interconnected dependencies to produce HTML documentation.
Gather inputs (Bazel may do this parallelized):
Extract source code links from files via
sourcelinks_jsonrule.Optionally, merge source links using the
merge_sourcelinksrule.
Needs (requirements) are gathered from various
needs_jsontargets specified in thedataattribute.
Documentation sources are read from the specified source directory (default:
docs/). Sphinx processes the documentation sources along with the merged data to generate the final HTML output.