diff --git a/.changeset/calm-houses-carry.md b/.changeset/calm-houses-carry.md
new file mode 100644
index 000000000000..4e614e623e83
--- /dev/null
+++ b/.changeset/calm-houses-carry.md
@@ -0,0 +1,5 @@
+---
+"astro": patch
+---
+
+fix(astro): add support for `src/content/config.mts` files
diff --git a/.changeset/chatty-walls-happen.md b/.changeset/chatty-walls-happen.md
deleted file mode 100644
index 58fe5e6edb2c..000000000000
--- a/.changeset/chatty-walls-happen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixed a case where dynamic imports tried to preload inlined stylesheets.
diff --git a/.changeset/empty-rings-bow.md b/.changeset/empty-rings-bow.md
deleted file mode 100644
index fd928d548c04..000000000000
--- a/.changeset/empty-rings-bow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes remote assets caching logic to not use expired assets
diff --git a/.changeset/fair-countries-admire.md b/.changeset/fair-countries-admire.md
deleted file mode 100644
index 1868ab016695..000000000000
--- a/.changeset/fair-countries-admire.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/svelte': patch
----
-
-Removed vite warnings.
diff --git a/.changeset/friendly-clocks-act.md b/.changeset/friendly-clocks-act.md
deleted file mode 100644
index 43c6948804d0..000000000000
--- a/.changeset/friendly-clocks-act.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'create-astro': patch
-'astro': patch
----
-
-Support detecting Bun when logging messages with package manager information.
diff --git a/.changeset/gold-weeks-hammer.md b/.changeset/gold-weeks-hammer.md
new file mode 100644
index 000000000000..4f6946116649
--- /dev/null
+++ b/.changeset/gold-weeks-hammer.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Minify the HTML of the redicts emitted during the build.
diff --git a/.changeset/gorgeous-dancers-divide.md b/.changeset/gorgeous-dancers-divide.md
new file mode 100644
index 000000000000..f9b8217e9ec5
--- /dev/null
+++ b/.changeset/gorgeous-dancers-divide.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Do not add type="text/css" to inline style tag
diff --git a/.changeset/grumpy-hotels-heal.md b/.changeset/grumpy-hotels-heal.md
new file mode 100644
index 000000000000..f171c91fb1d7
--- /dev/null
+++ b/.changeset/grumpy-hotels-heal.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Prevent client:only styles from being removed in dev (View Transitions)
diff --git a/.changeset/hip-cats-jump.md b/.changeset/hip-cats-jump.md
deleted file mode 100644
index f728408a082a..000000000000
--- a/.changeset/hip-cats-jump.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix missing type for `imageConfig` export from `astro:assets`
diff --git a/.changeset/itchy-clouds-design.md b/.changeset/itchy-clouds-design.md
new file mode 100644
index 000000000000..b6d5046e3175
--- /dev/null
+++ b/.changeset/itchy-clouds-design.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+chore: correct description of `attribute` option in `scopedStyleStrategy`
diff --git a/.changeset/modern-guests-float.md b/.changeset/modern-guests-float.md
deleted file mode 100644
index cda74642aac0..000000000000
--- a/.changeset/modern-guests-float.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/vercel': patch
----
-
-Fix serverless function naming conflicts for routes with identical filenames but different directory structures
diff --git a/.changeset/poor-pears-wash.md b/.changeset/poor-pears-wash.md
new file mode 100644
index 000000000000..5a7117e93fe3
--- /dev/null
+++ b/.changeset/poor-pears-wash.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix lang unspecified code blocks (markdownlint MD040)
diff --git a/.changeset/smart-dragons-taste.md b/.changeset/smart-dragons-taste.md
new file mode 100644
index 000000000000..3b79d9410723
--- /dev/null
+++ b/.changeset/smart-dragons-taste.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/cloudflare': minor
+---
+
+Add support for Cloudflare Runtime (env vars, caches and req object), using `astro dev`
diff --git a/.changeset/spotty-glasses-grin.md b/.changeset/spotty-glasses-grin.md
deleted file mode 100644
index 3a903b79dd32..000000000000
--- a/.changeset/spotty-glasses-grin.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/mdx': patch
----
-
-Add location data to MDX compile errors
diff --git a/.changeset/spotty-tools-rhyme.md b/.changeset/spotty-tools-rhyme.md
new file mode 100644
index 000000000000..a54691a48db6
--- /dev/null
+++ b/.changeset/spotty-tools-rhyme.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+fix(types): make `image.service` optional
diff --git a/.changeset/twelve-cars-tell.md b/.changeset/twelve-cars-tell.md
deleted file mode 100644
index a1812d637aff..000000000000
--- a/.changeset/twelve-cars-tell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix markdown page HMR
diff --git a/.changeset/weak-kids-roll.md b/.changeset/weak-kids-roll.md
deleted file mode 100644
index 7d6d61f42e1f..000000000000
--- a/.changeset/weak-kids-roll.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix scroll position when navigating back from page w/o ViewTransitions
diff --git a/.changeset/witty-readers-behave.md b/.changeset/witty-readers-behave.md
new file mode 100644
index 000000000000..ec999f763f98
--- /dev/null
+++ b/.changeset/witty-readers-behave.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Bugfixes for back navigation in the view transition client-side router
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 01c573e10382..cab1fd79f2a2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -108,7 +108,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest]
- NODE_VERSION: [18, 20]
+ NODE_VERSION: [18, 20.5.1]
include:
- os: macos-latest
NODE_VERSION: 18
diff --git a/.github/workflows/cleanup-cache.yml b/.github/workflows/cleanup-cache.yml
index a3c4d25a489c..cf03bbfee584 100644
--- a/.github/workflows/cleanup-cache.yml
+++ b/.github/workflows/cleanup-cache.yml
@@ -1,19 +1,28 @@
name: Cleanup cache
on:
+ schedule:
+ - cron: "0 11 * * *"
pull_request:
types:
- closed
-# Workflow copied from https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
-
- - name: Cleanup
+
+ - name: Cleanup caches older than 5 days
+ if: github.event_name == 'schedule'
+ uses: MyAlbum/purge-cache@v2
+ with:
+ max-age: 432000
+
+ # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
+ - name: Cleanup on PR close
+ if: github.event_name == 'pull_request'
run: |
gh extension install actions/gh-actions-cache
diff --git a/.prettierignore b/.prettierignore
index f53f92086ca7..af84e34338c1 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,10 +1,3 @@
-# Ignoring these files for now due to https://github.com/withastro/compiler/issues/585
-examples/basics/src/layouts
-examples/with-nanostores/src/layouts
-
-# Ignoring this file for now due to https://github.com/withastro/compiler/issues/485
-packages/markdown/component/Markdown.astro
-
# Benchmark artifacts
benchmark/projects/
benchmark/results/
diff --git a/.prettierrc.cjs b/.prettierrc.cjs
deleted file mode 100644
index 39911db2c101..000000000000
--- a/.prettierrc.cjs
+++ /dev/null
@@ -1,24 +0,0 @@
-// Heads up: This file should be renamed to `.cjs`, however if we did that, changesets wouldn't be able to load it
-module.exports = {
- printWidth: 100,
- semi: true,
- singleQuote: true,
- tabWidth: 2,
- trailingComma: 'es5',
- useTabs: true,
- plugins: ['prettier-plugin-astro'],
- overrides: [
- {
- files: ['.*', '*.json', '*.md', '*.toml', '*.yml'],
- options: {
- useTabs: false,
- },
- },
- {
- files: ['**/*.astro'],
- options: {
- parser: 'astro',
- },
- },
- ],
-};
diff --git a/README.md b/README.md
index 3a28ad530281..c49b4760e085 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ Several official projects are maintained outside of this repo:
## Sponsors
-Astro is generously supported by Netlify, Storyblok, and several other amazing organizations.
+Astro is free, open source software made possible by these wonderful sponsors.
[❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)
@@ -91,7 +91,7 @@ Astro is generously supported by Netlify, Storyblok, and several other amazing o
[![Astro's sponsors.](https://astro.build/sponsors.png "Astro's sponsors.
-Platinum sponsors: Netlify, storyblok, Vercel, Ship Shape, Google Chrome
+Platinum sponsors: Vercel, storyblok, Netlify, Ship Shape, Google Chrome
Gold sponsors: ‹div›RIOTS, DEEPGRAM, Transloadit, CloudCannon
Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
diff --git a/examples/README.md b/examples/README.md
index ab0e5a6c0791..1482084d42df 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -2,7 +2,7 @@
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
-```
+```sh
npm create astro@latest -- --template [EXAMPLE_NAME]
```
@@ -10,12 +10,12 @@ npm create astro@latest -- --template [EXAMPLE_NAME]
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
-```
+```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
```
Paths to examples nested inside of a repo are also supported:
-```
+```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
```
diff --git a/examples/basics/README.md b/examples/basics/README.md
index 5369073b906d..1db3fb3991a8 100644
--- a/examples/basics/README.md
+++ b/examples/basics/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Basics
-```
+```sh
npm create astro@latest -- --template basics
```
@@ -16,7 +16,7 @@ npm create astro@latest -- --template basics
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 8bca8d9270ec..d3f7c6b75ec0 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro
index 3345b887ce7f..7b552be19bca 100644
--- a/examples/basics/src/layouts/Layout.astro
+++ b/examples/basics/src/layouts/Layout.astro
@@ -1,4 +1,4 @@
----
+---
interface Props {
title: string;
}
@@ -6,11 +6,11 @@ interface Props {
const { title } = Astro.props;
---
-
+
-
+
@@ -25,15 +25,27 @@ const { title } = Astro.props;
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
- --accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);
+ --accent-gradient: linear-gradient(
+ 45deg,
+ rgb(var(--accent)),
+ rgb(var(--accent-light)) 30%,
+ white 60%
+ );
}
html {
font-family: system-ui, sans-serif;
- background: #13151A;
+ background: #13151a;
background-size: 224px;
}
code {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/blog/README.md b/examples/blog/README.md
index 67d0cfc2ee8b..758716e07c57 100644
--- a/examples/blog/README.md
+++ b/examples/blog/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Blog
-```
+```sh
npm create astro@latest -- --template blog
```
@@ -25,7 +25,7 @@ Features:
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
├── public/
├── src/
│ ├── components/
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 347540e050a9..1ce63f5b788f 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.0.0",
+ "@astrojs/mdx": "^1.0.3",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/blog/src/pages/blog/index.astro b/examples/blog/src/pages/blog/index.astro
index a5c329a87f06..ebbcd304272f 100644
--- a/examples/blog/src/pages/blog/index.astro
+++ b/examples/blog/src/pages/blog/index.astro
@@ -11,7 +11,7 @@ const posts = (await getCollection('blog')).sort(
);
---
-
+
diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro
index 26f070da5e80..1c8be6135dfb 100644
--- a/examples/blog/src/pages/index.astro
+++ b/examples/blog/src/pages/index.astro
@@ -5,7 +5,7 @@ import Footer from '../components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
---
-
+
@@ -16,14 +16,14 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
🧑🚀 Hello, Astronaut!
Welcome to the official Astro blog starter template. This
- template serves as a lightweight, minimally-styled starting point for anyone looking to build
- a personal website, blog, or portfolio with Astro.
+ template serves as a lightweight, minimally-styled starting point for anyone looking to
+ build a personal website, blog, or portfolio with Astro.
This template comes with a few integrations already configured in your
astro.config.mjs
file. You can customize your setup with
- Astro Integrations to add tools like Tailwind,
- React, or Vue to your project.
+ Astro Integrations to add tools like
+ Tailwind, React, or Vue to your project.
Here are a few ideas on how to get started with the template:
diff --git a/examples/component/README.md b/examples/component/README.md
index c92a01a954f4..f51958529925 100644
--- a/examples/component/README.md
+++ b/examples/component/README.md
@@ -2,7 +2,7 @@
This is a template for an Astro component library. Use this template for writing components to use in multiple projects or publish to NPM.
-```
+```sh
npm create astro@latest -- --template component
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template component
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── index.ts
├── src
diff --git a/examples/component/package.json b/examples/component/package.json
index 39290c2b5d9a..1bc40f01eb4d 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/deno/README.md b/examples/deno/README.md
index af49ebcb7e30..17deeb3b9d9e 100644
--- a/examples/deno/README.md
+++ b/examples/deno/README.md
@@ -4,7 +4,7 @@
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/deno)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/deno/devcontainer.json)
-```
+```sh
npm create astro@latest -- --template deno
```
@@ -16,7 +16,7 @@ npm create astro@latest -- --template deno
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/deno/package.json b/examples/deno/package.json
index ac233a386455..ea81225796f4 100644
--- a/examples/deno/package.json
+++ b/examples/deno/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"devDependencies": {
"@astrojs/deno": "^5.0.0"
diff --git a/examples/deno/src/components/Layout.astro b/examples/deno/src/components/Layout.astro
index 7d329d0a4392..7bcbd218c5f8 100644
--- a/examples/deno/src/components/Layout.astro
+++ b/examples/deno/src/components/Layout.astro
@@ -6,7 +6,7 @@ interface Props {
const { title } = Astro.props as Props;
---
-
+
@@ -46,8 +46,15 @@ const { title } = Astro.props as Props;
}
:global(code) {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/framework-alpine/README.md b/examples/framework-alpine/README.md
index 9c61ea1b0f81..22cc7537430b 100644
--- a/examples/framework-alpine/README.md
+++ b/examples/framework-alpine/README.md
@@ -1,6 +1,6 @@
# Astro + AlpineJS Example
-```
+```sh
npm create astro@latest -- --template framework-alpine
```
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 9e933f62213c..bcdba561c33f 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.0",
"@types/alpinejs": "^3.7.2",
"alpinejs": "^3.12.3",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/framework-lit/README.md b/examples/framework-lit/README.md
index 9afdb987cb03..714d179da2c3 100644
--- a/examples/framework-lit/README.md
+++ b/examples/framework-lit/README.md
@@ -1,6 +1,6 @@
# Astro + Lit Example
-```
+```sh
npm create astro@latest -- --template framework-lit
```
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 0596fbd8d6ce..c8f18413140f 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^3.0.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"lit": "^2.8.0"
}
}
diff --git a/examples/framework-lit/src/pages/index.astro b/examples/framework-lit/src/pages/index.astro
index a351b82487ea..5ef314f6fcbb 100644
--- a/examples/framework-lit/src/pages/index.astro
+++ b/examples/framework-lit/src/pages/index.astro
@@ -7,7 +7,7 @@ import { MyCounter } from '../components/my-counter.js';
// https://docs.astro.build/core-concepts/astro-components/
---
-
+
diff --git a/examples/framework-multiple/README.md b/examples/framework-multiple/README.md
index 385b0ade7872..30b020effb0c 100644
--- a/examples/framework-multiple/README.md
+++ b/examples/framework-multiple/README.md
@@ -1,6 +1,6 @@
# Kitchen Sink: Microfrontends with Astro
-```
+```sh
npm create astro@latest -- --template framework-multiple
```
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 4246c6c1c5a5..0f8905159c8b 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -12,11 +12,11 @@
},
"dependencies": {
"@astrojs/preact": "^3.0.0",
- "@astrojs/react": "^3.0.0",
- "@astrojs/solid-js": "^3.0.0",
- "@astrojs/svelte": "^4.0.0",
+ "@astrojs/react": "^3.0.2",
+ "@astrojs/solid-js": "^3.0.1",
+ "@astrojs/svelte": "^4.0.2",
"@astrojs/vue": "^3.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"preact": "^10.17.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/examples/framework-preact/README.md b/examples/framework-preact/README.md
index 8bebec195aa3..04efb2d6ea98 100644
--- a/examples/framework-preact/README.md
+++ b/examples/framework-preact/README.md
@@ -1,6 +1,6 @@
# Astro + Preact Example
-```
+```sh
npm create astro@latest -- --template framework-preact
```
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index a97ff70e27d9..fdc06847a963 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0",
"@preact/signals": "^1.2.1",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"preact": "^10.17.1"
}
}
diff --git a/examples/framework-react/README.md b/examples/framework-react/README.md
index 57afd632aaa1..f036afa8c6a8 100644
--- a/examples/framework-react/README.md
+++ b/examples/framework-react/README.md
@@ -1,6 +1,6 @@
# Astro + React Example
-```
+```sh
npm create astro@latest -- --template framework-react
```
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 562a551ce291..997d69646935 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/react": "^3.0.0",
+ "@astrojs/react": "^3.0.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/README.md b/examples/framework-solid/README.md
index f95f8d8f5bc0..2943a7692b11 100644
--- a/examples/framework-solid/README.md
+++ b/examples/framework-solid/README.md
@@ -1,6 +1,6 @@
# Astro + Solid.js Example
-```
+```sh
npm create astro@latest -- --template framework-solid
```
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index f00813c91187..36e41d672b05 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/solid-js": "^3.0.0",
- "astro": "^3.0.8",
+ "@astrojs/solid-js": "^3.0.1",
+ "astro": "^3.0.12",
"solid-js": "^1.7.11"
}
}
diff --git a/examples/framework-svelte/README.md b/examples/framework-svelte/README.md
index abf0679cc684..5c5a24cc05b6 100644
--- a/examples/framework-svelte/README.md
+++ b/examples/framework-svelte/README.md
@@ -1,6 +1,6 @@
# Astro + Svelte Example
-```
+```sh
npm create astro@latest -- --template framework-svelte
```
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index c232e9e15ee0..46937ad43860 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^4.0.0",
- "astro": "^3.0.8",
+ "@astrojs/svelte": "^4.0.2",
+ "astro": "^3.0.12",
"svelte": "^4.2.0"
}
}
diff --git a/examples/framework-vue/README.md b/examples/framework-vue/README.md
index 07f94e1c3f54..14e778765a5b 100644
--- a/examples/framework-vue/README.md
+++ b/examples/framework-vue/README.md
@@ -1,6 +1,6 @@
# Astro + Vue Example
-```
+```sh
npm create astro@latest -- --template framework-vue
```
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 34fc9a29e322..e24bcdad3a0f 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^3.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"vue": "^3.3.4"
}
}
diff --git a/examples/hackernews/README.md b/examples/hackernews/README.md
index 042a7807b51f..55c657dc91ac 100644
--- a/examples/hackernews/README.md
+++ b/examples/hackernews/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Hackernews
-```
+```sh
npm create astro@latest -- --template hackernews
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template hackernews
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 305b50d6e8f1..c089ca0f7cce 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/hackernews/src/pages/stories/[id].astro b/examples/hackernews/src/pages/stories/[id].astro
index 84383aa9e4ab..9cfad36fddd9 100644
--- a/examples/hackernews/src/pages/stories/[id].astro
+++ b/examples/hackernews/src/pages/stories/[id].astro
@@ -25,7 +25,7 @@ const story = (await fetchAPI(`item/${id}`)) as IStory;
{story.user}
- {story.time_ago}
+ {story.time_ago}
diff --git a/examples/integration/README.md b/examples/integration/README.md
index a6709d4004de..4f0880031250 100644
--- a/examples/integration/README.md
+++ b/examples/integration/README.md
@@ -2,7 +2,7 @@
This is a template for an Astro integration. Use this template for writing integrations to use in multiple projects or publish to NPM.
-```
+```sh
npm create astro@latest -- --template integration
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template integration
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── index.ts
├── tsconfig.json
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 6a699810506a..30e91060a83a 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index f0c83d7d9512..853b33a71ce5 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/middleware/src/components/Card.astro b/examples/middleware/src/components/Card.astro
index a1e0ccf6eb77..1ff16e5fb46e 100644
--- a/examples/middleware/src/components/Card.astro
+++ b/examples/middleware/src/components/Card.astro
@@ -30,7 +30,9 @@ const { href, title, body } = Astro.props;
border-radius: 0.6rem;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
+ box-shadow:
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1),
+ 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.link-card > a {
diff --git a/examples/middleware/src/layouts/Layout.astro b/examples/middleware/src/layouts/Layout.astro
index b3def2637267..90d2fb715f15 100644
--- a/examples/middleware/src/layouts/Layout.astro
+++ b/examples/middleware/src/layouts/Layout.astro
@@ -6,7 +6,7 @@ interface Props {
const { title } = Astro.props;
---
-
+
@@ -29,7 +29,14 @@ const { title } = Astro.props;
background-color: #f6f6f6;
}
code {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/minimal/README.md b/examples/minimal/README.md
index 20bad66154ec..e34a99b446b4 100644
--- a/examples/minimal/README.md
+++ b/examples/minimal/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Minimal
-```
+```sh
npm create astro@latest -- --template minimal
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template minimal
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
├── src/
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 13ea2c026a11..8bfc5c2b587f 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/minimal/src/pages/index.astro b/examples/minimal/src/pages/index.astro
index 7264ff502db6..2d141073625b 100644
--- a/examples/minimal/src/pages/index.astro
+++ b/examples/minimal/src/pages/index.astro
@@ -1,4 +1,5 @@
---
+
---
diff --git a/examples/non-html-pages/README.md b/examples/non-html-pages/README.md
index ecdee84b10dc..c26b016982dc 100644
--- a/examples/non-html-pages/README.md
+++ b/examples/non-html-pages/README.md
@@ -4,7 +4,7 @@ Documentation for "Non-HTML Pages":
https://docs.astro.build/en/core-concepts/endpoints/#static-file-endpoints
-```
+```sh
npm create astro@latest -- --template non-html-pages
```
@@ -18,7 +18,7 @@ npm create astro@latest -- --template non-html-pages
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
├── src/
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 4cd01cc55eff..be1e1267212f 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/portfolio/README.md b/examples/portfolio/README.md
index 3c8ee3aa4725..312d18b1cf5d 100644
--- a/examples/portfolio/README.md
+++ b/examples/portfolio/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Portfolio
-```
+```sh
npm create astro@latest -- --template portfolio
```
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 65d29e849bb7..a1ac1e58d0f0 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro
index bf9ac7869169..d0a5857b12bf 100644
--- a/examples/portfolio/src/components/Nav.astro
+++ b/examples/portfolio/src/components/Nav.astro
@@ -25,7 +25,7 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]