aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2016-06-01 14:08:53 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-06-01 14:21:11 +0000
commite45ed60f2eb5db19050b6d220acd9fcffaefd3ee (patch)
treeee4369fc1cfcd3167e544287b54fc7ff08d99323 /site
parent3be23361e3d5a8409628aeeff06ce6fa1793ec3d (diff)
More formatting
-- MOS_MIGRATED_REVID=123748542
Diffstat (limited to 'site')
-rw-r--r--site/docs/skylark/aspects.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/site/docs/skylark/aspects.md b/site/docs/skylark/aspects.md
index 93c0e93bdc..b19e67fc67 100644
--- a/site/docs/skylark/aspects.md
+++ b/site/docs/skylark/aspects.md
@@ -9,13 +9,14 @@ title: Skylark Aspects
Aspects allow augmenting build dependency graphs with additional information
and actions. Some typical scenarios when aspects can be useful:
-* IDEs that integrate Bazel can use aspects to collect information about the
- project
-* Code generation tools can leverage aspects to execute on their inputs in
- "target-agnostic" manner. As an example, BUILD files can specify a hierarchy
- of [protobuf](https://developers.google.com/protocol-buffers/) library
- definitions, and language-specific rules can use aspects to attach
- actions generating protobuf support code for a particular language
+
+* IDEs that integrate Bazel can use aspects to collect information about the
+ project
+* Code generation tools can leverage aspects to execute on their inputs in
+ "target-agnostic" manner. As an example, BUILD files can specify a hierarchy
+ of [protobuf](https://developers.google.com/protocol-buffers/) library
+ definitions, and language-specific rules can use aspects to attach
+ actions generating protobuf support code for a particular language
## Aspect basics
@@ -103,9 +104,9 @@ Aspect implementation functions are similiar to the rule implementation
functions. They return [providers](rule.md#providers), can generate
[actions](rule.md#actions) and take two arguments:
-* `target`: the target the aspect is being applied to.
-* [`ctx`](lib/ctx.html): `ctx` object that can be used to access attributes and
- generate outputs and actions.
+* `target`: the target the aspect is being applied to.
+* [`ctx`](lib/ctx.html): `ctx` object that can be used to access attributes and
+ generate outputs and actions.
Example: