Skip to content

Commit 8fbdf37

Browse files
author
Maya Shavin
committed
chore: improve the docs
1 parent 451508f commit 8fbdf37

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/url-docs/content/en/setup.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,9 @@ Add `cloudinary-build-url` dependency to your project:
2626
</code-block>
2727
</code-group>
2828

29-
## Configure
30-
31-
You can provide a *global* configuration for Cloudinary builder by using `setConfig()` method.
32-
33-
```js
34-
import { setConfig } from 'cloudinary-build-url'
35-
36-
setConfig({
37-
cloudName: 'your-cloud-name',
38-
})
39-
```
40-
41-
See [Options](/options) section for all available options to initialize Cloudinary builder.
42-
43-
And that's it 🎉!
44-
45-
Now you can start [building optimized delivery urls](/usage/buildUrl) for your images and videos with Cloudinary.
46-
4729
## TypeScript Support
4830

49-
`cloudinary-build-url` supports TypeScript. To use the same types defined in the library, install `@cld-apis/types`.
31+
`cloudinary-build-url` supports TypeScript. To use the same types defined in the library, install `@cld-apis/types` as your devDependencies.
5032

5133
<code-group>
5234
<code-block label="Yarn" active>
@@ -64,3 +46,21 @@ Now you can start [building optimized delivery urls](/usage/buildUrl) for your i
6446

6547
</code-block>
6648
</code-group>
49+
50+
## Configure
51+
52+
You can provide a *global* configuration for Cloudinary builder by using `setConfig()` method.
53+
54+
```js
55+
import { setConfig } from 'cloudinary-build-url'
56+
57+
setConfig({
58+
cloudName: 'your-cloud-name',
59+
})
60+
```
61+
62+
See [Options](/options) section for all available options to initialize Cloudinary builder.
63+
64+
And that's it 🎉!
65+
66+
Now you can start [building optimized delivery urls](/usage/buildUrl) for your images and videos with Cloudinary.

docs/url-docs/content/en/transformations/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const url = buildImageUrl("example", {
236236
cloudName: "demo",
237237
},
238238
transformations: {
239-
opacity: 30,
239+
quality: 10,
240240
},
241241
});
242242
```

0 commit comments

Comments
 (0)