astro/examples
Juan Martín Seery 6fe1b0279f
Add Shiki as an alternative to Prism (#2497)
* [ci] yarn format

* Added shiki to markdown-remark

* Upgraded astro shiki

* Added minimal example

* Changed defaults to match <Code />

* Replace `shiki` with `astro` classes

* Added documentation

* Updated Astro code to use new `codeToHtml`

* Added changesets

* Added basic test

* Updated tests a bit

Co-authored-by: JuanM04 <JuanM04@users.noreply.github.com>
2022-01-31 16:14:07 -06:00
..
blog [ci] release (#2482) 2022-01-28 20:06:07 -05:00
blog-multiple-authors [ci] release (#2482) 2022-01-28 20:06:07 -05:00
component Fix Astro Components example (#2507) 2022-01-31 16:27:09 -05:00
docs [ci] release (#2482) 2022-01-28 20:06:07 -05:00
fast-build Fix define:vars in the static build flag (#2511) 2022-01-31 16:56:14 -05:00
framework-alpine [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-lit [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-multiple [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-preact [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-react [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-solid [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-svelte [ci] release (#2482) 2022-01-28 20:06:07 -05:00
framework-vue [ci] release (#2482) 2022-01-28 20:06:07 -05:00
minimal Minimize the minimal example (#2508) 2022-01-31 16:28:29 -05:00
portfolio [ci] release (#2482) 2022-01-28 20:06:07 -05:00
portfolio-svelte [docs] fix typo in portfolio-svelte example (#2496) 2022-01-31 16:46:05 -05:00
starter [ci] release (#2482) 2022-01-28 20:06:07 -05:00
subpath [ci] release (#2482) 2022-01-28 20:06:07 -05:00
with-markdown [ci] release (#2482) 2022-01-28 20:06:07 -05:00
with-markdown-plugins [ci] release (#2482) 2022-01-28 20:06:07 -05:00
with-markdown-shiki Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
with-nanostores [ci] release (#2482) 2022-01-28 20:06:07 -05:00
with-tailwindcss [ci] release (#2482) 2022-01-28 20:06:07 -05:00
with-vite-plugin-pwa [ci] release (#2482) 2022-01-28 20:06:07 -05:00
README.md Docs: npm@7 requires an extra -- for arguments passed to the command, per @natemoo-re's description. (#786) 2021-07-20 20:06:11 -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 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