Skip to content

Commit

Permalink
Docs: Fix links to Platforms page on build encyclopedia
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 364885937
  • Loading branch information
Googler authored and copybara-github committed Mar 24, 2021
1 parent a1f2a38 commit c792ed3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ public RuleDefinition.Metadata getMetadata() {
<p>This rule is used to introduce a new constraint type for which a platform may specify a value.
For instance, you might define a <code>constraint_setting</code> named "glibc_version" to represent
the capability for platforms to have different versions of the glibc library installed. See the
<a href="https://docs.bazel.build/versions/master/platforms.html">Platforms</a> page for more
details.
the capability for platforms to have different versions of the glibc library installed.
For more details, see the
<a href="https://docs.bazel.build/versions/master/platforms.html">Platforms</a> page.
<p>Each <code>constraint_setting</code> has an extensible set of associated
<code>constraint_value</code>s. Usually these are defined in the same package, but sometimes a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public Metadata getMetadata() {
}
/*<!-- #BLAZE_RULE (NAME = constraint_value, FAMILY = Platform)[GENERIC_RULE] -->
This rule introduces a new value for a given constraint type. See the
<a href="https://docs.bazel.build/versions/master/platforms.html">Platforms</a> page for more
details.
This rule introduces a new value for a given constraint type.
For more details, see the
<a href="https://docs.bazel.build/versions/master/platforms.html">Platforms</a> page.
<h4 id="constraint_value_examples">Example</h4>
<p>The following creates a new possible value for the predefined <code>constraint_value</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ public Metadata getMetadata() {
}
/*<!-- #BLAZE_RULE (NAME = platform, FAMILY = Platform)[GENERIC_RULE] -->
<p>This rule defines a new platform -- a named collection of constraint choices (such as cpu
architecture or compiler version) describing an environment in which part of the build may run.
See the <a href="../platforms.html">Platforms</a> page for
more details.
<p>This rule defines a new platform -- a named collection of constraint choices
(such as cpu architecture or compiler version) describing an environment in
which part of the build may run.
For more details, see the
<a href="https://docs.bazel.build/versions/master/platforms.html">Platforms</a> page.
<h4 id="platform_examples">Example</h4>
<p>
Expand Down

0 comments on commit c792ed3

Please sign in to comment.