mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 20:57:57 +01:00
docs(nuxt.config): add content highlight diff lang
This commit is contained in:
@@ -22,25 +22,25 @@ To begin local development, follow these steps:
|
|||||||
|
|
||||||
1. Clone the `nuxt/ui` repository to your local machine:
|
1. Clone the `nuxt/ui` repository to your local machine:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
git clone https://github.com/nuxt/ui.git
|
git clone https://github.com/nuxt/ui.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Enable [Corepack](https://github.com/nodejs/corepack):
|
2. Enable [Corepack](https://github.com/nodejs/corepack):
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
corepack enable
|
corepack enable
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install dependencies:
|
3. Install dependencies:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Generate type stubs:
|
4. Generate type stubs:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm run dev:prepare
|
pnpm run dev:prepare
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -48,13 +48,13 @@ pnpm run dev:prepare
|
|||||||
|
|
||||||
- To work on the **documentation** located in the `docs` folder, run:
|
- To work on the **documentation** located in the `docs` folder, run:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm run dev
|
pnpm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
- To test the components using **playground**, run:
|
- To test the components using **playground**, run:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm run play
|
pnpm run play
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ We recommend using VS Code along with the ESLint extension. You can enable auto-
|
|||||||
|
|
||||||
You can also use the `lint` command:
|
You can also use the `lint` command:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm run lint # check for linting errors
|
pnpm run lint # check for linting errors
|
||||||
pnpm run lint:fix # fix linting errors
|
pnpm run lint:fix # fix linting errors
|
||||||
```
|
```
|
||||||
@@ -88,7 +88,7 @@ If you have Prettier installed in your editor, we recommend disabling it to avoi
|
|||||||
|
|
||||||
We use TypeScript for type checking. You can use the `typecheck` command to check for type errors:
|
We use TypeScript for type checking. You can use the `typecheck` command to check for type errors:
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
pnpm run typecheck
|
pnpm run typecheck
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ export default defineNuxtConfig({
|
|||||||
token: process.env.NUXT_GITHUB_TOKEN || ''
|
token: process.env.NUXT_GITHUB_TOKEN || ''
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
|
},
|
||||||
|
highlight: {
|
||||||
|
langs: ['bash', 'ts', 'diff', 'vue', 'json', 'yml', 'css', 'mdc']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
|
|||||||
Reference in New Issue
Block a user