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.
Imported Needs are gathered from public
docs()ordocs_bundletargets specified inexternal_needs. Theneeds_jsonlabel remains accepted as a deprecated form without a warning for now;needs_json_fileremains supported for directly naming an inventory file. Passing a Needs inventory throughdatais deprecated and prints an informational message; declare it throughexternal_needsinstead.
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.