0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples
Ben Holmes 81dce94f2a
[RSS] Get ready for content collections (#5851)
* chore: strictNullChecks for zod

* feat: expose `rssSchema` helper

* refactor: align types with schema types

* feat: break glob handler to globToRssItems util

* refactor: RSS options validation to Zod

* refactor: avoid intermediate type

* fix: allow numbers and dates in pubDate

* test: update glob and error tests

* feat: add rss to with-content starter

* fix: move globToRssItems back to internal behavior

* chore: JSON.stringify

* Revert "fix: move globToRssItems back to internal behavior"

This reverts commit 85305075e6444907455541b24bccbccd5016951a.

* test: missing url

* docs: `import.meta.env.SITE` -> `context.site`

* docs: update README to content collections example

* fix: url -> link

* docs: add `rssSchema` to README

* chore: consistent formatting

* docs: add `pagesGlobToRssItems()` reference

* chore: globToRssItems -> pagesGlobToRssItems

* chore: changeset

* fix: bad docs line highlighting

* fix: add collections export to example

* nit: remove "our"

* fix: are -> all

* fix: more README edits

* deps: kleur

* chore: add back import.meta.glob handling as deprecated

* docs: bump down to `minor`, update headline to be less content collections-y

* typo: suggest adding

* chore: support URL object on `site`

* docs: add await to pagesGlob ex

* docs: tighten `rssSchema` explainer

* docs: tighten pagesGlobToRssItems section

* docs: add content to README

* docs: replace examples with docs link

* docs: re-we

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-19 11:24:55 -05:00
..
basics [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
blog [RSS] Get ready for content collections (#5851) 2023-01-19 11:24:55 -05:00
component [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
deno [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
docs [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-alpine [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-lit [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-multiple [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-preact [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-react [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-solid [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-svelte [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
framework-vue [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
hackernews [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
integration [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
minimal [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
non-html-pages [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
portfolio [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
ssr [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-markdown-plugins [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-markdown-shiki [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-mdx [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-nanostores [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-tailwindcss [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-vite-plugin-pwa [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05:00
with-vitest [ci] release (beta) (#5856) 2023-01-19 11:00:03 -05: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