From fc78972b845b1182b90bb56f03e1df53eedb8fc6 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sat, 1 Mar 2025 23:34:42 +0300 Subject: [PATCH] (scope): [body] [footer(s)] --- docs/docusaurus.config.ts | 128 ++++++++++++++++++++------------------ 1 file changed, 66 insertions(+), 62 deletions(-) diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 758ca67..03ed198 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -1,77 +1,81 @@ -import {themes as prismThemes} from 'prism-react-renderer'; -import type {Config} from '@docusaurus/types'; -import type * as Preset from '@docusaurus/preset-classic'; +import { themes as prismThemes } from "prism-react-renderer"; +import type { Config } from "@docusaurus/types"; +import type * as Preset from "@docusaurus/preset-classic"; // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) const config: Config = { - title: 'DataRush', - tagline: 'Изучите основы анализа данных здесь!', - favicon: 'https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg', + title: "DataRush", + tagline: "Изучите основы анализа данных здесь!", + favicon: "https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg", - url: 'https://prod-team-15-2pc0i3lc.final.prodcontest.ru', - baseUrl: '/docs/', + url: "https://prod-team-15-2pc0i3lc.final.prodcontest.ru", + baseUrl: "/docs/", - organizationName: 'megazord', - projectName: 'megazord', + organizationName: "megazord", + projectName: "megazord", - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + onBrokenLinks: "throw", + onBrokenMarkdownLinks: "warn", - i18n: { - defaultLocale: 'ru', - locales: ['ru'], - }, - - presets: [ - [ - 'classic', - { - docs: {}, - theme: { - customCss: './src/css/custom.css', - }, - } satisfies Preset.Options, - ], - ], - - themeConfig: { - image: 'https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg', - navbar: { - title: 'DataRush', - logo: { - alt: 'DataRush', - src: 'https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg', - }, - items: [ - { - type: 'docSidebar', - sidebarId: 'defaultSidebar', - position: 'left', - label: 'Документация', - }, - ], + i18n: { + defaultLocale: "ru", + locales: ["ru"], }, - footer: { - style: 'dark', - links: [ - { - title: 'Документация', - items: [ + + presets: [ + [ + "classic", { - label: 'Начало', - to: '/docs/docs/intro', + docs: { + routeBasePath: "/", + }, + theme: { + customCss: "./src/css/custom.css", + }, + } satisfies Preset.Options, + ], + ], + + themeConfig: { + image: "https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg", + navbar: { + title: "DataRush", + logo: { + alt: "DataRush", + src: "https://prod-team-15-2pc0i3lc.final.prodcontest.ru/dr.svg", }, - ], + items: [ + { + type: "docSidebar", + sidebarId: "defaultSidebar", + position: "left", + label: "Документация", + }, + ], }, - ], - copyright: `Создано для Megazord ♥`, - }, - prism: { - theme: prismThemes.github, - darkTheme: prismThemes.dracula, - }, - } satisfies Preset.ThemeConfig, + footer: { + style: "dark", + links: [ + { + title: "Документация", + items: [ + { + label: "Начало", + to: "/intro", + }, + ], + }, + ], + copyright: `Создано для Megazord ♥`, + }, + prism: { + theme: prismThemes.github, + darkTheme: prismThemes.dracula, + }, + } satisfies Preset.ThemeConfig, + + staticDirectories: ["static"], }; export default config;