File tree Expand file tree Collapse file tree 1 file changed +15
-20
lines changed
test/fixtures/inject/valid Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Installation
4
4
5
- ```
6
- npm install --save sanity-plugin-test-plugin
5
+ ``` sh
6
+ npm install sanity-plugin-test-plugin
7
7
```
8
8
9
- or
9
+ ## Usage
10
10
11
- ```
12
- yarn add sanity-plugin-test-plugin
13
- ```
11
+ Install the plugin in your [ Sanity Studio] ( https://sanity.io/studio ) configuration
12
+ ` sanity.config.ts ` (or ` .js ` ):
14
13
15
- ## Usage
14
+ ``` ts
15
+ import {defineConfig } from ' sanity'
16
+ import {myPlugin } from ' sanity-plugin-test-plugin'
16
17
17
- Add it as a plugin in sanity.config.ts (or .js):
18
+ export const defineConfig({
19
+ // ...
18
20
19
- ```
20
- import {defineConfig} from 'sanity'
21
- import {myPlugin} from 'sanity-plugin-test-plugin'
22
-
23
- export const defineConfig({
24
- /...
25
- plugins: [
26
- myPlugin({})
27
- ]
28
- })
21
+ plugins : [
22
+ myPlugin (),
23
+ ],
24
+ })
29
25
```
30
26
31
27
## License
32
28
33
- MIT © Test Person
34
- See LICENSE
29
+ [ MIT] ( LICENSE ) © Test Person
You can’t perform that action at this time.
0 commit comments