Files
saiti-wiki/astro.config.mjs

95 lines
3.4 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: '/guides/' },
{ label: 'Механики', link: '/mechanics/' },
{ label: 'Профессии / классы / расы', link: '/professions/' },
{ label: 'Экономика', link: '/economy/' },
{ label: 'Предметы и ресурсы', link: '/items-resources/' },
{ label: 'Команды', link: '/commands/' },
{
label: 'Алкоголь',
items: [
{ label: 'Варка алкоголя', link: '/alcohol-brewing/' },
{ label: 'Рецепты напитков', link: '/alcohol-recipes/' }
]
}
]
},
{
label: 'Техническое',
items: [
{ label: 'Все IP', link: '/all-ip/' },
{ label: 'Контакты и ссылки', link: '/contacts/' }
]
},
{
label: 'Для редакторов',
items: [
{ label: 'Как редактировать wiki', link: '/editing/' },
{ label: 'Шаблон новой страницы', link: '/templates/new-page-template/' }
]
}
]
})
]
});