Skip to content

Commit 843a2eb

Browse files
authored
Merge pull request #9 from LittleOddBoy/migrate/starlight-tw-theme
Migrate to Starlight's Tailwind template
2 parents 273097c + e3385cf commit 843a2eb

28 files changed

+2127
-4886
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# build output
22
dist/
3-
43
# generated types
54
.astro/
65

@@ -16,7 +15,12 @@ pnpm-debug.log*
1615
# macOS-specific files
1716
.DS_Store
1817

19-
# jetbrains setting folder
18+
# JetBrains setting folder
2019
.idea/
2120

22-
.vscode
21+
# environment variables
22+
.env
23+
.env.production
24+
25+
# VS code setting folder
26+
.vscode/

astro.config.mjs

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config'
2+
import { defineConfig } from "astro/config";
3+
import starlight from "@astrojs/starlight";
4+
import tailwind from "@astrojs/tailwind";
5+
36
// https://astro.build/config
47
export default defineConfig({
5-
site: 'https://glandjs.github.io/docs',
6-
base: '/docs/',
7-
})
8+
site: "https://glandjs.github.io/docs",
9+
base: "/docs/",
10+
integrations: [
11+
starlight({
12+
expressiveCode: {
13+
themes: ["vesper"],
14+
},
15+
title: "Gland",
16+
social: {
17+
github: "https://github.com/glandjs/gland",
18+
},
19+
sidebar: [
20+
{
21+
label: "Guides",
22+
items: [{ label: "Example Guide", slug: "guides/example" }],
23+
},
24+
{
25+
label: "Reference",
26+
autogenerate: { directory: "reference" },
27+
},
28+
],
29+
customCss: ["./src/tailwind.css"],
30+
}),
31+
tailwind({ applyBaseStyles: false }),
32+
],
33+
});

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@glandjs/docs",
3+
"description": "The official documentation for the Gland frameword",
4+
"type": "module",
35
"version": "1.0.0",
4-
"description": "Official documentation site for the Gland framework.",
56
"author": "Mahdi",
67
"license": "MIT",
78
"repository": {
@@ -12,18 +13,19 @@
1213
"url": "https://github.com/glandjs/docs/issues"
1314
},
1415
"homepage": "https://glandjs.github.io/docs/",
15-
"type": "module",
1616
"scripts": {
17-
"dev": "pnpm tailwind:build & astro dev",
17+
"dev": "astro dev",
18+
"start": "astro dev",
1819
"build": "astro build",
1920
"preview": "astro preview",
20-
"astro": "astro",
21-
"start": "astro dev",
22-
"tailwind:build": "tailwindcss -i ./src/styles/global.css -o ./public/global.css"
21+
"astro": "astro"
2322
},
2423
"dependencies": {
25-
"astro": "^5.5.5",
26-
"tailwindcss": "^3.4.17"
27-
},
28-
"packageManager": "pnpm@9.15.4"
24+
"@astrojs/starlight": "^0.32.5",
25+
"@astrojs/starlight-tailwind": "^3.0.1",
26+
"@astrojs/tailwind": "^5.1.4",
27+
"astro": "^5.5.3",
28+
"sharp": "^0.32.5",
29+
"tailwindcss": "^3.4.4"
30+
}
2931
}

0 commit comments

Comments
 (0)