From 578680c3c174c8f8d9b70356628f6707d7eafc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 17 May 2025 13:37:00 +0200 Subject: [PATCH] Fix docs build --- docs/astro.config.mjs | 102 +++++++++++++++++++------------------ docs/src/styles/custom.css | 12 +---- 2 files changed, 54 insertions(+), 60 deletions(-) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 7246f3c..f4a1bd2 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -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/", + }, + }), + ], }); diff --git a/docs/src/styles/custom.css b/docs/src/styles/custom.css index 21988f3..b7a5cfa 100644 --- a/docs/src/styles/custom.css +++ b/docs/src/styles/custom.css @@ -4,22 +4,14 @@ --sl-text-xs: var(--sl-text-sm); } +/* Colors (dark mode) */ :root, ::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-text-accent: hsl(241, 90%, 82%); } +/* Colors (light mode) */ :root[data-theme='light'], [data-theme='light'] ::backdrop { --sl-color-accent: hsl(241, 63%, 59%);