Skip to content

Commit f8be2d7

Browse files
add sidebar and sample content
1 parent bfacbe8 commit f8be2d7

File tree

8 files changed

+690
-434
lines changed

8 files changed

+690
-434
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request:
6+
pull_request_target:
77
types: [opened, synchronize, reopened]
88
workflow_dispatch:
99
inputs:
@@ -16,6 +16,9 @@ name: Site deploy preview
1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest
19+
if: |
20+
github.event_name != 'pull_request_target' ||
21+
contains('MEMBER OWNER COLLABORATOR', github.event.pull_request.author_association)
1922
permissions:
2023
pull-requests: write
2124
contents: read
@@ -39,6 +42,9 @@ jobs:
3942

4043
deploy-website:
4144
runs-on: ubuntu-latest
45+
if: |
46+
github.event_name != 'pull_request_target' ||
47+
contains('MEMBER OWNER COLLABORATOR', github.event.pull_request.author_association)
4248
permissions:
4349
pull-requests: write
4450
contents: read

astro.config.mjs

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @ts-check
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
4+
import starlightSidebarTopics from "starlight-sidebar-topics";
45

56
// https://astro.build/config
67
export default defineConfig({
@@ -14,24 +15,48 @@ export default defineConfig({
1415
href: "https://github.com/FujoWebDev/community-at",
1516
},
1617
],
17-
customCss: ['./src/index.css'],
18-
sidebar: [
19-
{
20-
label: "Sociocracy",
21-
items: [
22-
// Each item here is one entry in the navigation menu.
23-
{ label: "Example Guide", slug: "sociocracy/example" },
24-
],
25-
},
26-
{
27-
label: "FujoWeb.dev & FujoGuide",
28-
autogenerate: { directory: "fujowebdev" },
29-
},
30-
{
31-
label: "GitHub",
32-
autogenerate: { directory: "github" },
33-
},
34-
]
18+
customCss: ["./src/index.css"],
19+
plugins: [
20+
starlightSidebarTopics([
21+
{
22+
label: "Sociocracy & Community",
23+
icon: "puzzle",
24+
link: "/sociocracy",
25+
items: [
26+
{
27+
label: "Example Guide",
28+
autogenerate: { directory: "sociocracy" },
29+
},
30+
],
31+
},
32+
{
33+
label: " Software & Other Projects",
34+
icon: "seti:powershell",
35+
link: "/libraries",
36+
items: [
37+
{
38+
label: "Our Libraries",
39+
autogenerate: { directory: "libraries" },
40+
},
41+
],
42+
},
43+
{
44+
label: "FujoCoded Resources",
45+
icon: "seti:db",
46+
link: "/fujowebdev",
47+
items: [
48+
{
49+
label: "Writing for FujoGuide",
50+
autogenerate: { directory: "fujowebdev" },
51+
},
52+
{
53+
label: "GitHub Resources",
54+
autogenerate: { directory: "github" },
55+
},
56+
],
57+
},
58+
]),
59+
],
3560
}),
3661
],
3762
});

0 commit comments

Comments
 (0)