Skip to content

Commit ccbbfe1

Browse files
authored
Fix docs video paths & upgrade Starlight theme (#488)
1 parent 9e18a93 commit ccbbfe1

5 files changed

Lines changed: 186 additions & 75 deletions

File tree

docs/astro.config.mjs

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
1-
import { defineConfig } from 'astro/config';
2-
import starlight from '@astrojs/starlight';
3-
import northwesternTheme from "@nu-appdev/northwestern-starlight-theme";
1+
import { defineNorthwesternConfig } from "@nu-appdev/northwestern-starlight-theme/config";
42

5-
// https://astro.build/config
6-
export default defineConfig({
3+
export default defineNorthwesternConfig({
74
site: "https://nit-administrative-systems.github.io/dynamic-forms/",
85
base: "/dynamic-forms/",
9-
integrations: [
10-
starlight({
11-
plugins: [northwesternTheme()],
12-
title: "Dynamic Forms for Laravel",
13-
editLink: {
14-
baseUrl: "https://github.com/NIT-Administrative-Systems/dynamic-forms/edit/develop/docs/",
6+
starlight: {
7+
title: "Dynamic Forms for Laravel",
8+
editLink: {
9+
baseUrl: "https://github.com/NIT-Administrative-Systems/dynamic-forms/edit/develop/docs/",
10+
},
11+
sidebar: [
12+
{
13+
label: "Overview",
14+
link: '/'
1515
},
16-
sidebar: [
17-
{
18-
label: "Overview",
19-
link: '/'
20-
},
21-
{
22-
label: "Setup",
23-
autogenerate: { directory: "setup" },
24-
},
25-
{
26-
label: "Usage",
27-
autogenerate: { directory: "usage" },
28-
},
29-
],
30-
social: [
31-
{
32-
icon: "github",
33-
label: "GitHub",
34-
href: "https://github.com/NIT-Administrative-Systems/dynamic-forms",
35-
},
36-
],
37-
}),
38-
]
16+
{
17+
label: "Setup",
18+
autogenerate: { directory: "setup" },
19+
},
20+
{
21+
label: "Usage",
22+
autogenerate: { directory: "usage" },
23+
},
24+
],
25+
social: [
26+
{
27+
icon: "github",
28+
label: "GitHub",
29+
href: "https://github.com/NIT-Administrative-Systems/dynamic-forms",
30+
},
31+
],
32+
},
3933
});

docs/ec.config.mjs

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

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"@astrojs/starlight": "^0.38.2",
10-
"@nu-appdev/northwestern-starlight-theme": "^1.3.2",
10+
"@nu-appdev/northwestern-starlight-theme": "^1.5.0",
1111
"astro": "^6.1.2",
1212
"sharp": "^0.34.5"
1313
},

0 commit comments

Comments
 (0)