You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bazel/rules/rules_score/providers.bzl
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -49,11 +49,19 @@ SphinxSourcesInfo = provider(
49
49
builds, including reStructuredText, Markdown, PlantUML diagrams, and
50
50
image files. Rules that produce documentation artifacts should provide
51
51
this to enable integration with sphinx_module and dependable_element.
52
+
53
+
Semantics:
54
+
srcs — Files directly owned/generated by this rule. Only these are
55
+
used as top-level toctree entries by dependable_element.
56
+
For leaf rules (no children), srcs == deps.
57
+
deps — All files needed in the Sphinx tree: own srcs plus all
58
+
transitive files from children. dependable_element symlinks
59
+
everything in deps into the output tree. Parent/container
60
+
rules bubble up children's deps into their own deps field.
52
61
""",
53
62
fields= {
54
-
"srcs": "Depset of direct source files for Sphinx documentation (.rst, .md, .puml, .plantuml, .svg, .png, etc.)",
55
-
"deps": "Depset of transitive Sphinx source files collected from all direct and transitive dependencies.",
56
-
"ancillary": "Depset of files that must be physically present in the Sphinx tree (e.g. for sub-toctrees or .. uml:: directives) but are NOT top-level toctree entries.",
63
+
"srcs": "Depset of files directly owned by this rule (.rst, .md, .puml, etc.). Used by dependable_element as toctree entries.",
64
+
"deps": "Depset of all files needed in the Sphinx tree — own srcs plus transitive deps from all children. For leaf rules, equals srcs.",
0 commit comments