From fc3d7561f16709325d5d761a9ba18ca0ebc38c7e Mon Sep 17 00:00:00 2001 From: Aelita Date: Sat, 2 Dec 2023 01:17:25 +1100 Subject: [PATCH] docs: fix several mistakes in the doc --- docs/.vitepress/config.ts | 3 +-- docs/src/animations/slide.md | 2 +- docs/src/guide/index.md | 2 +- docs/src/guide/migration.md | 2 +- docs/src/index.md | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index cbf77c0..12686d6 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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: { @@ -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' }, diff --git a/docs/src/animations/slide.md b/docs/src/animations/slide.md index e5dfbd1..4b86e45 100644 --- a/docs/src/animations/slide.md +++ b/docs/src/animations/slide.md @@ -17,7 +17,7 @@ You can use either of below as the `` (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` | ↗ | diff --git a/docs/src/guide/index.md b/docs/src/guide/index.md index c66a4b8..fa434d5 100644 --- a/docs/src/guide/index.md +++ b/docs/src/guide/index.md @@ -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' diff --git a/docs/src/guide/migration.md b/docs/src/guide/migration.md index b6fbd1d..e1f9d1f 100644 --- a/docs/src/guide/migration.md +++ b/docs/src/guide/migration.md @@ -151,7 +151,7 @@ The value is `150ms` by default if unchanged, see [unocss/packages/preset-mini/s ```html --play + diff --git a/docs/src/index.md b/docs/src/index.md index edc31db..88373bb 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -32,7 +32,7 @@ features: icon: details: Define starting / ending translate link: /animations/slide - - title: Composable animations + - title: Composable icon: details: Animations can be easily combined together link: /animations/