Skip to content

Commit

Permalink
docs: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 25, 2024
1 parent a12e1e8 commit 515a4f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions docs/content/docs/1.getting-started/4.migration.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
ttile: Migration
title: Migration
description: How to migrate from v2 to v3
---

Nuxt Content v3 had been rebuilt from the ground up, resulting in a new library with enhanced capabilities. While we've redesigned concepts and components in a similar way as Content v2, breaking changes are inevidible.
Nuxt Content v3 had been rebuilt from the ground up, resulting in a new library with enhanced capabilities. While we've redesigned concepts and components in a similar way as Content v2, breaking changes are inevitable.

Don't worry, you don't need to modify your content files, We made sure that Content v3 handles content in the same was as Content v2.
Don't worry, you don't need to modify your content files, We made sure that Content v3 handles content in the same way as Content v2.

## Changes

Here is the list breaking changes in Content v3:
Here is the list of breaking changes in Content v3:

- `queryContent()`{lang=ts} API is replaced with new `queryCollection()`{lang=ts}
- New API is backed by SQL
Expand All @@ -25,7 +25,7 @@ Here is the list breaking changes in Content v3:
- Multi source is dropped in favor of multi collection.
- Document `._path` is now renamed to `.path`
- `searchContent()`{lang=ts} is dropped in favor of new api `queryCollectionSearchSections`
- Full text search can easily done using this API See [Full-Text Search Snippets](/docs/advanced/fulltext-search)
- Full text search can easily be done using this API See [Full-Text Search Snippets](/docs/advanced/fulltext-search)
- `useContentHelpers()`{lang=ts} is removed


Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/3.utils/1.query-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const { data } = await useAsyncData(route.path, () => {
})
```

### `where(field: keyof Colleciton, operator: SqlOperator, value?: unkown)`
### `where(field: keyof Collection, operator: SqlOperator, value?: unkown)`

Add a condition to the query to filter results based on a specific field.

Expand Down Expand Up @@ -192,7 +192,7 @@ const { data: docs } = await useAsyncData('documents-list', () => {
<template>
<NuxtLink v-for="doc in docs" :key="doc.path" :to="doc.path">
<h2>{{ doc.title }}</div>
<h2>{{ doc.title }}</h2>
<p>{{ doc.description }}</p>
</NuxtLink>
</template>
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/6.advanced/1.fulltext-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Full-Text Search
description: Implement full-text search in your website using Nuxt Content
---

Content module expose a handy utility [`queryCollectionSearchSections`{lang="ts-type"}][1] to break down content files into searchable sections. This is useful for implementing full-text search in your website.
Content module exposes a handy utility [`queryCollectionSearchSections`{lang="ts-type"}][1] to break down content files into searchable sections. This is useful for implementing full-text search in your website.
You can use the result of this utility in combination with [Nuxt UI Content Search][nuxt-ui-content-search] or other search libraries like [Fuse.js](https://fusejs.io/), [minisearch][mini-search], etc.


Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/6.advanced/4.tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ navigation:
title: Debugging tools
---

## SQLight vscode extension
## SQLite vscode extension

0 comments on commit 515a4f2

Please sign in to comment.