File tree Expand file tree Collapse file tree 5 files changed +15
-21
lines changed Expand file tree Collapse file tree 5 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -767,8 +767,7 @@ Breaking changes:
767
767
768
768
### Added
769
769
770
- * (bzlmod, entry_point) Added
771
- [ ` py_console_script_binary ` ] ( ./docs/py_console_script_binary.md ) , which
770
+ * (bzlmod, entry_point) Added {obj}` py_console_script_binary ` , which
772
771
allows adding custom dependencies to a package's entry points and customizing
773
772
the ` py_binary ` rule used to build it.
774
773
Original file line number Diff line number Diff line change 2
2
3
3
``` {toctree}
4
4
:glob:
5
- *
6
5
*/index
7
6
```
Original file line number Diff line number Diff line change 59
59
autodoc2_docstring_parser_regexes = [
60
60
(".*" , "myst" ),
61
61
]
62
-
62
+
63
63
# NOTE: The redirects generation will clobber existing files.
64
64
redirects = {
65
65
"api/tools/precompiler/index" : "/api/rules_python/tools/precompiler/index.html" ,
Original file line number Diff line number Diff line change @@ -326,7 +326,9 @@ alias(
326
326
)
327
327
```
328
328
329
- ### Vendoring the requirements.bzl file
329
+ :::{rubric} Vendoring the requirements.bzl file
330
+ :heading-level: 3
331
+ :::
330
332
331
333
In some cases you may not want to generate the requirements.bzl file as a repository rule
332
334
while Bazel is fetching dependencies. For example, if you produce a reusable Bazel module
Original file line number Diff line number Diff line change @@ -140,6 +140,16 @@ Refer to a target.
140
140
141
141
:::{rst: role } bzl: type
142
142
Refer to a type or type expression; can also be used in argument documentation.
143
+
144
+ ```
145
+ def func(arg):
146
+ """Do stuff
147
+
148
+ Args:
149
+ arg: {type}`int | str` the arg
150
+ """
151
+ print(arg + 1)
152
+ ```
143
153
:::
144
154
145
155
## Special roles
@@ -187,22 +197,6 @@ def func():
187
197
```
188
198
:::
189
199
190
- :::{rst: role } bzl: type
191
-
192
- Indicates the type of an argument for a function. Use it in the Args doc of
193
- a function.
194
-
195
- ```
196
- def func(arg):
197
- """Do stuff
198
-
199
- Args:
200
- arg: {type}`int`
201
- """
202
- print(arg + 1)
203
- ```
204
- :::
205
-
206
200
## Directives
207
201
208
202
Most directives are automatically generated by ` sphinx_stardoc ` . Here, we only
You can’t perform that action at this time.
0 commit comments