Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.0 beta docs #9240

Draft
wants to merge 287 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 190 commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
168b40d
remove outdated link
sarah11918 Aug 29, 2024
98e5911
remove outdated banner linking to experimental env
sarah11918 Aug 29, 2024
1467235
updates outdated link
sarah11918 Aug 29, 2024
5c518f5
removed mention of Function per route from old translation
sarah11918 Aug 29, 2024
2450d9c
feat: update `paginate()` (#9200)
ematipico Aug 30, 2024
1529945
[BETA] ci: update reference docs (#9275)
astrobot-houston Aug 30, 2024
cb6e91d
feat: document `Astro.routePattern` (#9180)
ematipico Aug 30, 2024
bd2f29d
removed placeholders for PLT-1776 and PLT-2345
sarah11918 Aug 30, 2024
12fbd9a
make placeholder entries for 1897 and 1946
sarah11918 Aug 30, 2024
363789a
remove placeholder content for PLT 2331 and 2339 as not breaking
sarah11918 Aug 30, 2024
9d3f6b6
Added upgrade guide placeholder content for PLT1897, 2338, 989, 2434,…
sarah11918 Aug 30, 2024
83e40ab
updated unflagging experimental section in upgrade guide
sarah11918 Aug 30, 2024
d8513b3
reorder entries in upgrade guide to match alpha releases for organiza…
sarah11918 Aug 30, 2024
06cebec
added a new Source component to link to implementation PRs from upgra…
sarah11918 Aug 30, 2024
7b6e83f
add new source component to released breaking changes
sarah11918 Aug 30, 2024
be23c34
Reorder upgrade guide items leaving placeholders at the end
sarah11918 Aug 30, 2024
8188b4a
refactored implementaton PR component and added to breaking changes s…
sarah11918 Aug 30, 2024
bb70068
upgrade guide: separate deprecated and removed, add sourcePR componen…
sarah11918 Aug 30, 2024
9296766
upgrade guide: add entry for astro.glob deprecation
sarah11918 Aug 30, 2024
707d056
upgrade guide: added breaking change info for experimental flags that…
sarah11918 Aug 30, 2024
1fcd7f7
add more breaking change entries to upgrade guide
sarah11918 Aug 30, 2024
6c5f6e9
add more placeholder content for upgrade guide from PR changesets
sarah11918 Aug 30, 2024
8a3bfcf
more upgrade guide tidying
sarah11918 Aug 30, 2024
24507b0
remove dummy PR number from source PR component
sarah11918 Sep 2, 2024
808cb02
update entry for PLT1631
bluwy Sep 2, 2024
5acd0bd
update entry for PLT1946
bluwy Sep 2, 2024
33cfd95
update entry for PLT-1897
bluwy Sep 2, 2024
62a5b81
reorder upgrade guide with alpha.3 known entries
sarah11918 Sep 2, 2024
8d87b91
upgrade guide: add `beta` option to upgrade command
sarah11918 Sep 2, 2024
952791d
remove placeholder for cancelled PLT1776
sarah11918 Sep 2, 2024
f933c2a
upgrade guide: update for alpha3 release
sarah11918 Sep 3, 2024
cd38c87
[BETA] ci: update reference docs (#9295)
astrobot-houston Sep 3, 2024
7d9eba5
[BETA] ci: update error reference docs (#9296)
astrobot-houston Sep 3, 2024
f09d639
feat(next): better tsconfig docs (#9218)
florian-lefebvre Sep 3, 2024
1593a54
[BETA] ci: update reference docs (#9300)
astrobot-houston Sep 4, 2024
3168f0c
Merge branch 'main' into 5.0.0-beta
delucis Sep 5, 2024
89a2d19
hotfix: don’t wrap v5 beta badge in site title
delucis Sep 5, 2024
66cae0d
feat(next): context.isPrerendered (#9301)
florian-lefebvre Sep 5, 2024
2c63510
Suggest using import.meta.glob (#9181)
matthewp Sep 5, 2024
c590ad5
Remove reference where scripts are hoisted (#9288)
bluwy Sep 5, 2024
07d399c
update links for moved content
sarah11918 Sep 5, 2024
bc47afe
upgrade guide: some extra context from docs PR 9273
sarah11918 Sep 5, 2024
f1fa894
upgrade guide formatting
sarah11918 Sep 5, 2024
939b18d
feat: integrations now receive a IntegrationRouteData (#9273)
ematipico Sep 5, 2024
b93df02
update links
sarah11918 Sep 5, 2024
54e9b5b
fix international links
sarah11918 Sep 5, 2024
182b5f3
feat: astro:env stable (#9160)
florian-lefebvre Sep 6, 2024
1e98ecc
[BETA] ci: update reference docs (#9323)
astrobot-houston Sep 7, 2024
2352757
[BETA] ci: update error reference docs (#9334)
astrobot-houston Sep 7, 2024
b457a6f
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 7, 2024
7cbf9d7
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 7, 2024
889940a
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 7, 2024
e4e44ea
[BETA] ci: update error reference docs (#9343)
astrobot-houston Sep 8, 2024
4e5f0e6
Add build.client and build.server change (PLT2171)
bluwy Sep 9, 2024
8be5e69
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 9, 2024
6701bd8
fix link for beta docs
sarah11918 Sep 9, 2024
1daf38b
update breaking changes guide for alpha.5 release
sarah11918 Sep 9, 2024
b5a5dea
catch up on upgrade guide
sarah11918 Sep 9, 2024
9df5a3f
Revamp Content section 5.0 (#9328)
sarah11918 Sep 10, 2024
6203318
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 10, 2024
85e4e2f
fix some broken links
sarah11918 Sep 10, 2024
6a9a518
[BETA] ci: update error reference docs (#9373)
astrobot-houston Sep 10, 2024
2023843
[BETA] ci: update reference docs (#9372)
astrobot-houston Sep 10, 2024
e3be26c
should be rest of link fixes!
sarah11918 Sep 10, 2024
be58024
Removes mention of hybrid, rewrites rendering pages (#9339)
sarah11918 Sep 10, 2024
e4b8180
add static hybrid merge content to the upgrade guide
sarah11918 Sep 10, 2024
b11d971
reordered upgrade guide for released items
sarah11918 Sep 10, 2024
fb045cf
fix missing word!
sarah11918 Sep 10, 2024
eba2771
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 11, 2024
e441857
[BETA] ci: update reference docs (#9378)
astrobot-houston Sep 11, 2024
d3d0575
Add loader reference to the beta docs (#9374)
ascorbic Sep 11, 2024
9ed5378
Typo
ascorbic Sep 11, 2024
b56a2d4
fix a content collections link
sarah11918 Sep 11, 2024
860373e
make links pass
sarah11918 Sep 11, 2024
ebc1ed4
see if reverting helps
sarah11918 Sep 11, 2024
d1c6309
Merge branch 'main' into 5.0.0-beta
yanthomasdev Sep 11, 2024
6c01cb6
yan vs `rendering.mdx`
yanthomasdev Sep 11, 2024
583241d
yan vs `defining-collections.mdx`
yanthomasdev Sep 11, 2024
57ca906
yan vs `environment-variables.mdx`
yanthomasdev Sep 11, 2024
4a57ccf
fix unfixed typo in `markdown-content.mdx`
yanthomasdev Sep 11, 2024
f8f7df9
yan vs `on-demand-rendering.mdx`
yanthomasdev Sep 11, 2024
d8d4db9
yan vs `working-with-collections.mdx`
yanthomasdev Sep 11, 2024
3575b26
yan vs `api-reference.mdx`
yanthomasdev Sep 11, 2024
26fea24
yan vs `loader-reference.mdx`
yanthomasdev Sep 11, 2024
4729b87
fix links
sarah11918 Sep 11, 2024
bea836d
initial move of all content on to content collections page
sarah11918 Sep 11, 2024
e4e0321
link fixes
sarah11918 Sep 11, 2024
dfbd7a7
fix last link!
sarah11918 Sep 11, 2024
6215cc0
move migrating collections steps to upgrade guide
sarah11918 Sep 11, 2024
2d868c6
adds tips to markdown page
sarah11918 Sep 12, 2024
714b6d4
[BETA] ci: update error reference docs (#9382)
astrobot-houston Sep 12, 2024
7e027a1
updated legacy, deprecated, removed section of upgrade guide
sarah11918 Sep 12, 2024
48c953a
update implementation PR titles
sarah11918 Sep 12, 2024
8bc5b62
upgrade guide: created a changed defaults section
sarah11918 Sep 12, 2024
7612c74
upgrade guide: some added and placeholder ReadMore components
sarah11918 Sep 12, 2024
81a1096
Merge branch 'main' into 5.0.0-beta
delucis Sep 12, 2024
eade5a7
Remove remaining references to Lit integration (#9386)
Fryuni Sep 12, 2024
f9d38ff
upgrade guide: fix some in-page links
sarah11918 Sep 12, 2024
87bc0d6
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Sep 12, 2024
d016af6
one more link
sarah11918 Sep 12, 2024
b8ff494
just another link fix
sarah11918 Sep 12, 2024
4ab9a84
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 12, 2024
f3221be
upgrade guide: update/organize more entries
sarah11918 Sep 12, 2024
9fd2224
upgrade guide: light edits
sarah11918 Sep 12, 2024
04ae42d
feat: injectRoute PR (#9388)
florian-lefebvre Sep 12, 2024
6ee6a0b
ViewTransitions change
matthewp Sep 12, 2024
ec94a5c
Server islands (#9255)
matthewp Sep 12, 2024
168718c
fix links
sarah11918 Sep 12, 2024
356cd53
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 13, 2024
e6500f9
feat: injectRoute PR (#9399)
florian-lefebvre Sep 13, 2024
5300202
extra mention of layout frontmatter property not being supported in c…
sarah11918 Sep 13, 2024
b41b72c
update content collections API reference
sarah11918 Sep 13, 2024
ca96d18
revert and standardize Since components in Content Layer API reference
sarah11918 Sep 13, 2024
7d07355
getEntry multiple types
sarah11918 Sep 13, 2024
497a9ac
Type for loader
ascorbic Sep 13, 2024
3280963
Rename ViewTransitions to ClientRouter (#9391)
matthewp Sep 13, 2024
0f2bf99
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 13, 2024
85c8d77
[BETA] ci: update reference docs (#9401)
astrobot-houston Sep 13, 2024
e80f16a
add quick links intro section
sarah11918 Sep 13, 2024
a334def
add section for Vite, and nav bar entry for upgrade guide
sarah11918 Sep 13, 2024
2eaf022
Add changes about locals
matthewp Sep 13, 2024
5c363d2
Explain app class change
matthewp Sep 13, 2024
c4af927
yan vs `v5.mdx`
yanthomasdev Sep 13, 2024
de66672
Breaking changes pass done! Final upgrade guide complete draft.
sarah11918 Sep 13, 2024
47d9e3c
update githubURL for config reference file
sarah11918 Sep 15, 2024
f0a1b04
consistent code example
sarah11918 Sep 15, 2024
ff83cc1
update page descriptions in basics section, remove old page
sarah11918 Sep 15, 2024
b96ad80
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 15, 2024
f788e6f
[BETA] ci: update reference docs (#9409)
astrobot-houston Sep 15, 2024
378fa55
[BETA] ci: update error reference docs (#9400)
astrobot-houston Sep 15, 2024
c5a7a3c
rename translated rendering-modes files to match English
sarah11918 Sep 15, 2024
1043f3a
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Sep 15, 2024
ced9562
temp update error message for links
sarah11918 Sep 15, 2024
5a85ecd
revert removing rendering modes and renaming translation files
sarah11918 Sep 15, 2024
6c6798d
updates re: async compiledContent, no squoosh support
sarah11918 Sep 15, 2024
c13a6c1
[BETA] ci: update error reference docs (#9416)
astrobot-houston Sep 15, 2024
5fa9cb5
Update github url for 5.0 (#9419)
TheOtterlord Sep 15, 2024
935eddb
[BETA] ci: update reference docs (#9420)
astrobot-houston Sep 15, 2024
8827a16
feat(next): overriden locals note (#9414)
florian-lefebvre Sep 16, 2024
55bf938
Yan suggestion
sarah11918 Sep 16, 2024
0ede0fc
Armand suggestion
sarah11918 Sep 16, 2024
bb49767
minor uprade guide polishing
sarah11918 Sep 16, 2024
ba061cc
Add v5 guide for PRs by Erika (#9404)
Princesseuh Sep 16, 2024
994ba75
content collections updates
sarah11918 Sep 16, 2024
cb8805e
update Actions input API
sarah11918 Sep 16, 2024
6c6eecb
update link to main docs
sarah11918 Sep 16, 2024
772040b
fix all hyphens in server-rendering
sarah11918 Sep 16, 2024
afd168d
code sample line highlighting
sarah11918 Sep 16, 2024
3f169ec
update some page descriptions
sarah11918 Sep 16, 2024
f68a676
Update typescript.mdx
florian-lefebvre Sep 17, 2024
9742563
Merge branch 'main' into 5.0.0-beta
delucis Sep 17, 2024
391ecce
Remove banners
TheOtterlord Sep 17, 2024
875bdc5
[BETA] ci: update reference docs (#9428)
astrobot-houston Sep 17, 2024
51f8372
update Astro.glob section and find-replace examples
sarah11918 Sep 17, 2024
e8bef24
update link, remove prompting message to do so
sarah11918 Sep 17, 2024
e0fc890
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 17, 2024
2d7bacf
fix(v5): format `adapter-reference.mdx` (#9423)
ArmandPhilippot Sep 17, 2024
db808bc
fix link
sarah11918 Sep 17, 2024
7693ed0
remove translations of 5.0 beta banner/tips
sarah11918 Sep 17, 2024
e5494d4
add create astro commands to upgrade guide
sarah11918 Sep 18, 2024
b3dea25
Fix beta docs editLink base url (#9441)
lorenzolewis Sep 18, 2024
26521cf
Fix typo & highlighting in beta upgrade guide (#9440)
lorenzolewis Sep 18, 2024
c52977c
Revert additional button on homepage
TheOtterlord Sep 20, 2024
4a29867
Merge branch 'main' into 5.0.0-beta
sarah11918 Sep 20, 2024
25e1e40
[BETA] ci: update error reference docs (#9455)
astrobot-houston Sep 20, 2024
ca7d812
enable pagefind (#9443)
lorenzolewis Sep 20, 2024
130e371
docs(en): update v5 migrate guide and container api reference (#9445)
xsynaptic Sep 23, 2024
534de83
feat: createCodegenDir (#9495)
florian-lefebvre Sep 26, 2024
dcd0d0f
feat: update upgrade guide (#9507)
florian-lefebvre Sep 30, 2024
7c66070
[BETA] ci: update reference docs (#9518)
astrobot-houston Oct 1, 2024
12d8dfd
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 2, 2024
ce89532
feat: document decoding of params (#9497)
ematipico Oct 3, 2024
afc9555
Updates on-demand-rendering.mdx (#9552)
JusticeMatthew Oct 3, 2024
ce185e4
Update content-collections-old.mdx
sarah11918 Oct 3, 2024
6483740
remove mention of removed CCC
sarah11918 Oct 3, 2024
6e32f93
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 3, 2024
8606cf8
[BETA] ci: update reference docs (#9549)
astrobot-houston Oct 3, 2024
59550ed
Update notes about vite 6 section
bluwy Oct 4, 2024
912034d
[BETA] ci: update reference docs (#9560)
astrobot-houston Oct 4, 2024
27fb5db
[BETA] ci: update error reference docs (#9559)
astrobot-houston Oct 4, 2024
bd5d3a5
[i18nIgnore] fix(5.0.0): update Vite links to use their new domain (#…
ArmandPhilippot Oct 4, 2024
7d0a46a
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 5, 2024
3942cdf
Reference dynamic route variables in Legacy Collection examples in v5…
cdvillard Oct 7, 2024
66c2029
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 7, 2024
600b4ca
update v5 upgrade guide for legacy collections
sarah11918 Oct 7, 2024
307db45
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Oct 7, 2024
0aeda8e
[BETA] ci: update reference docs (#9570)
astrobot-houston Oct 7, 2024
a9a07b5
fix link
sarah11918 Oct 7, 2024
9e0cbc9
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Oct 7, 2024
f7c2a8d
add docs for custom file formats in file content loader
sarah11918 Oct 7, 2024
6304f5a
upgrade guide: add SourcePR tags to legacy collections entries
sarah11918 Oct 8, 2024
92f8ba7
fix: remove outdated content folder info (#9596)
ascorbic Oct 8, 2024
63bd622
rename Loader API to Content Loader API
sarah11918 Oct 8, 2024
ee8bd09
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Oct 8, 2024
cff48a5
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 8, 2024
d9ac286
fix header for links
sarah11918 Oct 8, 2024
2e567e6
[BETA] ci: update reference docs (#9645)
astrobot-houston Oct 11, 2024
b5084f4
update on-demand rendering content
sarah11918 Oct 12, 2024
522ffb3
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Oct 12, 2024
00bc5b7
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 12, 2024
651c514
add missing component to on-demand rendered
sarah11918 Oct 12, 2024
3e82854
fix links based on changed headings
sarah11918 Oct 12, 2024
c63e90b
better heading
sarah11918 Oct 12, 2024
bbe5985
update all rendering links to new single on-demand rendering page
sarah11918 Oct 12, 2024
6ce353e
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 12, 2024
b2fdcac
fix typo
sarah11918 Oct 13, 2024
5ab5084
[BETA] ci: update reference docs (#9669)
astrobot-houston Oct 14, 2024
daac853
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 14, 2024
03030f1
delete old-translations folder and update redirects
sarah11918 Oct 14, 2024
b788efe
Remove start command (#9646)
TheOtterlord Oct 15, 2024
f54349c
Merge branch 'main' into 5.0.0-beta
delucis Oct 15, 2024
e984433
feat: document new entrypoints (#9680)
ematipico Oct 15, 2024
534fe7c
Adam prendergast patch 1 (#9694)
AdamPrendergast Oct 16, 2024
5985401
fix(5.0.0): nitpicking and suggestions regarding `on-demand-rendering…
ArmandPhilippot Oct 16, 2024
015c5db
Fix typo (#9715)
kuldar Oct 17, 2024
c2124bc
Merge branch 'main' into 5.0.0-beta
delucis Oct 19, 2024
638104b
Fix incorrect prop destructuring in tutorial (#9751)
yusifsalam Oct 21, 2024
afbf7c0
feat(next): tweak i18n (#9756)
florian-lefebvre Oct 22, 2024
1a9ae34
[BETA] ci: update error reference docs (#9767)
astrobot-houston Oct 22, 2024
e16b0f2
[BETA] ci: update reference docs (#9768)
astrobot-houston Oct 22, 2024
8a4d413
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 22, 2024
697f7ef
Fix loader example in content-loader-reference (#9777)
Because789 Oct 23, 2024
781333d
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 23, 2024
8bd4759
fix link
sarah11918 Oct 23, 2024
d45589f
remove broken link
sarah11918 Oct 24, 2024
018c559
Merge branch 'main' into 5.0.0-beta
sarah11918 Oct 25, 2024
d6ecad9
add modules page for astro:env
sarah11918 Oct 25, 2024
1b637ca
fix some links, add 5.0 api-reference changes back in
sarah11918 Oct 25, 2024
0b242d3
fix more links
sarah11918 Oct 25, 2024
01d5049
Update add-content-collections.mdx (#9853)
TobeyWelch Oct 28, 2024
850deda
Merge branch 'main' into 5.0.0-beta
delucis Oct 30, 2024
d05ee7c
Add charset note md/mdx pages (#9757)
bluwy Oct 31, 2024
8184870
Document custom mode support (#9641)
bluwy Oct 31, 2024
fa98f83
feat: update Vercel imports (#9755)
ematipico Oct 31, 2024
3a208b1
fix link
sarah11918 Nov 1, 2024
0535812
update new transitions module page for ClientRouter
sarah11918 Nov 1, 2024
0900561
fix(v5): add missing import in content collection tutorial (#9950)
ArmandPhilippot Nov 11, 2024
f04e4ba
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 11, 2024
769056e
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 11, 2024
403aa7b
delete pl content guide to match English
sarah11918 Nov 11, 2024
b8dfb0c
fix links after merging in main
sarah11918 Nov 11, 2024
b3415c8
fix more links
sarah11918 Nov 11, 2024
d8c2ff9
last fix again
sarah11918 Nov 11, 2024
6245c70
Add 5.0 Actions Middleware change (#9943)
bholmesdev Nov 11, 2024
75f20c9
Revert "Add 5.0 Actions Middleware change (#9943)" (#9975)
TheOtterlord Nov 11, 2024
e4bbf97
[BETA] ci: update error reference docs (#9993)
astrobot-houston Nov 12, 2024
53b8038
typo fix
sarah11918 Nov 12, 2024
8f08548
Actions middleware (#9976)
TheOtterlord Nov 13, 2024
4d83700
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 13, 2024
a88eaed
Merge branch 'main' into 5.0.0-beta
delucis Nov 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[mdx]": {
"files.trimTrailingWhitespace": false,
}
}
File renamed without changes.
5 changes: 4 additions & 1 deletion public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/:lang/core-concepts/astro-pages /:lang/basics/astro-pages/
/:lang/core-concepts/layouts /:lang/basics/layouts/
/:lang/core-concepts/astro-syntax /:lang/basics/astro-syntax/
/:lang/core-concepts/rendering-modes /:lang/basics/rendering-modes/
/:lang/core-concepts/rendering-modes /:lang/basics/rendering/
/:lang/core-concepts/routing /:lang/guides/routing/
/:lang/core-concepts/endpoints /:lang/guides/endpoints/
/:lang/core-concepts/framework-components /:lang/guides/framework-components/
Expand All @@ -28,6 +28,9 @@
/:lang/recipes/studio /:lang/guides/astro-db/
/:lang/recipes /:lang/community-resources/content/
/:lang:/reference/api-reference/#astrocanonicalurl /:lang:/reference/api-reference/#astrourl
/:lang/basics/rendering-modes/ /:lang/basics/rendering/
/:lang/guides/server-side-rendering/ /:lang/guides/on-demand-rendering/
/:lang/guides/content/ /:lang/guides/markdown-content/

# Very old docs site redirects
# Once upon a time these URLs existed, so we try to keep them meaning something.
Expand Down
6 changes: 3 additions & 3 deletions scripts/docgen.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const STUB = ``; // fs.readFileSync('/PATH/TO/MONOREPO/astro/packages/astro/src/
const HEADER = `---
# NOTE: This file is auto-generated from 'scripts/docgen.mjs'
# Do not make edits to it directly, they will be overwritten.
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/%40types/astro.ts
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/types/public/config.ts
# Translators, please remove this note and the <DontEditWarning/> component.

title: Configuration Reference
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/%40types/astro.ts
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/types/public/config.ts
---

import Since from '~/components/Since.astro'
Expand Down Expand Up @@ -52,7 +52,7 @@ export async function run() {
const inputBuffer =
STUB ||
(await fetch(
`https://raw.githubusercontent.com/${sourceRepo}/${sourceBranch}/packages/astro/src/%40types/astro.ts`
`https://raw.githubusercontent.com/${sourceRepo}/${sourceBranch}/packages/astro/src/types/public/config.ts`
).then((r) => r.text()));

console.timeEnd(task);
Expand Down
25 changes: 25 additions & 0 deletions src/components/SourcePR.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
import { Icon } from '@astrojs/starlight/components';
const { number, title } = Astro.props
---

<div class="source">
<Icon class="icon" name="github" />
<a href=`https://github.com/withastro/astro/pull/${number}`>Implementation PR: {title} (#{number})<span><slot /></span></a>
</div>

<style>
.source {
display: flex;
gap: 0.5rem;
align-items: flex-start;
}
.icon {
--icon-size: 1.5rem;
font-size: var(--icon-size);
flex-shrink: 0;
/* Align to the middle of the first line of text. */
margin-block: calc((var(--sl-line-height) * 1rem - var(--icon-size)) / 2);
color: var(--sl-color-text-accent);
}
</style>
2 changes: 2 additions & 0 deletions src/components/starlight/SiteTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logo from '~/assets/astro-logo.svg?raw';
import docs from '~/assets/docs.svg?raw';
import type { Props } from '@astrojs/starlight/props';
import Badge from '../Badge.astro';

const main = 'https://astro.build/';
const self = '/' + (Astro.props.locale || 'en') + '/getting-started/';
Expand All @@ -10,6 +11,7 @@ const self = '/' + (Astro.props.locale || 'en') + '/getting-started/';
<span class="site-title sl-flex">
<a class="astro-logo" href={main} set:html={logo} aria-label="Astro" />
<a class="docs-logo" href={self} set:html={docs} aria-label="Docs" />
<Badge text="v5-beta" style={{ alignSelf: 'center', whiteSpace: 'nowrap' }} />
</span>

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/de/guides/cms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Einige Headless CMS, wie Storyblok, bieten eine Astro-[Integration](/de/guides/i

## Kann ich Astro ohne CMS nutzen?

Ja! Astro bietet eingebaute Möglichkeiten, [Inhalte zu erstellen](/de/guides/content/), darunter auch die Unterstützung von Markdown-Seiten.
Ja! Astro bietet eingebaute Möglichkeiten, Inhalte zu erstellen, darunter auch die Unterstützung von Markdown-Seiten.
2 changes: 1 addition & 1 deletion src/content/docs/de/guides/upgrade-to/v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ Astro v3.0 deklariert dieses Feature als veraltet und bevorzugt die Verwendung v

#### Was soll ich tun?

Um weiterhin einige Seiten in deinem Projekt als Entwürfe zu kennzeichnen, [verwende stattdessen Inhalts-Sammlungen](/de/guides/content-collections/#migrating-from-file-based-routing) und [filtere Seiten manuell aus](/de/guides/content-collections/#filtering-collection-queries), indem du die `draft: true`-Frontmatter-Eigenschaft verwendest.
Um weiterhin einige Seiten in deinem Projekt als Entwürfe zu kennzeichnen, [verwende stattdessen Inhalts-Sammlungen](/de/guides/content-collections/) und [filtere Seiten manuell aus](/de/guides/content-collections/#filtering-collection-queries), indem du die `draft: true`-Frontmatter-Eigenschaft verwendest.

### Veraltet: Rückgabe eines einfachen Objekts an Endpunkten

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/de/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ const { Content, headings, remarkPluginFrontmatter } = await entry.render();
---
```

[Siehe die Anleitungs für Inhaltssammlungen](/de/guides/content-collections/#rendering-content-to-html) für ein Anwendungsbeispiel.
[Siehe die Anleitungs für Inhaltssammlungen](/de/guides/content-collections/#rendering-body-content) für ein Anwendungsbeispiel.

## `import.meta`

Expand Down
16 changes: 11 additions & 5 deletions src/content/docs/en/basics/astro-components.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
---
title: Components
description: An intro to the .astro component syntax.
description: An introduction to Astro components.
i18nReady: true
---

**Astro components** are the basic building blocks of any Astro project. They are HTML-only templating components with no client-side runtime. You can spot an Astro component by its file extension: `.astro`.

Astro components are extremely flexible. Often, an Astro component will contain some **reusable UI on the page**, like a header or a profile card. At other times, an Astro component may contain a smaller snippet of HTML, like a collection of common `<meta>` tags that make SEO easy to work with. Astro components can even contain an entire page layout.
Astro components are extremely flexible. An Astro component can be as small as a snippet of HTML, like a collection of common `<meta>` tags that make SEO easy to work with. Components can be reusable UI elements, like a header or a profile card. Astro components can even contain an entire page layout or, when located in the special `src/pages/` folder, be an entire page itself.

The most important thing to know about Astro components is that they **don't render on the client**. They render to HTML either at build-time or on-demand using [server-side rendering (SSR)](/en/guides/server-side-rendering/). You can include JavaScript code inside of your component frontmatter, and all of it will be stripped from the final page sent to your users' browsers. The result is a faster site, with zero JavaScript footprint added by default.
The most important thing to know about Astro components is that they **don't render on the client**. They render to HTML either at build-time or on-demand. You can include JavaScript code inside of your component frontmatter, and all of it will be stripped from the final page sent to your users' browsers. The result is a faster site, with zero JavaScript footprint added by default.

When your Astro component does need client-side interactivity, you can add [standard HTML `<script>` tags](/en/guides/client-side-scripts/) or [UI Framework components](/en/guides/framework-components/#hydrating-interactive-components).
When your Astro component does need client-side interactivity, you can add [standard HTML `<script>` tags](/en/guides/client-side-scripts/) or [UI Framework components](/en/guides/framework-components/#hydrating-interactive-components) as "client islands".

For components that need to render personalized or dynamic content, you can defer their server rendering by adding a [server directive](/en/reference/directives-reference/#server-directives). These "server islands" will render their content when it is available, without delaying the entire page load.

## Component Structure

Expand Down Expand Up @@ -69,6 +70,7 @@ However, [Astro's component template syntax](/en/basics/astro-syntax/) also supp
---
// Your component script here!
import Banner from '../components/Banner.astro';
import Avatar from '../components/Avatar.astro';
import ReactPokemonComponent from '../components/ReactPokemonComponent.jsx';
const myFavoritePokemon = [/* ... */];
const { title } = Astro.props;
Expand All @@ -82,6 +84,11 @@ const { title } = Astro.props;
<!-- Use props and other variables from the component script: -->
<p>{title}</p>

<!-- Delay component rendering and provide fallback loading content: -->
<Avatar server:defer>
<svg slot="fallback" class="generic-avatar" transition:name="avatar">...</svg>
</Avatar>

<!-- Include other UI framework components with a `client:` directive to hydrate: -->
<ReactPokemonComponent client:visible />

Expand Down Expand Up @@ -371,7 +378,6 @@ import HomeLayout from '../layouts/HomeLayout.astro';
</HomeLayout>
```


## HTML Components

Astro supports importing and using `.html` files as components or placing these files within the `src/pages/` subdirectory as pages. You may want to use HTML components if you're reusing code from an existing site built without a framework, or if you want to ensure that your component has no dynamic features.
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/en/basics/astro-pages.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Pages
description: An introduction to Astro pages
description: An introduction to Astro pages.
i18nReady: true
---

Expand Down Expand Up @@ -104,7 +104,7 @@ This will build to a `404.html` page. Most [deploy services](/en/guides/deploy/)

## Custom 500 Error Page

For a custom 500 error page to show for pages that are [rendered on demand](/en/guides/server-side-rendering/#enable-on-demand-server-rendering), create the file `src/pages/500.astro`. This custom page is not available for prerendered pages and can't be prerendered.
For a custom 500 error page to show for pages that are [rendered on demand](/en/guides/on-demand-rendering/), create the file `src/pages/500.astro`. This custom page is not available for prerendered pages and can't be prerendered.

If an error occurs rendering this page, your host's default 500 error page will be shown to your visitor.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/en/basics/astro-syntax.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Astro Syntax
description: An intro to the .astro component syntax.
description: An introducton to the .astro component syntax.
i18nReady: true
---

Expand Down
8 changes: 5 additions & 3 deletions src/content/docs/en/basics/layouts.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Layouts
description: An intro to layouts, a type of Astro component that is shared between pages for common layouts.
description: An introduction to layouts in Astro.
i18nReady: true
---

Expand Down Expand Up @@ -100,7 +100,9 @@ const { title, description, publishDate, viewCount } = Astro.props;

Page layouts are especially useful for individual Markdown pages which otherwise would not have any page formatting.

Astro provides a special `layout` frontmatter property to specify which `.astro` component to use as the page layout. By default, this specified component can automatically access data from the Markdown file.
Astro provides a special `layout` frontmatter property intended for [individual `.md` files located within `src/pages/` using file-based routing](/en/guides/markdown-content/#individual-markdown-pages) to specify which `.astro` component to use as the page layout. By default, this specified component can automatically access data from the Markdown file.

This is not recognized as a special property when using [content collections](/en/guides/content-collections/) to query and render your content.

```markdown title="src/pages/page.md" {2}
---
Expand Down Expand Up @@ -183,7 +185,7 @@ A Markdown layout will have access to the following information via `Astro.props
- **`frontmatter.url`** - The same as the top-level `url` property.
- **`headings`** - A list of headings (`h1 -> h6`) in the Markdown or MDX document with associated metadata. This list follows the type: `{ depth: number; slug: string; text: string }[]`.
- **`rawContent()`** - A function that returns the raw Markdown document as a string.
- **`compiledContent()`** - A function that returns the Markdown document compiled to an HTML string.
- **`compiledContent()`** - An async function that returns the Markdown document compiled to an HTML string.

:::note
A Markdown layout will have access to all the Markdown file's [available properties](/en/guides/markdown-content/#available-properties) from `Astro.props` **with two key differences:**
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/en/basics/project-structure.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Project Structure
description: Learn how to structure a project with Astro.
description: An introducton to Astro's basic project structure.
i18nReady: true
---
import { FileTree } from '@astrojs/starlight/components';
Expand Down Expand Up @@ -74,7 +74,7 @@ This is a common convention in Astro projects, but it is not required. Feel free

### `src/content`

The `src/content/` directory is reserved to store [content collections](/en/guides/content-collections/) and an optional collections configuration file. No other files are allowed inside this folder.
The `src/content/` directory is reserved for [content collections](/en/guides/content-collections/).

### `src/layouts`

Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/en/basics/rendering-modes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ Astro's default `static` mode is a powerful, modern-feeling choice for content-h

### On-demand rendered

With [an SSR adapter](/en/guides/server-side-rendering/), Astro's other two output modes can be configured to enable **on-demand rendering of some or all of your pages, routes or API endpoints**:
With [an SSR adapter](/en/guides/on-demand-rendering/), Astro's other two output modes can be configured to enable **on-demand rendering of some or all of your pages, routes or API endpoints**:
- __`output: 'server'`__ for highly dynamic sites with most or all on-demand routes.
- __`output: 'hybrid'`__ for mostly static sites with some on-demand routes.

Since they are generated per visit, these routes can be customized for each viewer. For example, a page rendered on demand can show a logged-in user their account information or display freshly updated data without requiring a full-site rebuild. On-demand rendering on the server at request time is also known as **server-side rendering (SSR)**.

<ReadMore>Read more about [features available to you with on-demand rendering and an adapter](/en/guides/server-side-rendering/#on-demand-rendering-features), such as cookies, Response and Request objects, HTML streaming, and more.</ReadMore>
<ReadMore>Read more about [features available to you with on-demand rendering and an adapter](/en/guides/on-demand-rendering/#on-demand-rendering-features), such as cookies, Response and Request objects, HTML streaming, and more.</ReadMore>

[Consider enabling `server` or `hybrid` mode](/en/guides/server-side-rendering/#enable-on-demand-server-rendering) in your Astro project if you need the following:
[Consider enabling `server` or `hybrid` mode](/en/guides/on-demand-rendering/) in your Astro project if you need the following:

- **API endpoints**: Create specific pages that function as API endpoints for tasks like database access, authentication, and authorization while keeping sensitive data hidden from the client.

Expand All @@ -53,5 +53,5 @@ Since they are generated per visit, these routes can be customized for each view
Both `server` and `hybrid` output modes allow you to include [Astro islands](/en/concepts/islands/) for interactivity (or even entire embedded client-side rendered apps!) in your choice of [UI frameworks](/en/guides/framework-components/). With [middleware](/en/guides/middleware/) and Astro's [View Transitions API](/en/guides/view-transitions/) for animations and preserving state across route navigations, even highly interactive apps are possible.

:::tip
On demand server-rendering in Astro, especially when combined with [view transitions](/en/guides/view-transitions/), provides a true app experience without the JavaScript overhead of a client-side, single-page application.
:::
On demand server rendering in Astro, especially when combined with [view transitions](/en/guides/view-transitions/), provides a true app experience without the JavaScript overhead of a client-side, single-page application.
:::
Loading
Loading