Files
saiti-wiki/astro.config.mjs
tolst c38d538f93 Update story description and enhance sidebar styles
- Revised the story section description to reflect the server's narrative.
- Removed placeholder text and added a prompt for content creation.
- Improved sidebar link styles for better visibility and interaction.
- Added hover effects and styles for sections with sub-items in the table of contents.
- Introduced new styles for alcohol and contact link cards for consistent design.
- Enhanced map call-to-action button with new styles and hover effects.
2026-04-21 12:44:22 +03:00

92 lines
3.1 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.
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
site: 'https://wiki.example.com',
vite: {
server: {
// Quick Tunnel генерирует новый поддомен при каждом запуске.
// Разрешаем любые хосты, чтобы не ловить блокировку Host header.
allowedHosts: true
},
preview: {
allowedHosts: true
}
},
integrations: [
starlight({
title: 'ParaBox',
description:
'Премиальный wiki-портал Minecraft-сервера: лор, механики, экономика и гайды.',
locales: {
root: {
label: 'Русский',
lang: 'ru'
}
},
tagline: 'Нереалистичный архив игрового мира',
customCss: ['/src/styles/wiki-egames.css'],
lastUpdated: true,
disable404Route: true,
editLink: {
// Замени URL на свой репозиторий, чтобы кнопка "Редактировать" вела в нужное место.
baseUrl: 'https://github.com/your-org/parabox/edit/main/'
},
social: [
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/NZEYWSrK' },
{ icon: 'telegram', label: 'Telegram', href: 'https://t.me/RPCM_MINE_BOT' }
],
components: {
Header: './src/components/WikiHeader.astro',
EditLink: './src/components/WikiEditLink.astro'
},
sidebar: [
{
label: 'О сервере',
items: [
{ label: 'Главная', link: '/' },
{ label: 'Сюжет', link: '/story/' },
{ label: 'Начало игры', link: '/getting-started/' }
]
},
{
label: 'Введение',
items: [
{ label: 'Часто задаваемые вопросы', link: '/faq/' },
{ label: 'Правила', link: '/rules/' }
]
},
{
label: 'Игровые системы',
items: [
{ label: 'Общее', link: '/general/' },
{ label: 'Города', link: '/cities/' },
{
label: 'Алкоголь',
items: [
{ label: 'Как варить', link: '/alcohol-brewing/' },
{ label: 'Рецепты напитков', link: '/alcohol-recipes/' }
]
},
{ label: 'EasyArmorStands', link: '/easyarmorstands/' }
]
},
{
label: 'Техническое',
items: [
{ label: 'Все IP', link: '/all-ip/' },
{ label: 'Контакты и ссылки', link: '/contacts/' }
]
},
{
label: 'Для редакторов',
items: [
{ label: 'Как редактировать wiki', link: '/editing/' },
{ label: 'Шаблон новой страницы', link: '/templates/new-page-template/' }
]
}
]
})
]
});