Skip to content

Commit

Permalink
docs: update docs, close #2230
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 6, 2024
1 parent d8c9ecb commit 010c289
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/src/cookbook/import/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn add -D @waline/client
```ts
import { init } from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

init({
el: '#waline',
Expand All @@ -60,7 +60,7 @@ init({
```js
import { init } from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

init({
el: '#waline',
Expand All @@ -87,7 +87,7 @@ import { Waline } from '@waline/client/component';
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import '@waline/client/dist/waline.css';
import '@waline/client/style';
const serverURL = 'https://waline.vercel.app';
const path = computed(() => useRoute().path);
Expand All @@ -110,7 +110,7 @@ import {
init,
} from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

export type WalineOptions = Omit<WalineInitOptions, 'el'> & { path: string };

Expand Down
8 changes: 4 additions & 4 deletions docs/src/en/cookbook/import/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Here is an example of importing and using `@waline/client` in a normal website p
```ts
import { init } from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

init({
el: '#waline',
Expand All @@ -60,7 +60,7 @@ init({
```js
import { init } from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

init({
el: '#waline',
Expand All @@ -87,7 +87,7 @@ import { Waline } from '@waline/client/component';
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import '@waline/client/dist/waline.css';
import '@waline/client/style';
const serverURL = 'https://waline.vercel.app';
const path = computed(() => useRoute().path);
Expand All @@ -110,7 +110,7 @@ import {
init,
} from '@waline/client';

import '@waline/client/dist/waline.css';
import '@waline/client/style';

export type WalineOptions = Omit<WalineInitOptions, 'el'> & { path: string };

Expand Down
2 changes: 1 addition & 1 deletion docs/src/en/guide/features/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For CDN users, you can import via the following link:
For NPM users, you can import via:

```js
import '@waline/client/dist/waline-meta.css';
import '@waline/client/meta';
```

## RTL support
Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/features/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ redirectFrom: /guide/client/style.html
对于 NPM 用户,你可以通过以下方式导入:

```js
import '@waline/client/waline-meta.css';
import '@waline/client/meta';
```

## RTL 支持
Expand Down

0 comments on commit 010c289

Please sign in to comment.