Moved SiteTitle.astro to a new Starlight directory and enhanced application styles across multiple CSS classes. Updated lists in .mdx files to use bullet points instead of numbers. The relocation of the SiteTitle component contributes to a more organized project structure. Changes in styles improve the application's visual appeal and readability, while the updated list format enhances content presentation.
72 lines
1.9 KiB
JavaScript
72 lines
1.9 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
import tailwind from "@astrojs/tailwind";
|
|
import vercelStatic from "@astrojs/vercel/static";
|
|
import sitemap from "@astrojs/sitemap";
|
|
import compressor from "astro-compressor";
|
|
import starlight from "@astrojs/starlight";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
|
|
site: "https://screwfast.uk",
|
|
image: {
|
|
domains: ["images.unsplash.com"],
|
|
},
|
|
prefetch: true,
|
|
integrations: [
|
|
tailwind(),
|
|
sitemap(),
|
|
starlight({
|
|
title: "ScrewFast Docs",
|
|
defaultLocale: "en",
|
|
locales: {
|
|
en: {
|
|
label: "English",
|
|
},
|
|
de: { label: "Deutsch", lang: "de" },
|
|
es: { label: "Español", lang: "es" },
|
|
fa: { label: "Persian", lang: "fa", dir: "rtl" },
|
|
fr: { label: "Français", lang: "fr" },
|
|
ja: { label: "日本語", lang: "ja" },
|
|
"zh-cn": { label: "简体中文", lang: "zh-CN" },
|
|
},
|
|
sidebar: [
|
|
{
|
|
label: "Quick Start Guides",
|
|
autogenerate: { directory: "guides" },
|
|
},
|
|
{
|
|
label: "Tools & Equipment",
|
|
autogenerate: { directory: "tools" },
|
|
},
|
|
{
|
|
label: "Construction Services",
|
|
autogenerate: { directory: "construction" },
|
|
},
|
|
{
|
|
label: "Advanced Topics",
|
|
autogenerate: { directory: "advanced" },
|
|
},
|
|
],
|
|
social: {
|
|
github: "https://github.com/mearashadowfax/ScrewFast",
|
|
},
|
|
disable404Route: true,
|
|
customCss: ["./src/styles/starlight.css"],
|
|
favicon: "/favicon.ico",
|
|
components: {
|
|
SiteTitle: "./src/components/ui/starlight/SiteTitle.astro",
|
|
},
|
|
}),
|
|
compressor({
|
|
gzip: false,
|
|
brotli: true,
|
|
}),
|
|
],
|
|
output: "static",
|
|
experimental: {
|
|
clientPrerender: true,
|
|
directRenderScript: true,
|
|
},
|
|
adapter: vercelStatic(),
|
|
});
|