aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/repo_rules_test/golden.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/repo_rules_test/golden.md')
-rwxr-xr-xtest/testdata/repo_rules_test/golden.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/testdata/repo_rules_test/golden.md b/test/testdata/repo_rules_test/golden.md
index b40071f..87391e3 100755
--- a/test/testdata/repo_rules_test/golden.md
+++ b/test/testdata/repo_rules_test/golden.md
@@ -1,11 +1,13 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
-<a name="#my_repo"></a>
+
+
+<a id="my_repo"></a>
## my_repo
<pre>
-my_repo(<a href="#my_repo-name">name</a>, <a href="#my_repo-useless">useless</a>)
+my_repo(<a href="#my_repo-name">name</a>, <a href="#my_repo-repo_mapping">repo_mapping</a>, <a href="#my_repo-useless">useless</a>)
</pre>
Minimal example of a repository rule.
@@ -14,8 +16,9 @@ Minimal example of a repository rule.
| Name | Description | Type | Mandatory | Default |
-| :-------------: | :-------------: | :-------------: | :-------------: | :-------------: |
-| name | A unique name for this repository. | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required | |
-| useless | This argument will be ingored. You don't have to specify it, but you may. | String | optional | "ignoreme" |
+| :------------- | :------------- | :------------- | :------------- | :------------- |
+| <a id="my_repo-name"></a>name | A unique name for this repository. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
+| <a id="my_repo-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.&lt;p&gt;For example, an entry <code>"@foo": "@bar"</code> declares that, for any time this repository depends on <code>@foo</code> (such as a dependency on <code>@foo//some:target</code>, it should actually resolve that dependency within globally-declared <code>@bar</code> (<code>@bar//some:target</code>). | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | required | |
+| <a id="my_repo-useless"></a>useless | This argument will be ingored. You don't have to specify it, but you may. | String | optional | <code>"ignoreme"</code> |