|
| 1 | +import { defineConfig } from 'astro/config'; |
| 2 | +import starlight from '@astrojs/starlight'; |
| 3 | +import starlightLlmsTxt from 'starlight-llms-txt'; |
| 4 | +import { sqlquackDark, sqlquackLight } from './src/code-themes.mjs'; |
| 5 | +import { redirects, sidebar } from './src/navigation.mjs'; |
| 6 | +import { figuresIntegration } from './src/figures.mjs'; |
| 7 | + |
| 8 | +export default defineConfig({ |
| 9 | + // Placeholder: the public domain is not chosen yet. |
| 10 | + site: 'https://sqlquack.io', |
| 11 | + redirects, |
| 12 | + integrations: [ |
| 13 | + figuresIntegration(), |
| 14 | + starlight({ |
| 15 | + title: 'SQLQuack', |
| 16 | + description: 'A Snowflake SQL compiler: parse, check and translate to DuckDB, or refuse with a precise reason.', |
| 17 | + logo: { |
| 18 | + light: './src/assets/logo-light.png', |
| 19 | + dark: './src/assets/logo-dark.png', |
| 20 | + replacesTitle: true, |
| 21 | + }, |
| 22 | + favicon: '/favicon.png', |
| 23 | + head: [ |
| 24 | + { tag: 'meta', attrs: { property: 'og:image', content: 'https://sqlquack.io/assets/og-sqlquack.png' } }, |
| 25 | + { tag: 'meta', attrs: { property: 'og:image:width', content: '1200' } }, |
| 26 | + { tag: 'meta', attrs: { property: 'og:image:height', content: '630' } }, |
| 27 | + { tag: 'meta', attrs: { name: 'twitter:image', content: 'https://sqlquack.io/assets/og-sqlquack.png' } }, |
| 28 | + ], |
| 29 | + social: [ |
| 30 | + { icon: 'github', label: 'GitHub', href: 'https://github.com/sqlstack-io/sqlquack' }, |
| 31 | + ], |
| 32 | + components: { |
| 33 | + PageFrame: './src/components/PageFrame.astro', |
| 34 | + TwoColumnContent: './src/components/TwoColumnContent.astro', |
| 35 | + Header: './src/components/Header.astro', |
| 36 | + PageTitle: './src/components/PageTitle.astro', |
| 37 | + SiteTitle: './src/components/SiteTitle.astro', |
| 38 | + Pagination: './src/components/Pagination.astro', |
| 39 | + ThemeSelect: './src/components/ThemeSelect.astro', |
| 40 | + Footer: './src/components/Footer.astro', |
| 41 | + }, |
| 42 | + customCss: ['./src/styles/fonts.css', './src/styles/sqlquack.css'], |
| 43 | + expressiveCode: { |
| 44 | + themes: [sqlquackDark, sqlquackLight], |
| 45 | + defaultProps: { |
| 46 | + // Plain boxes for shell snippets, without the fake terminal title bar. |
| 47 | + overridesByLang: { 'bash,sh,shell,zsh,console,powershell': { frame: 'none' } }, |
| 48 | + }, |
| 49 | + styleOverrides: { |
| 50 | + borderRadius: '2px', |
| 51 | + borderWidth: '1px', |
| 52 | + codeFontFamily: 'var(--sl-font-mono)', |
| 53 | + codeFontSize: '13px', |
| 54 | + codeLineHeight: '1.65', |
| 55 | + uiFontFamily: 'var(--sl-font)', |
| 56 | + frames: { |
| 57 | + shadowColor: 'transparent', |
| 58 | + inlineButtonBorder: 'transparent', |
| 59 | + inlineButtonBackgroundIdleOpacity: '0', |
| 60 | + inlineButtonBackgroundHoverOrFocusOpacity: '0.08', |
| 61 | + inlineButtonForeground: 'var(--sqq-muted)', |
| 62 | + frameBoxShadowCssValue: 'none', |
| 63 | + editorTabBarBackground: 'var(--sqq-code-bg)', |
| 64 | + editorActiveTabBackground: 'var(--sqq-code-bg)', |
| 65 | + editorActiveTabIndicatorTopColor: 'var(--sqq-primary)', |
| 66 | + editorTabBarBorderBottomColor: 'var(--sqq-line)', |
| 67 | + terminalTitlebarBackground: 'var(--sqq-code-bg)', |
| 68 | + terminalTitlebarBorderBottomColor: 'var(--sqq-line)', |
| 69 | + terminalTitlebarDotsOpacity: '0.35', |
| 70 | + terminalBackground: 'var(--sqq-code-bg)', |
| 71 | + }, |
| 72 | + borderColor: 'var(--sqq-line)', |
| 73 | + }, |
| 74 | + }, |
| 75 | + sidebar, |
| 76 | + plugins: [ |
| 77 | + starlightLlmsTxt({ |
| 78 | + projectName: 'SQLQuack', |
| 79 | + description: |
| 80 | + 'SQLQuack parses Snowflake SQL, reports what Snowflake would reject with coded diagnostics, and converts it into DuckDB SQL or refuses it with a precise reason.', |
| 81 | + }), |
| 82 | + ], |
| 83 | + }), |
| 84 | + ], |
| 85 | +}); |
0 commit comments