Rename references from latest/ to 2.0/

This commit is contained in:
Ryan Gossiaux
2023-06-10 21:16:56 -07:00
parent 3a895f5d41
commit d0650382f6
8 changed files with 10 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
<script lang="ts">
import { page } from "$app/stores";
$: isHome = $page.path.endsWith("docs/latest");
$: base = isHome ? "latest/" : "";
$: homeUrl = isHome ? "" : "../latest";
$: isHome = $page.path.endsWith("docs/2.0");
$: base = isHome ? "2.0/" : "";
$: homeUrl = isHome ? "" : "../2.0";
$: pages = [
{ url: homeUrl, text: "Home" },

View File

@@ -28,7 +28,7 @@
<span class="sr-only">Open sidebar</span>
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
</button>
<a href="/docs/latest">
<a href="/docs/2.0">
<span class="text-amber-600">Svelte</span> Headless UI
<span class="text-base">v2.0</span>
</a>

View File

@@ -190,7 +190,7 @@ Because of these accessibility concerns, Svelte Headless UI's `Dialog` actually
## Transitions
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.
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.
### Using the `Transition` component

View File

@@ -147,7 +147,7 @@ By default the `DisclosureButton` receives focus after calling `close()`, but yo
## Transitions
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.
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.
### Using the `Transition` component

View File

@@ -260,7 +260,7 @@ Use the `disabled` prop to disable a `ListboxOption`. This will make it unselect
## Transitions
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.
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.
### Using the `Transition` component

View File

@@ -178,7 +178,7 @@ Use the `disabled` prop to disable a `MenuItem`. This will make it unselectable
## Transitions
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.
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.
### Using the `Transition` component

View File

@@ -218,7 +218,7 @@ Like all the other components, PopoverOverlay is completely unstyled, so how it
## Transitions
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.
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.
### Using the `Transition` component

View File

@@ -2,7 +2,7 @@
export function load() {
return {
status: 302,
redirect: "docs/latest",
redirect: "docs/2.0",
};
}
</script>