Skip to content

Commit da2eb3f

Browse files
authored
Merge branch 'main' into docs/readd-old-guides
2 parents 625c12e + fe5b221 commit da2eb3f

36 files changed

+516
-734
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,33 @@
149149
"contributions": [
150150
"test"
151151
]
152+
},
153+
{
154+
"login": "aarya-16",
155+
"name": "aarya-16",
156+
"avatar_url": "https://avatars.githubusercontent.com/u/145715221?v=4",
157+
"profile": "https://github.com/aarya-16",
158+
"contributions": [
159+
"doc"
160+
]
161+
},
162+
{
163+
"login": "daniloff200",
164+
"name": "Dmytro Danylov",
165+
"avatar_url": "https://avatars.githubusercontent.com/u/13692220?v=4",
166+
"profile": "https://github.com/daniloff200",
167+
"contributions": [
168+
"doc"
169+
]
170+
},
171+
{
172+
"login": "SanchitMahajan236",
173+
"name": "SanchitMahajan236",
174+
"avatar_url": "https://avatars.githubusercontent.com/u/116559051?v=4",
175+
"profile": "https://github.com/SanchitMahajan236",
176+
"contributions": [
177+
"doc"
178+
]
152179
}
153180
],
154181
"contributorsPerLine": 7,

.changeset/hungry-months-tap.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Colby Fayock
3+
Copyright (c) 2023 Cloudinary
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Please take a look at our [guide](./CONTRIBUTING.md).
3838
</tr>
3939
<tr>
4040
<td align="center" valign="top" width="14.28%"><a href="https://github.com/moonlander101"><img src="https://avatars.githubusercontent.com/u/114925949?v=4?s=100" width="100px;" alt="Himath Samarakoon"/><br /><sub><b>Himath Samarakoon</b></sub></a><br /><a href="https://github.com/cloudinary-community/svelte-cloudinary/commits?author=moonlander101" title="Tests">⚠️</a></td>
41+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/aarya-16"><img src="https://avatars.githubusercontent.com/u/145715221?v=4?s=100" width="100px;" alt="aarya-16"/><br /><sub><b>aarya-16</b></sub></a><br /><a href="https://github.com/cloudinary-community/svelte-cloudinary/commits?author=aarya-16" title="Documentation">📖</a></td>
42+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/daniloff200"><img src="https://avatars.githubusercontent.com/u/13692220?v=4?s=100" width="100px;" alt="Dmytro Danylov"/><br /><sub><b>Dmytro Danylov</b></sub></a><br /><a href="https://github.com/cloudinary-community/svelte-cloudinary/commits?author=daniloff200" title="Documentation">📖</a></td>
43+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SanchitMahajan236"><img src="https://avatars.githubusercontent.com/u/116559051?v=4?s=100" width="100px;" alt="SanchitMahajan236"/><br /><sub><b>SanchitMahajan236</b></sub></a><br /><a href="https://github.com/cloudinary-community/svelte-cloudinary/commits?author=SanchitMahajan236" title="Documentation">📖</a></td>
4144
</tr>
4245
</tbody>
4346
</table>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"repository": "[email protected]:cloudinary-community/svelte-cloudinary.git",
66
"contributors": [
77
"Willow (GHOST) <[email protected]> (https://ghostdev.xyz)",
8-
"Colby Fayock <[email protected]>",
98
"Matias Hernandez <[email protected]>"
109
],
1110
"scripts": {

packages/docs/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
.astro
3+
node_modules
4+
package.json

packages/docs/.prettierrc

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
{
2-
"singleQuote": true,
3-
"quoteProps": "as-needed",
4-
"trailingComma": "all",
5-
"bracketSpacing": true,
6-
"arrowParens": "always",
7-
"semi": true,
8-
"useTabs": true,
9-
"tabWidth": 4,
10-
"svelteSortOrder": "scripts-options-markup-styles",
11-
"svelteAllowShorthand": true,
12-
"svelteBracketNewLine": false,
13-
"svelteIndentScriptAndStyle": true
14-
}
2+
"singleQuote": true,
3+
"quoteProps": "as-needed",
4+
"trailingComma": "all",
5+
"bracketSpacing": true,
6+
"bracketSameLine": true,
7+
"arrowParens": "always",
8+
"semi": true,
9+
"useTabs": true,
10+
"tabWidth": 4,
11+
12+
"svelteAllowShorthand": true,
13+
"svelteIndentScriptAndStyle": true,
14+
15+
"plugins": ["prettier-plugin-svelte"],
16+
"overrides": [
17+
{
18+
"files": "*.svelte",
19+
"options": {
20+
"parser": "svelte"
21+
}
22+
}
23+
]
24+
}

