Skip to content

Commit

Permalink
docs: fix several mistakes in the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xsjcTony committed Dec 1, 2023
1 parent cb485df commit fc3d756
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineConfig({

editLink: {
pattern: 'https://github.com/xsjcTony/unocss-preset-animations/edit/main/docs/src/:path',
text: 'Edit this page on GitHub',
text: 'Suggest changes to this page',
},

search: {
Expand All @@ -59,7 +59,6 @@ export default defineConfig({
{ text: 'Guide', link: '/guide/', activeMatch: '^/guide/' },
{ text: 'Animations', link: '/animations/', activeMatch: '^/animations/' },
{
// eslint-disable-next-line ts/restrict-template-expressions
text: `v${version}`,
items: [
{ text: 'Release Notes', link: 'https://github.com/xsjcTony/unocss-preset-animations/releases' },
Expand Down
2 changes: 1 addition & 1 deletion docs/src/animations/slide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You can use either of below as the `<direction>` (alias / full):
::: tip
`top` / `bottom` and `left` / `right` can be used together.

| x-axis Direction | y-axis Direction | Result |
| y-axis Direction | x-axis Direction | Result |
|------------------|------------------|--------|
| `t` / `top` | `l` / `left` ||
| `t` / `top` | `r` / `right` ||
Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This preset is based on is based on `@unocss/preset-wind` or `@unocss/preset-uno
In your UnoCSS config, add this preset to the `presets` option:

```ts
import { defineConfig } from 'unocss' // v0.56.0 and above required
import { defineConfig, presetUno } from 'unocss' // v0.56.0 and above required
import presetAnimations from 'unocss-preset-animations' // [!code ++]
import type { Theme } from '@unocss/preset-uno'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ The value is `150ms` by default if unchanged, see [unocss/packages/preset-mini/s

```html
<button class="animate-in fade-in animate-paused">Button A</button>
<button class="animate-in fade-in animate-running">Button B</button>-play
<button class="animate-in fade-in animate-running">Button B</button>

<button class="animate-in fade-in animate-play-paused">Button C</button>
<button class="animate-in fade-in animate-state-paused">Button D</button>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ features:
icon: <i class="i-material-symbols:transition-push text-primary"></i>
details: Define starting / ending translate
link: /animations/slide
- title: Composable animations
- title: Composable
icon: <i class="i-streamline:interface-page-controller-settings-page-setting-square-triangle-circle-line-combination-variation text-primary"></i>
details: Animations can be easily combined together
link: /animations/
Expand Down

0 comments on commit fc3d756

Please sign in to comment.