Skip to content

Commit 4aa58a6

Browse files
committed
docs: migrate guides from v1 to v2 Starlight
1 parent 265f484 commit 4aa58a6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/docs/src/content/docs/guides/background-removal.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ The CldImage component allows you to easily remove backgrounds from images using
2424
/>
2525
</div>
2626

27-
<Tabs>
28-
<Tab type="code" open title="CldImage">
29-
3027
```svelte
3128
<script>
3229
import { CldImage } from 'svelte-cloudinary';

packages/docs/src/content/docs/guides/placeholders.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ then pass it in to our CldImage component.
4848

4949
Inside of the SvelteKit app, we can utilize server side code to generate a data URL from our image.
5050

51-
<CodeBlock>
51+
5252

5353
```js
5454

@@ -70,7 +70,7 @@ export const load = () => {
7070
}
7171
```
7272

73-
</CodeBlock>
73+
7474

7575
Then when rendering CldImage, utilize the `dataUrl` using `placeholder` and `blurDataURL`:
7676

@@ -109,7 +109,7 @@ our images are loading.
109109

110110
Inside of the SvelteKit app you can use a server side code `+page.server.js` to generate a data URL from our image.
111111

112-
<CodeBlock>
112+
113113

114114
```js
115115
export const load = () => {
@@ -137,7 +137,7 @@ export const load = () => {
137137
};
138138
```
139139

140-
</CodeBlock>
140+
141141

142142
Then when rendering CldImage, utilize the `dataUrl` using `placeholder`:
143143

0 commit comments

Comments
 (0)