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

View File

@@ -4,22 +4,14 @@
--sl-text-xs: var(--sl-text-sm); --sl-text-xs: var(--sl-text-sm);
} }
/* Colors (dark mode) */
:root, :root,
::backdrop { ::backdrop {
/* Colors (dark mode) */
--sl-color-white: hsl(0, 0%, 97%); /* “white” */
--sl-color-gray-1: hsl(224, 20%, 94%);
--sl-color-gray-2: hsl(224, 6%, 85%);
--sl-color-gray-3: hsl(224, 6%, 70%);
--sl-color-gray-4: hsl(224, 7%, 36%);
--sl-color-gray-5: hsl(224, 10%, 23%);
--sl-color-gray-6: hsl(224, 14%, 16%);
--sl-color-black: hsl(224, 10%, 10%);
--sl-color-accent: hsl(241, 75%, 64%); --sl-color-accent: hsl(241, 75%, 64%);
--sl-color-text-accent: hsl(241, 90%, 82%); --sl-color-text-accent: hsl(241, 90%, 82%);
} }
/* Colors (light mode) */
:root[data-theme='light'], :root[data-theme='light'],
[data-theme='light'] ::backdrop { [data-theme='light'] ::backdrop {
--sl-color-accent: hsl(241, 63%, 59%); --sl-color-accent: hsl(241, 63%, 59%);