astro/examples
Ben Holmes 471c6f784e
[markdown] Harder, better, faster, stronger vite-plugin-markdown (#4137)
* refactor: vite-plugin-md -> vite-plugin-md-legacy

* wip: add vite-plugin-md

* feat: always apply jsx renderer

* fix: markHTMLString on VNode result

* feat: apply new vite-plugin-markdown!

* fix: add meta export to md

* fix: remove needless $$metadata export

* fix: toggle to legacy plugin on flag

* fix: pass fileId to renderMarkdown

* test: raw and compiled content on plain md

* fix: escape vite env refs

* refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown

* fix: import.meta.env refs with tests

* fix: add pkg.json to clientAddress

* fix: prefer JSX integration over Astro runtime

* Revert "fix: prefer JSX integration over Astro runtime"

This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1.

* fix: remove .mdx check on importSource

* chore: changeset

* chore: remove TODO

* fix: add back getHeadings

* fix: add pkg.json to astro-head fixture

* fix: default to Astro renderer for MDX and MD

* feat: add "headings" and "frontmatter" to md layouts

* refactor: remove legacy flag conditionals from legacy plugin

* fix: add back MDX warning when legacy is off

* test: getHeadings() glob

* fix: add error on "astro.headings" access

* feat: update docs example astro.headings => headings

* refactor: readFile as string w/ utf-8

* chore: remove astro metadata TODO

* refactor: stringify HTML once

* fix: add pkg.json to glob-pages-css
2022-08-05 15:43:50 -04:00
..
basics Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
blog [ci] release (#4152) 2022-08-04 12:21:38 -04:00
component Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
docs [markdown] Harder, better, faster, stronger vite-plugin-markdown (#4137) 2022-08-05 15:43:50 -04:00
env-vars Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-alpine Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-lit Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-multiple Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-preact Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-react [ci] format 2022-08-04 18:19:18 +00:00
framework-solid Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-svelte Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
framework-vue Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
minimal [ci] release (#4152) 2022-08-04 12:21:38 -04:00
non-html-pages Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
portfolio Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
ssr Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
subpath Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
with-markdown-plugins [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-markdown-shiki [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-mdx [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-nanostores [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-tailwindcss [ci] release (#4152) 2022-08-04 12:21:38 -04:00
with-vite-plugin-pwa Audit examples templates (#3940) 2022-08-04 14:16:51 -04:00
with-vitest [ci] format 2022-08-05 19:42:58 +00:00
README.md Audit examples templates (#3940) 2022-08-04 14:16:51 -04: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 init astro -- --template [EXAMPLE_NAME]

Community Examples

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

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]

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

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example