Fix docs build

This commit is contained in:
Sascha Ißbrücker
2025-05-17 13:37:00 +02:00
parent 8debb5c5aa
commit 578680c3c1
2 changed files with 54 additions and 60 deletions

View File

@@ -1,55 +1,57 @@
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'linkding',
logo: {
src: './src/assets/logo.svg',
},
social: {
github: 'https://github.com/sissbruecker/linkding',
},
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'Installation', slug: 'installation' },
{ label: 'Options', slug: 'options' },
{ label: 'Managed Hosting', slug: 'managed-hosting' },
{ label: 'Browser Extension', slug: 'browser-extension' },
],
},
{
label: 'Guides',
items: [
{ label: 'Backups', slug: 'backups' },
{ label: 'Archiving', slug: 'archiving' },
{ label: 'Auto Tagging', slug: 'auto-tagging' },
{ label: 'Keyboard Shortcuts', slug: 'shortcuts' },
{ label: 'How To', slug: 'how-to' },
{ label: 'Troubleshooting', slug: 'troubleshooting' },
{ label: 'Admin', slug: 'admin' },
{ label: 'REST API', slug: 'api' },
],
},
{
label: 'Resources',
items: [
{ label: 'Community', slug: 'community' },
{ label: 'Acknowledgements', slug: 'acknowledgements' },
],
},
],
customCss: [
'./src/styles/custom.css',
],
editLink: {
baseUrl: 'https://github.com/sissbruecker/linkding/edit/master/docs/',
},
}),
],
integrations: [
starlight({
title: "linkding",
logo: {
src: "./src/assets/logo.svg",
},
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/sissbruecker/linkding",
},
],
sidebar: [
{
label: "Getting Started",
items: [
{ label: "Installation", slug: "installation" },
{ label: "Options", slug: "options" },
{ label: "Managed Hosting", slug: "managed-hosting" },
{ label: "Browser Extension", slug: "browser-extension" },
],
},
{
label: "Guides",
items: [
{ label: "Backups", slug: "backups" },
{ label: "Archiving", slug: "archiving" },
{ label: "Auto Tagging", slug: "auto-tagging" },
{ label: "Keyboard Shortcuts", slug: "shortcuts" },
{ label: "How To", slug: "how-to" },
{ label: "Troubleshooting", slug: "troubleshooting" },
{ label: "Admin", slug: "admin" },
{ label: "REST API", slug: "api" },
],
},
{
label: "Resources",
items: [
{ label: "Community", slug: "community" },
{ label: "Acknowledgements", slug: "acknowledgements" },
],
},
],
customCss: ["./src/styles/custom.css"],
editLink: {
baseUrl: "https://github.com/sissbruecker/linkding/edit/master/docs/",
},
}),
],
});