Skip to content

Commit

Permalink
docs: add example with cwd property (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
MellKam authored Jan 24, 2025
1 parent 84d7dc8 commit b790c3c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/content/docs/2.collections/3.sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ It represents the path prefix (base URL) of the corresponding page on the websit

Root directory for content matching.

**Example:**

If you want to include files from a folder outside the content directory, set the absolute path of that folder to the `cwd` property.

```ts
source: {
cwd: path.resolve('packages/my-pkg/docs'),
include: '**/*.md',
}
```

### `repository`

External source representing a remote git repository URL (e.g., <https://github.com/nuxt/content>)
Expand Down

0 comments on commit b790c3c

Please sign in to comment.