1
0
mirror of https://github.com/zerobig/swagger-1c.git synced 2025-11-27 22:38:27 +02:00
Files
swagger-1c/docs/docusaurus.config.ts
2024-11-18 00:07:18 +03:00

119 lines
3.2 KiB
TypeScript

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: 'Swagger для 1С:Предприятия 8',
tagline: 'Dinosaurs are cool',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://zerobig.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/swagger-1c',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'zerobig', // Usually your GitHub org/user name.
projectName: 'swagger-1c', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'ru',
locales: ['ru'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/zerobig/swagger-1c/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
navbar: {
title: 'Swagger для 1С:Предприятия 8',
logo: {
alt: 'Логотип',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'getting-started/index',
position: 'left',
label: 'Начало работы',
},
{
href: 'https://github.com/zerobig/swagger-1c',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Документация',
items: [
{
label: 'Начало',
to: '/docs/getting-started',
},
],
},
{
title: 'Обратная связь',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/swagger-1c',
},
{
label: 'GitHub Issues',
href: 'https://github.com/zerobig/swagger-1c/issues',
},
],
},
{
title: 'Ещё',
items: [
{
label: 'GitHub',
href: 'https://github.com/zerobig/swagger-1c',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Бушин Илья. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;