Skip to content

Commit b17ef3a

Browse files
committed
Add version to Docs header; fix broken links
1 parent 8eb08fe commit b17ef3a

File tree

12 files changed

+14
-12
lines changed

12 files changed

+14
-12
lines changed

src/routes/docs/1.0/__layout.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
<span class="sr-only">Open sidebar</span>
2929
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
3030
</button>
31-
<a href="/docs">
31+
<a href="/docs/1.0">
3232
<span class="text-amber-600">Svelte</span> Headless UI
33+
<span class="text-base text-red-500">v1.0</span>
3334
</a>
3435
</div>
3536
<a

src/routes/docs/1.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/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/1.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/1.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/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/1.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/1.0/listbox.svx

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

262262
## Transitions
263263

264-
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.
264+
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.
265265

266266
### Using the `Transition` component
267267

src/routes/docs/1.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/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/1.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/1.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/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/1.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/latest/__layout.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
<span class="sr-only">Open sidebar</span>
2929
<MenuAlt2Icon class="h-6 w-6" aria-hidden="true" />
3030
</button>
31-
<a href="/docs">
31+
<a href="/docs/latest">
3232
<span class="text-amber-600">Svelte</span> Headless UI
33+
<span class="text-base">v2.0</span>
3334
</a>
3435
</div>
3536
<a

src/routes/docs/latest/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/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/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
194194

195195
### Using the `Transition` component
196196

src/routes/docs/latest/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/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/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
151151

152152
### Using the `Transition` component
153153

src/routes/docs/latest/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/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/latest/transition) or Svelte's built-in transition engine. See that page for a comparison.
264264

265265
### Using the `Transition` component
266266

0 commit comments

Comments
 (0)