diff options
author | 2024-10-04 16:10:34 +0100 | |
---|---|---|
committer | 2024-10-04 16:13:51 +0100 | |
commit | abf9a89ac1eaec9a8934a68aeebe3c502a3b47eb (patch) | |
tree | 7814a2049c31137b51a552d559d889ff1717df0c /examples/with-markdoc/src/content/config.ts | |
parent | 953e6e0f23a1121b1137ca67e675ce9f539ed549 (diff) | |
download | astro-abf9a89ac1eaec9a8934a68aeebe3c502a3b47eb.tar.gz astro-abf9a89ac1eaec9a8934a68aeebe3c502a3b47eb.tar.zst astro-abf9a89ac1eaec9a8934a68aeebe3c502a3b47eb.zip |
Implement legacy collections using glob (#11976)
* feat: support pattern arrays with glob
* wip
* feat: emulate legacy content collections
* Fixes
* Lint
* Correctly handle legacy data
* Fix tests
* Switch flag handling
* Fix warnings
* Add layout warning
* Update fixtures
* More tests!
* Handle empty md files
* Lockfile
* Dedupe name
* Handle data ID unslug
* Fix e2e
* Clean build
* Clean builds in tests
* Test fixes
* Fix test
* Fix typegen
* Fix tests
* Fixture updates
* Test updates
* Update changeset
* Test
* Remove wait in test
* Handle race condition
* Lock
* chore: changes from review
* Handle folders without config
* lint
* Fix test
* Update wording for auto-collections
* Delete legacyId
* Sort another fixture
* Rename flag to `legacy.collections`
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Changes from review
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* lockfile
* lock
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'examples/with-markdoc/src/content/config.ts')
-rw-r--r-- | examples/with-markdoc/src/content/config.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/with-markdoc/src/content/config.ts b/examples/with-markdoc/src/content/config.ts new file mode 100644 index 000000000..79743326e --- /dev/null +++ b/examples/with-markdoc/src/content/config.ts @@ -0,0 +1,5 @@ +import { defineCollection } from 'astro:content'; + +export const collections = { + docs: defineCollection({}) +}; |