Rename references from latest/ to 2.0/
This commit is contained in:
@@ -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" },
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
export function load() {
|
||||
return {
|
||||
status: 302,
|
||||
redirect: "docs/latest",
|
||||
redirect: "docs/2.0",
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user