astro/examples
Ben Holmes 7c439868a3
[Markdoc] New config format with runtime variable support! (#6653)
* deps: esbuild

* feat: support direct component imports for render!

* deps: add devalue back

* refactor: remove unused components prop

* refactor: load experimental assets config separately

* fix: upate Content type def to support props

* refactor: replace astro stub with inline data

* feat: pass through viteId to getRenderMod

* fix: add back $entry var with defaults convention

* chore: remove unneeded validateRenderProps

* chore: remove uneeded validateComponents

* fix: remove userMarkdocConfig prop

* chore: add helpful error for legacy config

* deps: kleur

* fix: add back `isCapitalized`

* fix: log instead of throw to avoid scary stacktrace

* chore: delete more old logic (nice)

* chore: delete MORE unused utils

* chore: comment on separate assets config

* chore: remove console.log

* chore: general code cleanup

* test: new render config

* docs: new README

* fix: add expect-error on astro:assets

* feat: add defineMarkdocConfig helper

* docs: update example README

* test: add runtime variable

* chore: lint

* chore: changeset

* chore: add component import deletion

* docs: add notes on Vite fork

* fix: astro check

* chore: add `.mts` to markdoc config formats
2023-03-27 18:04:37 -04:00
..
basics [ci] release (#6646) 2023-03-24 13:17:01 -04:00
blog [ci] release (#6646) 2023-03-24 13:17:01 -04:00
component [ci] release (#6646) 2023-03-24 13:17:01 -04:00
deno [ci] release (#6646) 2023-03-24 13:17:01 -04:00
docs [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-alpine [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-lit [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-multiple [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-preact [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-react [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-solid [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-svelte [ci] release (#6646) 2023-03-24 13:17:01 -04:00
framework-vue [ci] release (#6646) 2023-03-24 13:17:01 -04:00
hackernews [ci] release (#6646) 2023-03-24 13:17:01 -04:00
integration [ci] release (#6646) 2023-03-24 13:17:01 -04:00
minimal [ci] release (#6646) 2023-03-24 13:17:01 -04:00
non-html-pages [ci] release (#6646) 2023-03-24 13:17:01 -04:00
portfolio [ci] release (#6646) 2023-03-24 13:17:01 -04:00
ssr [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-markdoc [Markdoc] New config format with runtime variable support! (#6653) 2023-03-27 18:04:37 -04:00
with-markdown-plugins [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-markdown-shiki [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-mdx [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-nanostores [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-tailwindcss [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-vite-plugin-pwa [ci] release (#6646) 2023-03-24 13:17:01 -04:00
with-vitest [ci] release (#6646) 2023-03-24 13:17:01 -04: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