packages/docs/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"build": "astro build",
99
"preview": "astro preview",
1010
"astro": "astro",
11-
"check": "astro check"
11+
"check": "astro check",
12+
"lint": "prettier --check .",
13+
"format": "prettier --write ."
1214
},
1315
"devDependencies": {
1416
"@astrojs/check": "^0.9.4",
@@ -17,6 +19,9 @@
1719
"astro": "^4.16.12",
1820
"css-tree": "^3.0.1",
1921
"klona": "^2.0.6",
22+
"prettier": "^3.3.3",
23+
"prettier-plugin-astro": "^0.14.1",
24+
"prettier-plugin-svelte": "^3.2.8",
2025
"sharp": "^0.33.5",
2126
"starlight-links-validator": "^0.13.2",
2227
"svelte": "^5.2.0",

packages/docs/src/Head.astro

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
import DefaultHead from '@astrojs/starlight/components/Head.astro'
3-
import type { Props } from '@astrojs/starlight/props'
4-
import { getCldOgImageUrl } from 'svelte-cloudinary'
5-
import { klona } from 'klona'
2+
import DefaultHead from '@astrojs/starlight/components/Head.astro';
3+
import type { Props } from '@astrojs/starlight/props';
4+
import { getCldOgImageUrl } from 'svelte-cloudinary';
5+
import { klona } from 'klona';
66
77
// @ts-expect-error Hack to stop Astro erroring
8-
delete Astro.props.labels
8+
delete Astro.props.labels;
99
10-
const props = klona(Astro.props)
11-
const title = props.entry.data.title
10+
const props = klona(Astro.props);
11+
const title = props.entry.data.title;
1212
13-
props.entry.data.title = props.entry.data.title.replace(/<|\s?\/?>/g, '')
13+
props.entry.data.title = props.entry.data.title.replace(/<|\s?\/?>/g, '');
1414
1515
const image = getCldOgImageUrl({
16-
src: 'images/next-cloudinary-social-background',
17-
crop: 'fit',
18-
overlays: [
16+
src: 'images/next-cloudinary-social-background',
17+
crop: 'fit',
18+
overlays: [
1919
{
2020
width: 2000,
2121
crop: 'fit',
2222
position: {
23-
y: -160
23+
y: -160,
2424
},
2525
text: {
2626
color: 'white',
@@ -29,42 +29,42 @@ const image = getCldOgImageUrl({
2929
fontWeight: 'black',
3030
text: title,
3131
alignment: 'center',
32-
lineSpacing: -50
33-
}
32+
lineSpacing: -50,
33+
},
3434
},
3535
{
3636
publicId: 'images/cloudinary-white',
3737
position: {
3838
x: -350,
39-
y: 180
40-
}
39+
y: 180,
40+
},
4141
},
4242
{
4343
publicId: 'images/svelte-white',
4444
position: {
4545
x: 300,
46-
y: 180
47-
}
46+
y: 180,
47+
},
4848
},
4949
{
5050
position: {
5151
y: 320,
52-
x: -50
52+
x: -50,
5353
},
5454
text: {
5555
color: 'white',
5656
fontFamily: 'Source Sans Pro',
5757
fontSize: 60,
5858
fontWeight: 'bold',
59-
text: 'svelte.cloudinary.dev'
60-
}
61-
}
62-
]
63-
})
59+
text: 'svelte.cloudinary.dev',
60+
},
61+
},
62+
],
63+
});
6464
---
6565

6666
<DefaultHead {...props}>
67-
<slot />
67+
<slot />
6868
</DefaultHead>
6969

7070
<meta property="og:image" content={image} />

0 commit comments

Comments
 (0)