File tree Expand file tree Collapse file tree 4 files changed +38
-11
lines changed Expand file tree Collapse file tree 4 files changed +38
-11
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,15 @@ write_file(
90
90
],
91
91
)
92
92
93
+ write_file (
94
+ name = "setup_header" ,
95
+ out = "setup_header.vm" ,
96
+ content = [
97
+ "<!-- Generated with Stardoc, Do Not Edit! -->" ,
98
+ "# Workspace Setup" ,
99
+ ],
100
+ )
101
+
93
102
[
94
103
stardoc (
95
104
name = file + "_doc" ,
@@ -105,6 +114,14 @@ write_file(
105
114
] in _DOC_SRCS .items ()
106
115
]
107
116
117
+ stardoc (
118
+ name = "setup_doc" ,
119
+ out = "setup.md_" ,
120
+ header_template = "setup_header.vm" ,
121
+ input = "//swift:repositories.bzl" ,
122
+ deps = ["//swift:repositories" ],
123
+ )
124
+
108
125
# To make these tests pass, run
109
126
# bazel run //doc:update
110
127
[
@@ -113,7 +130,7 @@ write_file(
113
130
file1 = file + ".md_" ,
114
131
file2 = file + ".md" ,
115
132
)
116
- for file in _DOC_SRCS .keys ()
133
+ for file in _DOC_SRCS .keys () + [ "setup" ]
117
134
]
118
135
119
136
write_file (
@@ -126,7 +143,7 @@ write_file(
126
143
"cp -fv bazel-bin/doc/{0}.md_ doc/{0}.md" .format (
127
144
file ,
128
145
)
129
- for file in _DOC_SRCS .keys ()
146
+ for file in _DOC_SRCS .keys () + [ "setup" ]
130
147
],
131
148
)
132
149
Original file line number Diff line number Diff line change
1
+ <!-- Generated with Stardoc, Do Not Edit! -->
1
2
# Workspace Setup
3
+ <a id =" #swift_rules_dependencies " ></a >
2
4
3
-
4
- <a href =" swift_rules_dependencies " ></a >
5
5
## swift_rules_dependencies
6
6
7
- <pre style = " white-space : pre-wrap " >
7
+ <pre >
8
8
swift_rules_dependencies()
9
9
</pre >
10
10
11
- Fetches repositories that are dependencies of the ` rules_swift ` workspace .
11
+ Fetches repositories that are dependencies of ` rules_swift ` .
12
12
13
13
Users should call this macro in their ` WORKSPACE ` to ensure that all of the
14
- dependencies of the Swift rules are downloaded and that they are isolated from
15
- changes to those dependencies.
14
+ dependencies of the Swift rules are downloaded and that they are isolated
15
+ from changes to those dependencies.
16
+
17
+
18
+
16
19
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ diff stardoc/templates/markdown_tables/func.vm stardoc/templates/markdown_tables
2
2
index e53e639..1b7bd7a 100644
3
3
--- stardoc/templates/markdown_tables/func.vm
4
4
+++ stardoc/templates/markdown_tables/func.vm
5
- @@ -18,3 +18,7 @@ ${funcInfo.docString}
5
+ @@ -18,3 +18,9 @@ ${funcInfo.docString}
6
6
| <a id="${funcInfo.functionName}-${param.name}"></a>$param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else <p align="center"> - </p> #end | #if(!$param.getDefaultValue().isEmpty()) <code>$param.getDefaultValue()</code> #else none #end|
7
7
#end
8
8
#end
9
9
+
10
+ + #if (!$funcInfo.return.docString.isEmpty())
10
11
+ **RETURNS**
11
12
+
12
- + ${funcInfo.return.docString}
13
+ + ${funcInfo.return.docString}
14
+ + #end
Original file line number Diff line number Diff line change @@ -9,12 +9,17 @@ package(default_visibility = ["//visibility:public"])
9
9
10
10
licenses (["notice" ])
11
11
12
+ bzl_library (
13
+ name = "bazel_tools_bzl" ,
14
+ srcs = ["@bazel_tools//tools:bzl_srcs" ],
15
+ )
16
+
12
17
bzl_library (
13
18
name = "repositories" ,
14
19
srcs = ["repositories.bzl" ],
15
20
deps = [
21
+ ":bazel_tools_bzl" ,
16
22
"//swift/internal:swift_autoconfiguration" ,
17
- "@bazel_tools//tools/build_defs/repo:http.bzl" ,
18
23
],
19
24
)
20
25
You can’t perform that action at this time.
0 commit comments