0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples
Juan Martín Seery 2bc91543ce
feat: Added the ability to add custom themes/languages to Shiki (#2518)
* Replaced `shikiTheme` with `shikiConfig`

* Code.astro now accepts custom themes/langs

* Updated docs

* Updated tests

* Fixed language loading

* Added customization examples

* Updated documentation

* Added more tests

* Changelogs

* Changed some spaces to tabs

* Fixed typo in changesets

* Moved tests fixtures

* Rolled back changes to with-markdown-shiki

* Removed lang example in docs

* Optimized Code component

* Try to fix windows errors

* Try to see if this new tests work
2022-02-07 08:31:02 -08:00
..
blog [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
blog-multiple-authors [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
component [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
docs [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
fast-build [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-alpine [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-lit [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-multiple [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-preact [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-react [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-solid [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-svelte [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
framework-vue [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
minimal [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
portfolio [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
portfolio-svelte [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
starter Delete robots.txt (#2540) 2022-02-07 10:16:56 -05:00
subpath [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
with-markdown [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
with-markdown-plugins fix: import local plugins into markdown (#2534) 2022-02-04 13:49:50 -05:00
with-markdown-shiki feat: Added the ability to add custom themes/languages to Shiki (#2518) 2022-02-07 08:31:02 -08:00
with-nanostores [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
with-tailwindcss [ci] release (next) (#2523) 2022-02-02 12:11:57 -05:00
with-vite-plugin-pwa [ci] release (next) (#2523) 2022-02-02 12:11:57 -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