Skip to content

Commit e034a48

Browse files
committed
chore: update dependencies and improve configuration for Tailwind and Starlight integration
1 parent a18d0ef commit e034a48

4 files changed

Lines changed: 38 additions & 54 deletions

File tree

astro.config.mjs

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
// astro.config.mjs
12
import { defineConfig } from "astro/config";
23
import starlight from "@astrojs/starlight";
34
import vue from "@astrojs/vue";
4-
import tailwind from "@astrojs/tailwind";
5-
import starlightThemeObsidian from "starlight-theme-obsidian";
5+
import tailwindcss from "@tailwindcss/vite";
66
import sitemap from "@astrojs/sitemap";
77
import path from "node:path";
8+
import starlightThemeObsidian from 'starlight-theme-obsidian';
89

910
// https://astro.build/config
1011
export default defineConfig({
1112
site: "https://www.setup.md",
1213
trailingSlash: "never",
1314
vite: {
15+
plugins: [
16+
tailwindcss(), // Tailwind 4 is correctly added here
17+
],
1418
resolve: {
1519
alias: {
1620
"@components": path.resolve("./src/components"),
@@ -22,21 +26,22 @@ export default defineConfig({
2226
}
2327
}
2428
},
29+
2530
build: {
2631
format: "file",
2732
},
33+
2834
integrations: [
2935
starlight({
36+
// ✅ CORRECTED: plugins array is inside the starlight config object
3037
plugins: [
3138
starlightThemeObsidian({
32-
graphConfig: {
33-
depth: 1,
34-
depthDirection: "both",
35-
repelForce: 500,
36-
},
39+
backlinks: false,
40+
graph: false
3741
}),
3842
],
39-
title: "setup.md",
43+
44+
title: "setup.md", // ✅ Correctly placed inside the starlight config object
4045
customCss: [
4146
'./src/styles/custom.css',
4247
'./src/fonts/font-face.css',
@@ -49,10 +54,10 @@ export default defineConfig({
4954
editLink: {
5055
baseUrl: "https://github.com/setupmd/docs/edit/v3",
5156
},
52-
social: {
53-
discord: "http://www.setup.md/discord-invite",
54-
github: "https://github.com/setupmd/docs",
55-
},
57+
social: [
58+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/setupmd' },
59+
{ icon: 'discord', label: 'Discord', href: 'http://www.setup.md/discord-invite' },
60+
],
5661
sidebar: [
5762
{
5863
label: "Project Information",
@@ -97,9 +102,8 @@ export default defineConfig({
97102
collapsed: true,
98103
},
99104
],
100-
}),
105+
}), // ✅ Correctly closing the starlight function call
101106
vue(),
102-
tailwind(),
103107
sitemap(),
104-
],
105-
});
108+
], // ✅ Correctly closing the integrations array
109+
});

package.json

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@setupmd/docs",
33
"type": "module",
4-
"version": "4.5.2",
4+
"version": "5.0.0",
55
"private": true,
66
"scripts": {
77
"dev": "astro dev",
@@ -12,21 +12,16 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/check": "^0.9.4",
15-
"@astrojs/sitemap": "^3.2.1",
16-
"@astrojs/starlight": "^0.29.2",
17-
"@astrojs/tailwind": "^5.1.2",
18-
"@astrojs/vue": "^4.5.3",
19-
"@vitejs/plugin-vue": "^5.0.4",
20-
"astro": "^4.16.14",
21-
"sharp": "^0.32.6",
22-
"starlight-theme-obsidian": "^0.0.10",
23-
"tailwindcss": "^3.3.6",
24-
"typescript": "^5.3.4",
25-
"vue": "^3.3.10"
26-
},
27-
"overrides": {
28-
"starlight-theme-obsidian": {
29-
"@astrojs/starlight": "^0.29.2"
30-
}
15+
"@astrojs/sitemap": "^3.6.0",
16+
"@astrojs/starlight": "^0.36.1",
17+
"@astrojs/vue": "^5.1.1",
18+
"@tailwindcss/vite": "^4.1.14",
19+
"@vitejs/plugin-vue": "^6.0.1",
20+
"astro": "^5.14.5",
21+
"sharp": "^0.34.4",
22+
"starlight-theme-obsidian": "^0.4.1",
23+
"tailwindcss": "^4.1.14",
24+
"typescript": "^5.4.5",
25+
"vue": "^3.5.22"
3126
}
3227
}

src/content/config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import { docsSchema } from '@astrojs/starlight/schema';
12
import { defineCollection } from 'astro:content';
23
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
34
import { pageThemeObsidianSchema } from 'starlight-theme-obsidian/schema';
45

56
export const collections = {
6-
docs: defineCollection({ schema: docsSchema({
7-
extend: pageThemeObsidianSchema
8-
}) }),
7+
docs: defineCollection({
8+
schema: docsSchema({
9+
extend: pageThemeObsidianSchema
10+
})
11+
})
912
};

src/content/docs/information/services.mdx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
1212

1313
As time has progressed we've continued to identify ways we can help server owners get up and running, setup.md has launched some additional services to help make your life easier.
1414

15-
### Asset Hosting
16-
17-
We launched a file sharing platform that can be used to share assets quickly with your communities, host resource packs for your server and even create 'link-in-bio' style pages to help bring your community together. We have temporarily suspended new user sign-ups for this service while we look to modernise it's backend to support additional capacity.
18-
19-
#### Features
20-
21-
<ul class="pl-5 list-disc">
22-
<li>100MB file upload limit</li>
23-
<li>Custom domain support <MainStatusPill info>premium</MainStatusPill></li>
24-
<li>URL Shortener</li>
25-
</ul>
26-
27-
<CardGrid>
28-
<LinkCard title="Dashboard" href="https://usercontent.smd.gg/dashboard" />
29-
<LinkCard title="Guide" href="/t/textures" />
30-
</CardGrid>
31-
32-
---
3315

3416
### Server Jar API
3517

0 commit comments

Comments
 (0)