Skip to content

Commit

Permalink
Changes to aspects documentation.
Browse files Browse the repository at this point in the history
Added aspects to navigation bar and converted images to png.

--
MOS_MIGRATED_REVID=123666975
  • Loading branch information
dslomov committed Jun 1, 2016
1 parent 8ed9cd4 commit cf2298c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions site/_layouts/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ <h3>Custom Rules</h3>
<li><a href="/docs/skylark/concepts.html">Concepts</a></li>
<li><a href="/docs/skylark/rules.html">Rules</a></li>
<li><a href="/docs/skylark/macros.html">Macros</a></li>
<li><a href="/docs/skylark/aspects.html">Aspects</a></li>
<li><a href="/docs/skylark/repository_rules.html">Repository rules</a></li>
<li>
<a class="sidebar-nav-heading" data-toggle="collapse"
Expand Down
4 changes: 2 additions & 2 deletions site/docs/skylark/aspects.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ java_library(name = 'X', deps = [':Y',':Z'], runtime_deps = [':T'], ...)

This BUILD file defines a dependency graph shown in Fig 1.

![Build Graph](build-graph.svg)
![Build Graph](build-graph.png){width="250px"}

Bazel analyzes this dependency graph by calling implementations of
[rules](rules.md) (in this case "java_library" starting from leaves of
Expand All @@ -63,7 +63,7 @@ attribute (all attributes in A's propagation list). Thus a single act of
applying aspect A to a target X yields a "shadow graph" of the original
dependency graph of targets (see Fig.2).

![Build Graph with Aspect](build-graph-aspect.svg)
![Build Graph with Aspect](build-graph-aspects.png)

The only edges that are shadowed are the edges along the attributes in
the propagation set, thus the `runtime_deps` edge is not shadowed in this
Expand Down
Binary file added site/docs/skylark/build-graph-aspects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/docs/skylark/build-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cf2298c

Please sign in to comment.