Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 4b067c7

Browse files
authored
Pass --workspace_name to Stardoc (#176)
* Pass --workspace_name to Stardoc Stardoc will thus avoid looking for dependencies in the current workspace name within external/. For example, if the current workspace is "io_bazel", then, when a file loads "@io_bazel//foo:bar.bzl", Stardoc will look to foo/bar.bzl instead of external/io_bazel/foo/bar.bzl * update self_doc_golden with formatting changes since last cut
1 parent 45ae581 commit 4b067c7

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ git_repository(
2929
git_repository(
3030
name = "io_bazel",
3131
remote = "https://github.com/bazelbuild/bazel.git",
32-
commit = "49107ad79ef08811db22636928dfd113a9acf902", # Mar 08, 2019
32+
commit = "c689bf93917ad0efa8100b3a0fe1b43f1f1a1cdf", # Mar 19, 2019
3333
)

stardoc/stardoc.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def _stardoc_impl(ctx):
3333
args = ctx.actions.args()
3434
args.add("--input=" + str(ctx.file.input.owner))
3535
args.add("--output=" + ctx.outputs.out.path)
36+
args.add("--workspace_name=" + ctx.workspace_name)
3637
args.add_all(
3738
ctx.attr.symbol_names,
3839
format_each = "--symbols=%s",

stardoc/stardoc_binary.jar

5.58 KB
Binary file not shown.

test/self_doc_golden.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2+
13
<a name="#stardoc"></a>
4+
25
## stardoc
36

47
<pre>
@@ -93,6 +96,8 @@ documentation for all exported rule definitions will be generated.
9396
</table>
9497

9598

99+
<a name="#_stardoc_impl"></a>
100+
96101
## _stardoc_impl
97102

98103
<pre>

0 commit comments

Comments
 (0)