create-astro@4.13.0
Minor Changes
-
#14115
270e009Thanks @ascorbic! - Removes "Open in x" badges from the README of the official Astro templates when a new project is created -
#14115
270e009Thanks @ascorbic! - Adds support for marking sections in template READMEs to be removed when thecreate astrocommand is used to create a new projectTheme authors can now use magic comments in template READMEs to mark sections that should not be included when a user runs
create-astrowith the--templateflag to create a new project.This allows templates to have content that is visible when viewed in the source repo but not when the template is copied for use in a new project. This is useful for content that is appropriate for a theme's own repository, but will not be useful to someone using the theme, such as
an "Open this repository in StackBlitz" badge where the URL is hardcoded .Use the magic comments
andto indicate content to be excluded from your README during thecreate astroprocess.[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
Note that these comments only remove content when new projects are created using
create astro. When your theme template is forked, your README will be copied in its entirety.