Skip to content

Commit 5d49f48

Browse files
committed
apps/docs: update starlight
1 parent 2e3d4ed commit 5d49f48

File tree

6 files changed

+31
-39
lines changed

6 files changed

+31
-39
lines changed

apps/docs/astro.config.mjs

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,26 @@
22
import { defineConfig } from 'astro/config'
33
import starlight from '@astrojs/starlight'
44

5-
// https://astro.build/config
65
export default defineConfig({
7-
site: 'https://gidragir.github.io',
6+
site: 'https://gidragir.github.io',
87
base: 'Tab-clip-manager',
9-
integrations: [
10-
starlight({
11-
title: 'My Docs',
12-
social: {
13-
github: 'https://github.com/withastro/starlight',
14-
},
15-
sidebar: [
16-
{
17-
label: 'Guides',
18-
items: [
19-
// Each item here is one entry in the navigation menu.
20-
{ label: 'Example Guide', slug: 'guides/example' },
21-
],
22-
},
23-
{
24-
label: 'Reference',
25-
autogenerate: { directory: 'reference' },
26-
},
27-
],
28-
}),
29-
],
30-
})
8+
integrations: [
9+
starlight({
10+
title: 'My Docs',
11+
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
12+
sidebar: [
13+
{
14+
label: 'Guides',
15+
items: [
16+
// Each item here is one entry in the navigation menu.
17+
{ label: 'Example Guide', slug: 'guides/example' },
18+
],
19+
},
20+
{
21+
label: 'Reference',
22+
autogenerate: { directory: 'reference' },
23+
},
24+
],
25+
}),
26+
],
27+
});

apps/docs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"sharp": "^0.34.3"
2020
},
2121
"devDependencies": {
22-
"autoprefixer": "^10.4.21",
23-
"postcss": "^8.5.6",
24-
"postcss-nesting": "^13.0.2",
2522
"typescript": "^5.8.3"
2623
}
2724
}

apps/docs/postcss.config.js

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

apps/docs/src/content/config.ts

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

apps/docs/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"extends": "astro/tsconfigs/strict"
2+
"extends": "astro/tsconfigs/strict",
3+
"include": [".astro/types.d.ts", "**/*"],
4+
"exclude": ["dist"]
35
}

0 commit comments

Comments
 (0)