Skip to content

Commit d065038

Browse files
committed
Rename references from latest/ to 2.0/
1 parent 3a895f5 commit d065038

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/routes/docs/2.0/_Sidebar.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="ts">
22
import { page } from "$app/stores";
33
4-
$: isHome = $page.path.endsWith("docs/latest");
5-
$: base = isHome ? "latest/" : "";
6-
$: homeUrl = isHome ? "" : "../latest";
4+
$: isHome = $page.path.endsWith("docs/2.0");
5+
$: base = isHome ? "2.0/" : "";
6+
$: homeUrl = isHome ? "" : "../2.0";
77
88
$: pages = [
99
{ url: homeUrl, text: "Home" },

src/routes/docs/2.0/__layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<span class="sr-only">Open sidebar</span>
2929
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
3030
</button>
31-
<a href="/docs/latest">
31+
<a href="/docs/2.0">
3232
<span class="text-amber-600">Svelte</span> Headless UI
3333
<span class="text-base">v2.0</span>
3434
</a>

src/routes/docs/2.0/dialog.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Because of these accessibility concerns, Svelte Headless UI's `Dialog` actually
190190

191191
## Transitions
192192

193-
To animate the opening and closing of your dialog, you can use [this library's Transition component](/docs/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
193+
To animate the opening and closing of your dialog, you can use [this library's Transition component](/docs/2.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
194194

195195
### Using the `Transition` component
196196

src/routes/docs/2.0/disclosure.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ By default the `DisclosureButton` receives focus after calling `close()`, but yo
147147

148148
## Transitions
149149

150-
To animate the opening and closing of the disclosure panel, you can use [this library's Transition component](/docs/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
150+
To animate the opening and closing of the disclosure panel, you can use [this library's Transition component](/docs/2.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
151151

152152
### Using the `Transition` component
153153

src/routes/docs/2.0/listbox.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Use the `disabled` prop to disable a `ListboxOption`. This will make it unselect
260260

261261
## Transitions
262262

263-
To animate the opening and closing of the listbox, you can use [this library's Transition component](/docs/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
263+
To animate the opening and closing of the listbox, you can use [this library's Transition component](/docs/2.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
264264

265265
### Using the `Transition` component
266266

src/routes/docs/2.0/menu.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Use the `disabled` prop to disable a `MenuItem`. This will make it unselectable
178178

179179
## Transitions
180180

181-
To animate the opening and closing of the menu, you can use [this library's Transition component](/docs/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
181+
To animate the opening and closing of the menu, you can use [this library's Transition component](/docs/2.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
182182

183183
### Using the `Transition` component
184184

src/routes/docs/2.0/popover.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Like all the other components, PopoverOverlay is completely unstyled, so how it
218218

219219
## Transitions
220220

221-
To animate the opening and closing of the popover panel, you can use [this library's Transition component](/docs/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
221+
To animate the opening and closing of the popover panel, you can use [this library's Transition component](/docs/2.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
222222

223223
### Using the `Transition` component
224224

src/routes/docs/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export function load() {
33
return {
44
status: 302,
5-
redirect: "docs/latest",
5+
redirect: "docs/2.0",
66
};
77
}
88
</script>

0 commit comments

Comments
 (0)