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

Merged
merged 356 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
356 commits
Select commit Hold shift + click to select a range
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
2e97957
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 15, 2024
e31eb5c
fix hook name typo
HiDeoo Nov 15, 2024
239849f
new programmatic-reference page (#10032)
sarah11918 Nov 17, 2024
a970786
Merge branch 'main' into 5.0.0-beta
delucis Nov 18, 2024
7ee2090
Merge branch 'main' into 5.0.0-beta
delucis Nov 18, 2024
d725d71
fix links from new programmatic API
sarah11918 Nov 18, 2024
9963742
remove View Transitions extend tutorial (#10033)
sarah11918 Nov 18, 2024
234ca29
Merge branch 'main' into 5.0.0-beta
yanthomasdev Nov 18, 2024
55fd46e
Merge branch 'main' into 5.0.0-beta
delucis Nov 19, 2024
3ea043a
Merge branch 'main' into 5.0.0-beta
delucis Nov 19, 2024
fc5c577
Implement tabbed sidebars (#9890)
delucis Nov 19, 2024
1f25d05
Fix incorrect reference in `mdx.mdx` file (#10065)
apatel369 Nov 20, 2024
47e0381
create new sidebar section for feature flags (#10058)
sarah11918 Nov 20, 2024
bdc26ee
Add `svg` component reference (#9911)
natemoo-re Nov 21, 2024
7b7ab74
Move content config file (#10061)
ascorbic Nov 21, 2024
2eb5e0d
[BETA] ci: update reference docs (#9994)
astrobot-houston Nov 21, 2024
c6864f6
update v5 guide with new experimental and legacy links
sarah11918 Nov 21, 2024
8656c4c
fix link
sarah11918 Nov 21, 2024
6466c12
[BETA] ci: update error reference docs (#10086)
astrobot-houston Nov 21, 2024
8b1e5c9
add responsive images as an experimental flag page (#10079)
sarah11918 Nov 21, 2024
b082c9c
content collections tutorial (#10035)
sarah11918 Nov 21, 2024
5cb38ee
streamlined install plus develop and build pages (#10060)
sarah11918 Nov 21, 2024
63e970f
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 21, 2024
dc19993
fix: original content config location
HiDeoo Nov 22, 2024
a039e65
feat(next): routes resolved hook (#10077)
florian-lefebvre Nov 22, 2024
100568a
recipe restructuring (#10093)
sarah11918 Nov 22, 2024
c5255e2
add pages missing in the sidebar
sarah11918 Nov 22, 2024
105d0e1
move rss to recipes in all languages and update links
sarah11918 Nov 22, 2024
c521b19
Update error linkget-static-paths-removed-rsshelper.mdx
sarah11918 Nov 22, 2024
f2b625e
one unified on-demand rendering page (#10095)
sarah11918 Nov 22, 2024
d52b426
shorter tip, U.S. spelling
sarah11918 Nov 22, 2024
3553820
update broken external X link
sarah11918 Nov 22, 2024
eb97806
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 22, 2024
d4f45a1
fix broken external link to X
sarah11918 Nov 22, 2024
fb8c277
fix de links
sarah11918 Nov 22, 2024
ebdf26b
[BETA] ci: update reference docs (#10091)
astrobot-houston Nov 25, 2024
900d35b
removed Node version guidance from upgrade guide as it hasn't changed
sarah11918 Nov 25, 2024
94e9051
Merge branch '5.0.0-beta' of https://github.com/withastro/docs into 5…
sarah11918 Nov 25, 2024
cf5a3c1
Fix action redirect reference (#10097)
bholmesdev Nov 25, 2024
553478c
[BETA] ci: update error reference docs (#10099)
astrobot-houston Nov 25, 2024
0315d8f
update vite 6 section
bluwy Nov 27, 2024
6be9473
update external true behaviour
bluwy Nov 27, 2024
621916c
Add content collection custom IDs section (#10109)
HiDeoo Nov 27, 2024
e6c5666
updates for IDX content (#10107)
sarah11918 Nov 27, 2024
4f46f99
Merge branch 'main' into 5.0.0-beta
sarah11918 Nov 27, 2024
1307918
remove one errant mention of 'hybrid' mode
sarah11918 Nov 29, 2024
fae1485
Merge remote-tracking branch 'origin/main' into 5.0.0-beta
sarah11918 Nov 30, 2024
377aa60
fix(v5): broken link and missing type annotations in tutorial (#10119)
ArmandPhilippot Nov 30, 2024
ae619d9
fix: make tutorial consistent with `blog-tutorial-demo` (Typescript e…
ArmandPhilippot Nov 30, 2024
af8245b
update link in error message
sarah11918 Nov 30, 2024
a22ed78
update link in error message
sarah11918 Nov 30, 2024
a072e25
fix link
sarah11918 Dec 1, 2024
da7caf9
fix link
sarah11918 Dec 1, 2024
fda65ef
fix: close gate actions middleware code block (#10124)
rvanlaarhoven Dec 1, 2024
879cd15
update some SSR wording (#10127)
sarah11918 Dec 2, 2024
2afb32c
Runtime API restructure (#10062)
sarah11918 Dec 2, 2024
aace426
redraft configuring Astro (#10063)
sarah11918 Dec 2, 2024
f2859de
Clean up v5 sidebar implementation (#10131)
delucis Dec 2, 2024
3ea0a8c
Merge branch 'main' into 5.0.0-beta
delucis Dec 2, 2024
f8e7349
minor text updates
sarah11918 Dec 3, 2024
dde3dfa
reverse upgrade guide order, env fix
sarah11918 Dec 3, 2024
ec73959
Remove / redirect added in 8b2b3eb
delucis Dec 3, 2024
8c9ec32
Remove v5 beta badge in site header added in 8e56929
delucis Dec 3, 2024
5ae75e9
Revert editLink change made in b3dea25
delucis Dec 3, 2024
beeff8d
Disable Pagefind and enable the `Search` component override changed i…
delucis Dec 3, 2024
32cd164
[upgrade guide] remove mentions of beta (#10121)
sarah11918 Dec 3, 2024
c6ea374
Clean up introduction to upgrade guide
delucis Dec 3, 2024
8a19c3f
Add link to v5 upgrade guide in banner to key pages
delucis Dec 3, 2024
44fede1
Tweak sidebar labelling
delucis Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# so to match files in multiple different paths, we also need multiple "any" arrays.
i18n:
- any: ['src/content/docs/**/*.mdx', '!src/content/docs/en/**/*']
- any: ['src/i18n/**/*', '!src/i18n/en/*']
glossary:
- any: ['src/content/docs/**/glossary.mdx']
- any: ['contributor-guides/glossary.md']
- any: ['contributor-guides/glossary.mdx']
- any: ['src/content/i18n/*', '!src/content/i18n/en.yml']
- any: ['src/content/nav/*', '!src/content/nav/en.ts']
- any: ['i18n-guides/*']
6 changes: 0 additions & 6 deletions .stackblitzrc

This file was deleted.

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,
}
}
55 changes: 0 additions & 55 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ You can install and run the project locally using [pnpm](https://pnpm.io/). Head
```shell
pnpm install

pnpm start
pnpm run dev
```

If you’re copying these instructions, remember to [configure this project as a fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork).
Expand Down
29 changes: 16 additions & 13 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import starlight from '@astrojs/starlight';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections';
import { defineConfig, sharpImageService } from 'astro/config';
import { makeLocalesConfig } from './config/locales';
import { makeSidebar } from './config/sidebar';

import rehypeSlug from 'rehype-slug';
import remarkSmartypants from 'remark-smartypants';

import { sitemap } from './integrations/sitemap';
import { starlightPluginAutolinkHeadings } from './plugins/rehype-autolink';
import { rehypeTasklistEnhancer } from './plugins/rehype-tasklist-enhancer';
import { remarkFallbackLang } from './plugins/remark-fallback-lang';
import { sidebar } from './astro.sidebar';
import { devServerFileWatcher } from './config/integrations/dev-server-file-watcher';
import { sitemap } from './config/integrations/sitemap';
import { makeLocalesConfig } from './config/locales';
import { starlightPluginAutolinkHeadings } from './config/plugins/rehype-autolink';
import { rehypeTasklistEnhancer } from './config/plugins/rehype-tasklist-enhancer';
import { remarkFallbackLang } from './config/plugins/remark-fallback-lang';

/* https://docs.netlify.com/configure-builds/environment-variables/#read-only-variables */
const NETLIFY_PREVIEW_SITE = process.env.CONTEXT !== 'production' && process.env.DEPLOY_PRIME_URL;
Expand All @@ -21,9 +20,13 @@ const site = NETLIFY_PREVIEW_SITE || 'https://docs.astro.build/';
export default defineConfig({
site,
integrations: [
devServerFileWatcher([
'./config/*', // Custom plugins and integrations
'./astro.sidebar.ts', // Sidebar configuration file
'./src/content/nav/*.ts', // Sidebar labels
]),
starlight({
title: 'Docs',
customCss: ['./src/styles/custom.css'],
expressiveCode: {
plugins: [pluginCollapsibleSections()],
},
Expand All @@ -38,22 +41,22 @@ export default defineConfig({
Pagination: './src/components/starlight/Pagination.astro',
Footer: './src/components/starlight/Footer.astro',
SiteTitle: './src/components/starlight/SiteTitle.astro',
Search: './src/components/starlight/Search.astro',
// Search: './src/components/starlight/Search.astro',
Sidebar: './src/components/starlight/Sidebar.astro',
MobileMenuFooter: './src/components/starlight/MobileMenuFooter.astro',
PageTitle: './src/components/starlight/PageTitle.astro',
},
editLink: {
baseUrl: 'https://github.com/withastro/docs/edit/main',
baseUrl: 'https://github.com/withastro/docs/edit/5.0.0-beta',
},
defaultLocale: 'en',
locales: makeLocalesConfig(),
sidebar: makeSidebar(),
sidebar,
social: {
github: 'https://github.com/withastro/astro',
discord: 'https://astro.build/chat',
},
pagefind: false,
// pagefind: false,
head: [
// Add ICO favicon fallback for Safari.
{
Expand Down
198 changes: 198 additions & 0 deletions astro.sidebar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
import type { StarlightUserConfig } from '@astrojs/starlight/types';
import { group } from './config/sidebar';

/**
* Starlight sidebar configuration object for the global site sidebar.
*
* - Top-level groups become tabs.
* - Use the `group()` utility function to define groups. This uses labels from our
* `src/content/nav/*.ts` files instead of defining labels and translations inline.
*
*/
export const sidebar = [
// Start tab
group('start', {
items: [
'getting-started',
group('start.welcome', {
items: ['concepts/why-astro', 'concepts/islands', 'tutorial/0-introduction'],
}),
group('start.newProject', {
items: ['install-and-setup', 'basics/project-structure', 'develop-and-build',],
}),
group('start.config', {
items: [
'guides/configuring-astro',
'editor-setup',
'guides/typescript',
'guides/environment-variables',
'guides/dev-toolbar',
],
}),
group('start.migrate', {
collapsed: true,
autogenerate: { directory: 'guides/migrate-to-astro' },
}),
],
}),

// Guides tab
group('guides', {
items: [
group('guides.routing', {
items: [
'basics/astro-pages',
'guides/routing',
'guides/endpoints',
'guides/middleware',
'guides/internationalization',
'guides/prefetch',
'guides/view-transitions',
],
}),
group('guides.ui', {
items: [
'basics/astro-components',
'basics/layouts',
'guides/styling',
'guides/fonts',
'guides/syntax-highlighting',
'guides/client-side-scripts',
'guides/framework-components',
],
}),
group('guides.content', {
items: [
'guides/markdown-content',
'guides/content-collections',
'guides/images',
'guides/data-fetching',
'guides/astro-db',
],
}),
group('guides.serverRendering', {
items: ['guides/on-demand-rendering', 'guides/server-islands', 'guides/actions'],
}),
group('guides.upgrade', {
items: [
'upgrade-astro',
group('guides.upgrade.major', {
collapsed: true,
autogenerate: { directory: 'guides/upgrade-to' },
}),
],
}),
'guides/troubleshooting',
group('guides.recipes', { collapsed: true, autogenerate: { directory: 'recipes' } }),
'contribute',
],
}),

// Reference tab
group('reference', {
items: [
group('reference.syntax', {
items: ['reference/astro-syntax', 'reference/directives-reference'],
}),
'reference/configuration-reference',
'reference/cli-reference',
'guides/imports',
'reference/routing-reference',
group('reference.runtime', {
items: [
'reference/api-reference',
'reference/modules/astro-actions',
'reference/modules/astro-assets',
'reference/modules/astro-content',
'reference/modules/astro-env',
'reference/modules/astro-i18n',
'reference/modules/astro-middleware',
'reference/modules/astro-transitions',
],
}),
group('reference.other', {
items: [
'reference/integrations-reference',
'reference/adapter-reference',
'reference/content-loader-reference',
'reference/image-service-reference',
'reference/dev-toolbar-app-reference',
'reference/container-reference',
'reference/programmatic-reference',
],
}),
group('reference.experimental', {
items: [
'reference/experimental-flags',
'reference/experimental-flags/responsive-images',
'reference/experimental-flags/svg',
'reference/experimental-flags/client-prerender',
'reference/experimental-flags/content-intellisense',
],
}),
'reference/legacy-flags',
'reference/error-reference',
],
}),

// Integrations tab
group('integrations', {
items: [
'guides/integrations-guide',
group('integrations.ui', {
items: [
'guides/integrations-guide/alpinejs',
'guides/integrations-guide/preact',
'guides/integrations-guide/react',
'guides/integrations-guide/solid-js',
'guides/integrations-guide/svelte',
'guides/integrations-guide/vue',
],
}),
group('integrations.adapters', {
items: [
'guides/integrations-guide/cloudflare',
'guides/integrations-guide/netlify',
'guides/integrations-guide/node',
'guides/integrations-guide/vercel',
],
}),
group('integrations.other', {
items: [
'guides/integrations-guide/db',
'guides/integrations-guide/markdoc',
'guides/integrations-guide/mdx',
'guides/integrations-guide/partytown',
'guides/integrations-guide/sitemap',
'guides/integrations-guide/tailwind',
],
}),
'reference/publish-to-npm',
],
}),

// Third-party services tab
group('thirdParty', {
items: [
group('thirdParty.deployment', {
collapsed: true,
autogenerate: { directory: 'guides/deploy' },
}),
group('thirdParty.cms', {
collapsed: true,
autogenerate: { directory: 'guides/cms' },
}),
group('thirdParty.backend', {
collapsed: true,
autogenerate: { directory: 'guides/backend' },
}),
group('thirdParty.media', {
collapsed: true,
autogenerate: { directory: 'guides/media' },
}),
'guides/ecommerce',
'guides/authentication',
'guides/testing',
],
}),
] satisfies StarlightUserConfig['sidebar'];
5 changes: 5 additions & 0 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `config/`

This directory contains code related to configuring the docs site, which is used in [`astro.config.ts`](../astro.config.ts).

Primarily these are custom Astro integrations (in [`integrations/`](./integrations/)) and plugins for remark, rehype, or Starlight (in [`plugins/`](./plugins/)). Other utilities to simplify configuring the site are also included here.
31 changes: 31 additions & 0 deletions config/integrations/dev-server-file-watcher.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { AstroIntegration } from 'astro';
import glob from 'fast-glob';

/**
* Astro integration that registers the passed paths so that saving them triggers a dev server
* restart.
*
* It also supports passing glob patterns to watch a set of files matching a specific pattern.
*
* @param paths Array of file paths relative to the project root.
*
* @example
* // astro.config.mjs
* export default {
* integrations: [
* devServerFileWatcher(["./example.js", "./src/content/demo/*.yml"]),
* ],
* }
*/
export const devServerFileWatcher = (paths: string[]) =>
({
name: 'dev-server-file-watcher',
hooks: {
async 'astro:config:setup'({ addWatchFile, config }) {
for (const path of paths) {
const files = await glob(path);
files.forEach((file) => addWatchFile(new URL(file, config.root)));
}
},
},
}) satisfies AstroIntegration;
Loading
Loading