Skip to content

Commit

Permalink
docs: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Mar 12, 2024
1 parent 393dcbd commit b715c4d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 457 deletions.
2 changes: 0 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"svelte": "^4.0.0",
"svelte-check": "^3.4.4",
"svelte-preprocess": "^5.0.4",
"svelte-preprocess-sass": "2.0.1",
"tailwindcss": "^3.3.1",
"tslib": "^2.5.3",
"typescript": "^5.1.3",
Expand All @@ -38,7 +37,6 @@
"@iconify/svelte": "3.1.4",
"@microflash/rehype-toc": "1.0.2",
"@sentry/sveltekit": "7.64.0",
"@sveltejs/adapter-vercel": "3.0.2",
"@vercel/analytics": "1.0.1",
"cloudinary": "^1.32.0",
"flowbite-svelte": "0.44.20",
Expand Down
15 changes: 5 additions & 10 deletions packages/docs/src/docs/components/clduploadwidget/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,14 @@ Use the following to generate an unsigned upload widget:
```

<CldUploadWidget
let:open let:isLoading
onUpload={(result, widget) => {
infoUpload = result?.info
widget.close();
}}
uploadPreset={env.PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}

> <button on:click|preventDefault={open} class="cldbutton">
let:open let:isLoading
onUpload={(result, widget) => { infoUpload = result?.info; widget.close(); }}
uploadPreset={env.PUBLIC_CLOUDINARY_UNSIGNED_UPLOAD_PRESET}>
<button on:click|preventDefault={open} class="cldbutton">
Unsigned Upload

</button>
</CldUploadWidget>

<p><strong>URL:</strong> { infoUpload?.secure_url || 'Upload to see example result.' }</p>

### Signed
Expand Down
10 changes: 4 additions & 6 deletions packages/docs/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { mdsvex } from 'mdsvex';
import { vitePreprocess } from '@sveltejs/kit/vite';
import mdsvexConfig from './mdsvex.config.js';
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { sass } from 'svelte-preprocess-sass';
import { mdsvex } from 'mdsvex';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -15,8 +14,7 @@ const config = {
vitePreprocess(),
mdsvex(mdsvexConfig),
preprocess({
postcss: true,
style: sass()
postcss: true
})
],

Expand Down
Loading

0 comments on commit b715c4d

Please sign in to comment.