Skip to content

Commit 46bec77

Browse files
authored
Merge pull request #119 from dusk-network/docs/starlight-unblock
Unblock Starlight upgrades + simplify navigation
2 parents 41800ad + 45f1361 commit 46bec77

18 files changed

Lines changed: 2835 additions & 3727 deletions

astro.config.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from "astro/config";
22
import starlight from "@astrojs/starlight";
33
import remarkMath from 'remark-math';
44
import rehypeMathjax from 'rehype-mathjax';
5-
import defaultSidebar from "./src/sidebars/defaultSidebar";
5+
import siteSidebar from "./src/sidebars/siteSidebar";
66
import starlightLinksValidator from "starlight-links-validator";
77

88
const googleAnalyticsId = 'G-63RJYNDBL1';
@@ -34,32 +34,29 @@ export default defineConfig({
3434
},
3535
integrations: [
3636
starlight({
37-
title: "DOCUMENTATION",
37+
title: "DOCS",
3838
favicon: "/favicon.ico",
3939
logo: {
4040
light: "./src/assets/logo-light.svg",
4141
dark: "./src/assets/logo-dark.svg",
4242
},
43-
components: {
44-
PageFrame: "./src/components/PageFrame.astro",
45-
Header: "./src/components/Header.astro",
46-
ContentPanel: "./src/components/ContentPanel.astro",
47-
Sidebar: './src/overrides/Sidebar.astro',
48-
SiteTitle: './src/overrides/SiteTitle.astro',
49-
},
50-
social: {
51-
github: "https://github.com/dusk-network",
52-
"x.com": "https://x.com/duskfoundation",
53-
discord: "https://discord.com/invite/dusk-official",
54-
linkedin: "https://www.linkedin.com/company/dusknetwork/",
55-
telegram: "https://t.me/DuskNetwork",
56-
youtube: "https://www.youtube.com/c/DuskNetwork",
57-
reddit: "https://www.reddit.com/r/dusknetwork",
58-
},
43+
social: [
44+
{ icon: "github", label: "GitHub", href: "https://github.com/dusk-network" },
45+
{ icon: "x.com", label: "X", href: "https://x.com/duskfoundation" },
46+
{ icon: "discord", label: "Discord", href: "https://discord.com/invite/dusk-official" },
47+
{
48+
icon: "linkedin",
49+
label: "LinkedIn",
50+
href: "https://www.linkedin.com/company/dusknetwork/",
51+
},
52+
{ icon: "telegram", label: "Telegram", href: "https://t.me/DuskNetwork" },
53+
{ icon: "youtube", label: "YouTube", href: "https://www.youtube.com/c/DuskNetwork" },
54+
{ icon: "reddit", label: "Reddit", href: "https://www.reddit.com/r/dusknetwork" },
55+
],
5956
customCss: ["./src/fonts/font-face.css", "./src/styles/custom.css"],
6057
pagination: true,
6158
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4 },
62-
sidebar: defaultSidebar,
59+
sidebar: siteSidebar,
6360
plugins: [starlightLinksValidator()],
6461
head: [
6562
// Adding google analytics

0 commit comments

Comments
 (0)