Files
jabber.space/astro.config.mjs
Jabber Developer 44a7c24e64 Enhance image rendering for clearer display
- Add `image-rendering: pixelated` to ensure sharpness of images in Chromium-based browsers

Avoid using `Sharp` service since it's not configurable. It overcompresses images, reducing their quality. Preserving image quality is essential for tutorials and especially for theme gallery.
2025-08-19 06:21:08 +02:00

108 lines
2.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @ts-check
import { defineConfig, passthroughImageService } from 'astro/config';
import starlight from "@astrojs/starlight";
import startlightBlog from "starlight-blog";
import starlightScrollToTop from "starlight-scroll-to-top";
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "Jabber.Space",
defaultLocale: "root",
customCss: ["./src/styles/global.css"],
locales: {
root: {
label: "English",
lang: "en"
},
ru: {
label: "Русский",
lang: "ru"
}
},
head: [],
social: [
{
icon: "github",
label: "Gitea",
href: "https://git.jabber.space/devs/profanity/"
}
],
editLink: {
baseUrl: "https://git.jabber.space/devs/jabber.space/src/branch/master"
},
lastUpdated: true,
sidebar: [
{
label: "Getting Started",
autogenerate: { directory: "getting-started" },
translations: {
'ru-RU': 'Введение',
},
},
{
label: "Guides",
autogenerate: { directory: "guides" },
translations: {
'ru-RU': 'Инструкции',
},
},
{
label: "Contributing",
autogenerate: { directory: "contributing" },
},
{
label: "About",
autogenerate: { directory: "about" },
translations: {
'ru-RU': 'О проекте',
},
},
{
label: "Blog",
link: "/blog/",
translations: {
'ru-RU': 'Блог',
},
},
{
label: "Command Reference",
link: "/command-reference/",
translations: {
'ru-RU': 'Список команд',
},
},
{
label: "API Reference",
badge: "C",
autogenerate: { directory: "/api-reference/c/" }
},
{
label: "API Reference",
badge: "Python",
autogenerate: { directory: "/api-reference/python/" }
}
],
plugins: [
startlightBlog({
navigation: "none"
}),
starlightScrollToTop({
position: "right",
tooltipText: "Scroll to top",
showTooltip: true,
smoothScroll: true,
threshold: 20,
svgPath: "M12 4L7 9H9V16H15V9H17L12 4M10 16L12 20L14 16",
svgStrokeWidth: 1,
borderRadius: "50"
})
]
})
],
image: {
service: passthroughImageService(),
},
});