diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index ccc762342e454..8ca5ebde97e09 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -19,12 +19,12 @@ jobs:
LABEL: ci
PR_BRANCH: ci/docgen
PR_TITLE: 'ci: update configuration reference docs'
- # Custom options for running with Astro v6 beta code
- # - SOURCE_BRANCH: main
- # TARGET_BRANCH: v6
- # LABEL: 6.0,ci
- # PR_BRANCH: ci/docgen-beta
- # PR_TITLE: '[BETA] ci: update reference docs'
+ # Custom options for running with Astro v7 beta code
+ - SOURCE_BRANCH: next
+ TARGET_BRANCH: v7
+ LABEL: 7.0,ci
+ PR_BRANCH: ci/docgen-beta
+ PR_TITLE: '[BETA] ci: update reference docs'
steps:
- name: Check out code using Git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -66,12 +66,12 @@ jobs:
LABEL: ci
PR_BRANCH: ci/docgen-errors
PR_TITLE: 'ci: update error reference docs'
- # Custom options for running with Astro v6 beta code
- # - SOURCE_BRANCH: main
- # TARGET_BRANCH: v6
- # LABEL: 6.0,ci
- # PR_BRANCH: ci/docgen-errors-beta
- # PR_TITLE: '[BETA] ci: update error reference docs'
+ # Custom options for running with Astro v7 beta code
+ - SOURCE_BRANCH: next
+ TARGET_BRANCH: v7
+ LABEL: 7.0,ci
+ PR_BRANCH: ci/docgen-errors-beta
+ PR_TITLE: '[BETA] ci: update error reference docs'
steps:
- name: Check out code using Git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
diff --git a/astro.sidebar.ts b/astro.sidebar.ts
index c808283eaf9f9..6fb3c17e19646 100644
--- a/astro.sidebar.ts
+++ b/astro.sidebar.ts
@@ -88,6 +88,7 @@ export const sidebar = [
group('guides.upgrade.major', {
collapsed: true,
items: [
+ 'guides/upgrade-to/v7',
'guides/upgrade-to/v6',
'guides/upgrade-to/v5',
'guides/upgrade-to/v4',
@@ -160,7 +161,6 @@ export const sidebar = [
'reference/experimental-flags/chrome-devtools-workspace',
'reference/experimental-flags/svg-optimization',
'reference/experimental-flags/queued-rendering',
- 'reference/experimental-flags/rust-compiler',
'reference/experimental-flags/advanced-routing',
'reference/experimental-flags/logger',
],
diff --git a/public/_headers b/public/_headers
index b505fec8b57ad..3967f74787ff9 100644
--- a/public/_headers
+++ b/public/_headers
@@ -1,3 +1,6 @@
+# TODO: Remove this before merging to main
+/*
+ x-robots-tag: no-index
/*
cache-control: max-age=60
cache-control: public
@@ -5,3 +8,4 @@
cache-control: max-age=31536000
cache-control: immutable
cache-control: public
+
diff --git a/src/content/docs/en/getting-started.mdx b/src/content/docs/en/getting-started.mdx
index 030c0002ecd8c..dcb3791c0c4b2 100644
--- a/src/content/docs/en/getting-started.mdx
+++ b/src/content/docs/en/getting-started.mdx
@@ -7,7 +7,7 @@ editUrl: false
next: false
banner:
content: |
- Astro v6 is here! Learn how to upgrade your site
+ Astro v7 is here! Learn how to upgrade your site
hero:
title: Astro Docs
tagline: Guides, resources, and API references to help you build with Astro.
diff --git a/src/content/docs/en/guides/upgrade-to/v7.mdx b/src/content/docs/en/guides/upgrade-to/v7.mdx
new file mode 100644
index 0000000000000..d4c9be4c68375
--- /dev/null
+++ b/src/content/docs/en/guides/upgrade-to/v7.mdx
@@ -0,0 +1,101 @@
+---
+title: Upgrade to Astro v7
+description: How to upgrade your project to Astro v7.0.
+sidebar:
+ label: v7.0
+i18nReady: false
+---
+import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
+import { Steps } from '@astrojs/starlight/components';
+import ReadMore from '~/components/ReadMore.astro'
+import SourcePR from '~/components/SourcePR.astro'
+
+:::tip[Using a coding agent?]
+Copy this prompt to upgrade your project:
+
+```
+Upgrade my Astro project to v7. Follow the migration guide at
+https://v7.docs.astro.build/en/guides/upgrade-to/v7/
+```
+:::
+
+This guide will help you migrate from Astro v6 to Astro v7.
+
+Need to upgrade an older project to v6 first? See our [older migration guide](/en/guides/upgrade-to/v6/).
+
+Need to see the v6 docs? Visit this [older version of the docs site (unmaintained v6 snapshot)](https://v6.docs.astro.build/).
+
+## Upgrade Astro
+
+Update your project's version of Astro to the latest version using your package manager:
+
+
-
- **Type:** `boolean`
- **Default:** `false`
-
My paragraph` (instead of adding the missing closing `
` tag) - -This means that if your Astro files contain invalid HTML, you may see a different output from the Rust compiler than you did with the previous compiler, or may encounter errors while building. - -## Limitations - -At this time, the Rust compiler does not output the required metadata for the dev toolbar audits to work correctly. diff --git a/src/content/docs/en/upgrade-astro.mdx b/src/content/docs/en/upgrade-astro.mdx index 0e5fb1dac497a..0df056043e4b7 100644 --- a/src/content/docs/en/upgrade-astro.mdx +++ b/src/content/docs/en/upgrade-astro.mdx @@ -102,6 +102,7 @@ The main Astro documentation pages are always **accurate for the latest released See the upgrade guides below for an explanation of changes, comparing the new version to the old. The upgrade guides include everything that could require you to change your own code: breaking changes, deprecations, feature removals and replacements as well as updated usage guidance. Each change to Astro includes a "What should I do?" section to help you successfully update your project code. +- [Upgrade to v7](/en/guides/upgrade-to/v7/) - [Upgrade to v6](/en/guides/upgrade-to/v6/) - [Upgrade to v5](/en/guides/upgrade-to/v5/) - [Upgrade to v4](/en/guides/upgrade-to/v4/) diff --git a/src/content/docs/es/reference/experimental-flags/rust-compiler.mdx b/src/content/docs/es/reference/experimental-flags/rust-compiler.mdx deleted file mode 100644 index c65202c2b84c8..0000000000000 --- a/src/content/docs/es/reference/experimental-flags/rust-compiler.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: Compilador experimental en Rust -sidebar: - label: Compilador en Rust -i18nReady: true ---- - -import Since from '~/components/Since.astro' -import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' - -
-
- **Tipo:** `boolean`
- **Por defecto:** `false`
-
My paragraph` (en lugar de añadir la etiqueta de cierre `
` faltante) - -Esto significa que, si tus archivos Astro contienen HTML inválido, puedes ver un resultado distinto con el compilador en Rust respecto al compilador anterior, o encontrar errores durante el build. - -## Limitaciones - -Actualmente, el compilador en Rust no genera los metadatos necesarios para que las auditorías de la barra de herramientas de desarrollo funcionen correctamente. diff --git a/src/content/docs/fr/reference/experimental-flags/rust-compiler.mdx b/src/content/docs/fr/reference/experimental-flags/rust-compiler.mdx deleted file mode 100644 index 502d42ac1e685..0000000000000 --- a/src/content/docs/fr/reference/experimental-flags/rust-compiler.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: Compilateur Rust expérimental -sidebar: - label: Compilateur Rust -i18nReady: true ---- - -import Since from '~/components/Since.astro' -import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' - -
-
- **Type :** `boolean`
- **Par défaut :** `false`
-
Mon paragraphe` (au lieu d'ajouter la balise `
` manquante) - -Cela signifie que si vos fichiers Astro contiennent du code HTML invalide, vous pourriez obtenir un résultat différent avec le compilateur Rust par rapport au compilateur précédent, ou rencontrer des erreurs lors de la compilation. - -## Limitations - -À l'heure actuelle, le compilateur Rust ne génère pas les métadonnées nécessaires au bon fonctionnement des audits de la barre d'outils de développement. diff --git a/src/content/docs/ja/reference/experimental-flags/rust-compiler.mdx b/src/content/docs/ja/reference/experimental-flags/rust-compiler.mdx deleted file mode 100644 index 80bbb666ce926..0000000000000 --- a/src/content/docs/ja/reference/experimental-flags/rust-compiler.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: 試験的なRustコンパイラー -sidebar: - label: Rustコンパイラー -i18nReady: true ---- - -import Since from '~/components/Since.astro' -import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' - -
-
- **Type:** `boolean`
- **Default:** `false`
-
My paragraph` (閉じタグ`
`を補完する代わりに) - -そのため、Astroファイルに無効なHTMLが含まれている場合、Rustコンパイラーによる出力が以前のコンパイラーと異なる場合や、ビルド時にエラーが発生する場合があります。 - -## 制限事項 - -現時点では、Rustコンパイラーはdevツールバーの監査が正しく機能するために必要なメタデータを出力しません。 diff --git a/src/content/docs/ko/reference/experimental-flags/rust-compiler.mdx b/src/content/docs/ko/reference/experimental-flags/rust-compiler.mdx deleted file mode 100644 index cefc0c0bdff96..0000000000000 --- a/src/content/docs/ko/reference/experimental-flags/rust-compiler.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: 실험적 Rust 컴파일러 -sidebar: - label: Rust 컴파일러 -i18nReady: true ---- - -import Since from '~/components/Since.astro' -import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' - -
-
- **타입:** `boolean`
- **기본값:** `false`
-
My paragraph` (누락된 닫는 `
` 태그를 추가하는 대신) - -즉, Astro 파일에 잘못된 HTML이 포함되어 있으면 이전 컴파일러를 사용했을 때와 출력이 다르거나 빌드 중에 오류가 발생할 수 있습니다. - -## 제한 사항 - -현재 Rust 컴파일러는 개발 툴바 감사가 올바르게 작동하는 데 필요한 메타데이터를 출력하지 않습니다.