Skip to content

Commit

Permalink
fix: upgrade @nuxtjs/mdc
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 13, 2023
1 parent bbab9dd commit b66ccb5
Show file tree
Hide file tree
Showing 12 changed files with 592 additions and 171 deletions.
2 changes: 1 addition & 1 deletion docs/content-v1/en/1.getting-started/3.writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ Rows will be assigned to body variable.

A file `content/home.csv`:

```csv
```
title, description
Home, Welcome!
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content-v1/fr/1.getting-started/3.writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Les lignes seront assignée à la variable `body`.

Un fichier `content/accueil.csv`:

```csv
```
titre, description
Accueil, Bienvenue!
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content-v1/ja/1.getting-started/3.writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ title: Home

`content/home.csv`ファイル

```csv
```
title, description
Home, Welcome!
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content-v1/ru/1.getting-started/3.writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ title: Главная

Файл `content/home.csv`:

```csv
```
title, description
Главная, Добро пожаловать!
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content/3.guide/1.writing/6.csv.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `body` of the output is an array containing every row as objects.
## Example

::code-group
```csv [content/hello.csv]
``` [content/hello.csv]
title,description,category
Hello Content v2!,The writing experience for Nuxt 3,announcement
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content/3.guide/2.displaying/2.querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The API root path `/api/_content/query` accepts query parameters such as:
# Hello Content v2!
```

```text [Endpoint]
``` [Endpoint]
/api/_content/query?path=/hello
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The `fetchContentNavigation` utility returns a tree of items based on the `conte
## Usage

::code-group
```Text [Directory structure]
``` [Directory structure]
content/
index.md
sub-folder
Expand Down
10 changes: 5 additions & 5 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { resolve } from 'pathe'
// import consola from 'consola'
import consola from 'consola'

Check warning on line 2 in docs/nuxt.config.ts

View workflow job for this annotation

GitHub Actions / ci

Using exported name 'consola' as identifier for default export

const alias = {}

// if (process.env.NODE_ENV === 'development') {
// consola.warn('Using local @nuxt/content!')
// alias['@nuxt/content'] = '../src/module.ts'
// }
if (process.env.NODE_ENV === 'development') {
consola.warn('Using local @nuxt/content!')
alias['@nuxt/content'] = '../src'
}

export default defineNuxtConfig({
alias,
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"generate": "nuxi generate"
},
"resolutions": {
"nitropack": "2.6.3"
"nitropack": "2.6.3",
"@nuxt/content": "npm:@nuxt/content@^2.8.2"
},
"devDependencies": {
"@docsearch/js": "^3.5.2",
Expand Down

0 comments on commit b66ccb5

Please sign in to comment.