0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/examples
Matt Kane abf9a89ac1 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>
2024-10-04 16:13:51 +01:00
..
basics [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
blog [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
component [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
container-with-vitest [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-alpine [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-multiple [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-preact [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-react [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-solid [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-svelte [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
framework-vue [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
hackernews [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
integration [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
middleware [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
minimal [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
non-html-pages [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
portfolio [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
server-islands [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
ssr [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
starlog [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
toolbar-app [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
view-transitions [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-markdoc Implement legacy collections using glob (#11976) 2024-10-04 16:13:51 +01:00
with-markdown-plugins [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-markdown-shiki [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-mdx [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-nanostores [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-tailwindcss [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
with-vitest [ci] release (beta) (#12072) 2024-10-01 15:46:45 +02:00
README.md Fix: lang unspecified code blocks (#8461) 2023-09-11 12:45:21 +01:00

Astro Examples Library

The easiest way to check out one of these examples on your machine is by running this command in an empty directory:

npm create astro@latest -- --template [EXAMPLE_NAME]

Community Examples

Visit awesome-astro for a full list of community examples. You can use npm create astro@latest to check out any community examples:

npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]

Paths to examples nested inside of a repo are also supported:

npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example