You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix //torchx/github/docs:doctest on devservers and rid a few warnings. (#1017)
Summary:
Adds documentation and removes a few annoying warnings when building torchx (staticdocs) docs in a devserver.
NOTE: The developer still has to manually install `pandoc` by running `dnf install -y pandoc` (this is documented in `//torchx/github/docs/TARGETS`)
Reviewed By: andywag
Differential Revision: D71421188
Copy file name to clipboardExpand all lines: docs/source/custom_components.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,16 @@ jupyter:
14
14
15
15
# Custom Components
16
16
17
-
This is a guide on how to build a simple app and custom component spec
18
-
and launch it via two different schedulers.
17
+
This is a guide on how to build a simple app and custom component spec and
18
+
launch it via two different schedulers.
19
19
20
20
See the [Quickstart Guide](quickstart.md) for installation and basic usage.
21
21
22
-
23
22
## Builtins
24
23
25
-
Before writing a custom component, check if any of the builtin components satisfy your needs. TorchX provides a number of builtin components with premade images. You can discover them via:
24
+
Before writing a custom component, check if any of the builtin components
25
+
satisfy your needs. TorchX provides a number of builtin components with premade
26
+
images. You can discover them via:
26
27
27
28
```sh
28
29
torchx builtins
@@ -35,7 +36,6 @@ you would any other component.
35
36
torchx run utils.echo --msg "Hello :)"
36
37
```
37
38
38
-
39
39
## Hello World
40
40
41
41
Lets start off with writing a simple "Hello World" python app. This is just a
@@ -71,8 +71,8 @@ if __name__ == "__main__":
71
71
main(args.user)
72
72
```
73
73
74
-
Now that we have an app we can write the component file for it. This
75
-
function allows us to reuse and share our app in a user friendly way.
74
+
Now that we have an app we can write the component file for it. This function
75
+
allows us to reuse and share our app in a user friendly way.
76
76
77
77
We can use this component from the `torchx` cli or programmatically as part of a
0 commit comments