You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/1.getting-started/4.migration.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ The new API is backed by SQL and content queries happens within a specific colle
45
45
- There is no source option in module options, instead you can define [multiple sources](/docs/collections/sources) for your collections in `content.config.ts`.
46
46
- Document `._path` is now renamed to `.path`, likewise all internal fields with `_` prefix are removed or renamed.
47
47
-`useContentHelpers()` is removed
48
+
- Module does not ignore dot files by default, you can ignore them by adding `ignore: ['**/.*']` in `exclude` options of your collection source.
48
49
49
50
### Nuxt Studio integration
50
51
@@ -162,3 +163,30 @@ a way that includes these files. For example `source: '**'` and `source: '**/*.{
162
163
in collection, but `source: '**/*.md'` will not include them.
163
164
164
165
166
+
## Ignore dot files
167
+
168
+
By default, Content v3 does not ignore dot files. If you want to ignore them, you can add `ignore: ['**/.*']` in the `exclude` option of your collection source.
169
+
170
+
```ts
171
+
defineCollection({
172
+
source: {
173
+
include: '**',
174
+
exclude: ['**/.*']
175
+
}
176
+
})
177
+
```
178
+
179
+
Note that the above pattern will also excldue `.navigation.yml` file from collection. If you use `.navigation.yml` and want to keep them
180
+
you can use `**/.(!(navigation.yml))` patter to exclude all dot files except `.navigation.yml`.
0 commit comments