Skip to content

Commit db04651

Browse files
committed
Doc updates
1 parent f9036f5 commit db04651

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/docs/guides/plugins.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ class ExamplePolicy(ApplyPolicy):
116116
## Built-in Plugins
117117

118118
### REST Plugin
119-
If you'd like to apply custom policies within your organization, you can set up your own plugin API server and integrate it with `dstack` via the `rest-plugin`. To get started, check out the [plugijn server example](/examples/plugins/example_plugin_server/README.md).
119+
`rest_plugin` is a builtin `dstack` plugin that allows writing your custom plugins as API servers, so you don't need to install plugins as Python packages.
120120

121-
For more information on the plugin development, see the [plugin example](https://github.com/dstackai/dstack/tree/master/examples/plugins/example_plugin).
121+
Plugins implemented as API servers have advantages over plugins implemented as Python packages in some cases:
122+
* No dependency conflicts with `dstack`.
123+
* You can use any programming language.
124+
* If you run the `dstack` server via Docker, you don't need to extend the `dstack` server image with plugins or map them via volumes.
125+
126+
To get started, check out the [plugin server example](/examples/plugins/example_plugin_server/README.md).

examples/plugins/example_plugin_server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Overview
22

3-
If you wish to hook up your own plugin server through `dstack` builtin ` rest-plugin`, here's a basic example on how to do so.
3+
If you wish to hook up your own plugin server through `dstack` builtin `rest_plugin`, here's a basic example on how to do so.
44

55
## Steps
66

@@ -17,7 +17,7 @@ If you wish to hook up your own plugin server through `dstack` builtin ` rest-pl
1717
fastapi dev app/main.py
1818
```
1919

20-
1. Enable `rest-plugin` in `dstack` `server/config.yaml`:
20+
1. Enable `rest_plugin` in `server/config.yaml`:
2121

2222
```yaml
2323
plugins:

0 commit comments

Comments
 (0)