Skip to content

Commit e409df6

Browse files
committed
docs
1 parent d184d01 commit e409df6

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

packages/docs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@sveltejs/vite-plugin-svelte": "5.0.3",
2121
"@tailwindcss/typography": "0.5.16",
2222
"daisyui": "workspace:*",
23-
"dotenv": "16.4.7",
2423
"json-diff": "1.0.6",
2524
"mdsvex": "0.12.3",
2625
"rehype-external-links": "3.0.0",
@@ -29,7 +28,6 @@
2928
"remark-github": "12.0.0",
3029
"remark-parse": "11.0.0",
3130
"rollup-plugin-visualizer": "5.14.0",
32-
"sharp": "0.33.5",
3331
"shiki": "3.2.1",
3432
"super-sitemap": "^1.0.3",
3533
"svelte": "5.25.6",
@@ -42,7 +40,6 @@
4240
"@minimal-analytics/ga4": "1.8.7",
4341
"culori": "4.0.1",
4442
"js-yaml": "4.1.0",
45-
"nanoid": "5.1.5",
4643
"pako": "2.1.0",
4744
"svelte-countdown": "1.1.2",
4845
"svelte-countup": "0.2.8"

packages/docs/src/components/SEO.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
if (lang === "zh_hant") return "zh-tw"
2424
return lang
2525
}
26+
27+
const removeHashFromUrl = (url) => {
28+
if (typeof url === "string" && url.includes("#")) {
29+
return url.split("#")[0]
30+
}
31+
return url
32+
}
2633
</script>
2734

2835
<svelte:head>
@@ -43,7 +50,7 @@
4350
<link
4451
rel="alternate"
4552
hreflang={iso15924to31661(lang)}
46-
href={`${$page.url.pathname}?lang=${lang}`}
53+
href={`${removeHashFromUrl($page.url)}?lang=${lang}`}
4754
/>
4855
{/each}
4956
</svelte:head>

packages/docs/src/components/ThemeChange.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
</script>
1515

1616
<div title="Change Theme" class={`dropdown dropdown-end block ${dropdownClasses}`}>
17-
<div tabindex="0" role="button" class={`btn btn-sm gap-1 ${btnClasses}`}>
17+
<div
18+
tabindex="0"
19+
role="button"
20+
class={`btn btn-sm gap-1 ${btnClasses}`}
21+
aria-label="Change Theme"
22+
>
1823
<div
1924
class="bg-base-100 border-base-content/10 grid shrink-0 grid-cols-2 gap-0.5 rounded-md border p-1"
2025
>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const ssr = false
22
import { redirect } from "@sveltejs/kit"
33
export function load() {
4-
redirect(301, "/docs/changelog/#artboard")
4+
redirect(301, "/docs/upgrade/")
55
}

0 commit comments

Comments
 (0)