Skip to content

Commit 88a209f

Browse files
authored
[docs] docs improvements and guides (#71)
# Description <!-- Include a summary of the change made and also list the dependencies that are required if any --> ## Issue Ticket Number Fixes #<ISSUE_NUMBER> <!-- Specify above which issue this fixes by referencing the issue number (`#<ISSUE_NUMBER>`) or issue URL. --> <!-- Example: Fixes https://github.com/cloudinary-community/svelte-cloudinary/issues/<ISSUE_NUMBER> --> ## Type of change <!-- Please select all options that are applicable. --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Fix or improve the documentation - [ ] This change requires a documentation update # Checklist <!-- These must all be followed and checked. --> - [ ] I have followed the contributing guidelines of this project as mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md) - [ ] I have created an [issue](https://github.com/cloudinary-community/svelte-cloudinary/issues) ticket for this PR - [ ] I have checked to ensure there aren't other open [Pull Requests](https://github.com/cloudinary-community/svelte-cloudinary/pulls) for the same update/change? - [ ] I have performed a self-review of my own code - [ ] I have run tests locally to ensure they all pass - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes needed to the documentation
1 parent 94906f3 commit 88a209f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4938
-1016
lines changed

docs/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,25 @@
2828
"postcss-load-config": "^4.0.1",
2929
"prettier": "^2.8.0",
3030
"prettier-plugin-svelte": "^2.10.1",
31+
"sass": "1.69.5",
3132
"svelte": "^4.0.0",
3233
"svelte-check": "^3.4.4",
3334
"svelte-preprocess": "^5.0.4",
35+
"svelte-preprocess-sass": "2.0.1",
3436
"tailwindcss": "^3.3.1",
3537
"tslib": "^2.5.3",
3638
"typescript": "^5.1.3",
3739
"vite": "^4.3.9"
3840
},
3941
"type": "module",
4042
"dependencies": {
43+
"@iconify/svelte": "3.1.4",
4144
"@microflash/rehype-toc": "1.0.2",
4245
"@sentry/sveltekit": "7.64.0",
4346
"@sveltejs/adapter-vercel": "3.0.2",
4447
"@vercel/analytics": "1.0.1",
4548
"cloudinary": "^1.32.0",
49+
"flowbite-svelte": "0.44.20",
4650
"rehype-autolink-headings": "6.1.1",
4751
"rehype-slug": "5.1.0",
4852
"svelte-cloudinary": "workspace:*",

docs/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
let currentTheme = localStorage.getItem("theme");
2727
if (currentTheme === null) {
2828
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
29-
currentTheme = "black";
29+
currentTheme = "night";
3030
} else {
3131
currentTheme = "light";
3232
}

docs/src/app.postcss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,14 @@
4242
border: none;
4343
border-radius: 999px;
4444
}
45+
46+
:root {
47+
--searchbox-bg: #fff;
48+
/* or any other variables/style */
49+
}
50+
[data-theme='light'] {
51+
--searchbox-bg: oklch(0.961151 0 0);
52+
}
53+
[data-theme='night'] {
54+
--searchbox-bg: rgba(249,250,251,.1);
55+
}

0 commit comments

Comments
 (0)