astro/examples
Ben Holmes f558a9e205
[Markdoc] Fix global asset bleed (#6758)
* wip: propagatedAssets flag per-component

* Propagate in TreeNode

* fix: remove unused inject comment

* feat: make asset propagation an integration opt-in

* fix: remove crawlGraph stopper

* wip: logs to understand what's happening

* SSR mdoc files in dev

* feat: add astroPropagatedAssets flag with vite

* chore: remove console logs

* chore: cleanup hasContentFlag

* fix: set handlePropagation default for legacy integrations

* chore: changeset

* temp: silence acorn type error

* chore: revert pnpm-lock changes

* fix: check correct flag

* We need to handle propagation on markdown because of layouts

* Remove use of renderStyleElement

* Fix heading tests

* Fix merge conflict

* typeof function

* Switch the check

* Add comment on injection detection regexp

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-22 13:50:01 -04:00
..
basics adding meta description tag to basics example (#6854) 2023-05-17 15:17:35 +02:00
blog Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
component Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
deno Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
docs Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-alpine Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-lit Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-multiple Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-preact Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-react Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-solid Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-svelte Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
framework-vue Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
hackernews Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
integration Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
middleware fix(middleware): emit warning if next is called and nothing is returned (#7010) 2023-05-05 13:20:33 -04:00
minimal Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
non-html-pages Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
portfolio Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
ssr Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-markdoc [Markdoc] Fix global asset bleed (#6758) 2023-05-22 13:50:01 -04:00
with-markdown-plugins Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-markdown-shiki Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-mdx Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-nanostores Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-tailwindcss Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-vite-plugin-pwa Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
with-vitest Update template deps to latest (#7002) 2023-05-05 19:09:38 +08:00
README.md .md only: npm init astro --> npm create astro (#4760) 2022-09-16 12:40:06 -05: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