From 5a22c62b2a8d51e11da7178bb8e43ad7ef30e3d7 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 2 Jul 2024 15:25:02 +0200 Subject: [PATCH] docs(nuxt.config): add content highlight `diff` lang --- docs/content/1.getting-started/contributing.md | 16 ++++++++-------- docs/nuxt.config.ts | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/content/1.getting-started/contributing.md b/docs/content/1.getting-started/contributing.md index ac5a6fcc..052d3e91 100644 --- a/docs/content/1.getting-started/contributing.md +++ b/docs/content/1.getting-started/contributing.md @@ -22,25 +22,25 @@ To begin local development, follow these steps: 1. Clone the `nuxt/ui` repository to your local machine: -```sh +```bash git clone https://github.com/nuxt/ui.git ``` 2. Enable [Corepack](https://github.com/nodejs/corepack): -```sh +```bash corepack enable ``` 3. Install dependencies: -```sh +```bash pnpm install ``` 4. Generate type stubs: -```sh +```bash pnpm run dev:prepare ``` @@ -48,13 +48,13 @@ pnpm run dev:prepare - To work on the **documentation** located in the `docs` folder, run: -```sh +```bash pnpm run dev ``` - To test the components using **playground**, run: -```sh +```bash 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: -```sh +```bash pnpm run lint # check for 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: -```sh +```bash pnpm run typecheck ``` diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 0ba3c938..bd2db9e2 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -62,6 +62,9 @@ export default defineNuxtConfig({ token: process.env.NUXT_GITHUB_TOKEN || '' } : undefined + }, + highlight: { + langs: ['bash', 'ts', 'diff', 'vue', 'json', 'yml', 'css', 'mdc'] } }, image: {