diff options
author | Dmitry Lomov <dslomov@google.com> | 2016-05-31 18:54:33 +0000 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2016-06-01 08:13:52 +0000 |
commit | cf2298ced82d04bea9ec83cf3aaa65e70f9108bd (patch) | |
tree | 2d73e099c0cacce359f651bfe247c4808a6513ac /site | |
parent | 8ed9cd402ca7d5a12ad631001db78d2608027a1b (diff) |
Changes to aspects documentation.
Added aspects to navigation bar and converted images to png.
--
MOS_MIGRATED_REVID=123666975
Diffstat (limited to 'site')
-rw-r--r-- | site/_layouts/documentation.html | 1 | ||||
-rw-r--r-- | site/docs/skylark/aspects.md | 4 | ||||
-rw-r--r-- | site/docs/skylark/build-graph-aspects.png | bin | 0 -> 25300 bytes | |||
-rw-r--r-- | site/docs/skylark/build-graph.png | bin | 0 -> 11582 bytes |
4 files changed, 3 insertions, 2 deletions
diff --git a/site/_layouts/documentation.html b/site/_layouts/documentation.html index 44042593e4..a35462d964 100644 --- a/site/_layouts/documentation.html +++ b/site/_layouts/documentation.html @@ -61,6 +61,7 @@ nav: docs <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" diff --git a/site/docs/skylark/aspects.md b/site/docs/skylark/aspects.md index 36d9d7b660..1e5e4a6edc 100644 --- a/site/docs/skylark/aspects.md +++ b/site/docs/skylark/aspects.md @@ -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 @@ -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 diff --git a/site/docs/skylark/build-graph-aspects.png b/site/docs/skylark/build-graph-aspects.png Binary files differnew file mode 100644 index 0000000000..fb8042a5b7 --- /dev/null +++ b/site/docs/skylark/build-graph-aspects.png diff --git a/site/docs/skylark/build-graph.png b/site/docs/skylark/build-graph.png Binary files differnew file mode 100644 index 0000000000..2efd68ac59 --- /dev/null +++ b/site/docs/skylark/build-graph.png |