Skip to content

Commit a1c845e

Browse files
authored
Merge pull request #510 from obytes/docs/upgrade-starlight-0.37
docs: upgrade Starlight to 0.37 and Astro to 5.17
2 parents a2734c6 + 50d457b commit a1c845e

File tree

8 files changed

+1827
-2380
lines changed

8 files changed

+1827
-2380
lines changed

docs/astro.config.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { defineConfig } from 'astro/config';
1+
import { defineConfig, passthroughImageService } from 'astro/config';
22
import starlight from '@astrojs/starlight';
3-
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers';
43
import starlightLlmsTxt from 'starlight-llms-txt';
54

65
const site = 'https://starter.obytes.com/';
@@ -24,9 +23,9 @@ export default defineConfig({
2423
components: {
2524
LastUpdated: './src/components/LastUpdated.astro',
2625
},
27-
social: {
28-
github: 'https://github.com/obytes/react-native-template-obytes',
29-
},
26+
social: [
27+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/obytes/react-native-template-obytes' },
28+
],
3029
head: [
3130
{
3231
tag: 'meta',
@@ -232,10 +231,13 @@ export default defineConfig({
232231
lastUpdated: true,
233232
}),
234233
],
235-
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
236234
image: {
237-
service: {
238-
entrypoint: 'astro/assets/services/sharp',
235+
service: passthroughImageService(),
236+
},
237+
// Prevent Vite from externalizing zod, which conflicts with the root project's zod@4
238+
vite: {
239+
ssr: {
240+
noExternal: ['zod'],
239241
},
240242
},
241243
});

docs/ec.config.mjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/starlight": "^0.31.1",
13+
"@astrojs/starlight": "^0.37.6",
1414
"@expressive-code/plugin-collapsible-sections": "^0.33.4",
1515
"@expressive-code/plugin-line-numbers": "^0.33.4",
1616
"@fontsource/ibm-plex-mono": "^5.0.8",
1717
"@fontsource/ibm-plex-serif": "^5.0.8",
18-
"astro": "^5.1.10",
18+
"astro": "^5.17.1",
1919
"hast-util-to-html": "^9.0.0",
20-
"sharp": "^0.32.3",
2120
"starlight-llms-txt": "^0.4.0"
2221
}
2322
}

docs/pnpm-lock.yaml

Lines changed: 1803 additions & 2348 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/components/LastUpdated.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
2-
import type { Props } from '@astrojs/starlight/props';
32
import Default from '@astrojs/starlight/components/LastUpdated.astro';
43
import Comments from './Comments.astro';
54
6-
const { lastUpdated } = Astro.props;
5+
const { lastUpdated } = Astro.locals.starlightRoute;
76
87
---
98

109
{
1110
lastUpdated && (
1211
<div class="container">
1312
<div class="last-updated">
14-
<Default {...Astro.props}><slot /></Default>
13+
<Default /><slot />
1514
</div>
1615
<Comments />
1716
</div>

docs/src/content.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineCollection } from 'astro:content';
2+
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
3+
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
4+
5+
export const collections = {
6+
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
7+
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
8+
};

docs/src/content/config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/src/content/docs/ci-cd/workflows-references.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ All actions are located in the `.github/actions` folder, and here is the complet
6464

6565
<CodeBlock file=".github/workflows/new-github-release.yml" />
6666

67-
### ⚙️ EAS Build QA
67+
### ⚙️ EAS Build Preview
6868

69-
<CodeBlock file=".github/workflows/eas-build-qa.yml" />
69+
<CodeBlock file=".github/workflows/eas-build-preview.yml" />
7070

7171
### ⚙️ EAS Build Prod
7272

0 commit comments

Comments
 (0)