Add version to Docs header; fix broken links

This commit is contained in:
Ryan Gossiaux
2023-06-10 20:58:41 -07:00
parent 8eb08feb03
commit b17ef3ae0f
12 changed files with 14 additions and 12 deletions

View File

@@ -28,8 +28,9 @@
<span class="sr-only">Open sidebar</span>
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
</button>
<a href="/docs">
<a href="/docs/1.0">
<span class="text-amber-600">Svelte</span> Headless UI
<span class="text-base text-red-500">v1.0</span>
</a>
</div>
<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/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/1.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/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/1.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
### Using the `Transition` component

View File

@@ -261,7 +261,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/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/1.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/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/1.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/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/1.0/transition) or Svelte's built-in transition engine. See that page for a comparison.
### Using the `Transition` component

View File

@@ -28,8 +28,9 @@
<span class="sr-only">Open sidebar</span>
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
</button>
<a href="/docs">
<a href="/docs/latest">
<span class="text-amber-600">Svelte</span> Headless UI
<span class="text-base">v2.0</span>
</a>
</div>
<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/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/latest/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/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/latest/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/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/latest/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/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/latest/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/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/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
### Using the `Transition` component