Rename references from latest/ to 2.0/
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
|
|
||||||
$: isHome = $page.path.endsWith("docs/latest");
|
$: isHome = $page.path.endsWith("docs/2.0");
|
||||||
$: base = isHome ? "latest/" : "";
|
$: base = isHome ? "2.0/" : "";
|
||||||
$: homeUrl = isHome ? "" : "../latest";
|
$: homeUrl = isHome ? "" : "../2.0";
|
||||||
|
|
||||||
$: pages = [
|
$: pages = [
|
||||||
{ url: homeUrl, text: "Home" },
|
{ url: homeUrl, text: "Home" },
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<span class="sr-only">Open sidebar</span>
|
<span class="sr-only">Open sidebar</span>
|
||||||
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
|
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
|
||||||
</button>
|
</button>
|
||||||
<a href="/docs/latest">
|
<a href="/docs/2.0">
|
||||||
<span class="text-amber-600">Svelte</span> Headless UI
|
<span class="text-amber-600">Svelte</span> Headless UI
|
||||||
<span class="text-base">v2.0</span>
|
<span class="text-base">v2.0</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ Because of these accessibility concerns, Svelte Headless UI's `Dialog` actually
|
|||||||
|
|
||||||
## Transitions
|
## 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
|
### Using the `Transition` component
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ By default the `DisclosureButton` receives focus after calling `close()`, but yo
|
|||||||
|
|
||||||
## Transitions
|
## 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
|
### Using the `Transition` component
|
||||||
|
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ Use the `disabled` prop to disable a `ListboxOption`. This will make it unselect
|
|||||||
|
|
||||||
## Transitions
|
## 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
|
### Using the `Transition` component
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ Use the `disabled` prop to disable a `MenuItem`. This will make it unselectable
|
|||||||
|
|
||||||
## Transitions
|
## 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
|
### Using the `Transition` component
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ Like all the other components, PopoverOverlay is completely unstyled, so how it
|
|||||||
|
|
||||||
## Transitions
|
## 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
|
### Using the `Transition` component
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
export function load() {
|
export function load() {
|
||||||
return {
|
return {
|
||||||
status: 302,
|
status: 302,
|
||||||
redirect: "docs/latest",
|
redirect: "docs/2.0",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user