2024-01-14 00:48:49 +02:00
|
|
|
// @ts-check
|
|
|
|
// `@type` JSDoc annotations allow editor autocompletion and type checking
|
|
|
|
// (when paired with `@ts-check`).
|
|
|
|
// There are various equivalent ways to declare your Docusaurus config.
|
|
|
|
// See: https://docusaurus.io/docs/api/docusaurus-config
|
|
|
|
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
|
|
|
title: 'Открытый Пакет Интеграций',
|
2024-03-10 21:31:37 +02:00
|
|
|
tagline: 'Набор библиотек интеграции с популярными API для 1C:Enterprise и OneScript',
|
2024-01-14 00:48:49 +02:00
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
|
|
|
|
// Set the production url of your site here
|
2024-01-28 23:55:00 +02:00
|
|
|
url: 'https://opi.neocities.org',
|
2024-01-14 00:48:49 +02:00
|
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
|
|
baseUrl: '/',
|
|
|
|
|
|
|
|
// GitHub pages deployment config.
|
|
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
|
|
organizationName: 'Bayselonarrend', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'OpenIntegrations', // 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',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
theme: {
|
|
|
|
customCss: './src/css/custom.css',
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
// Replace with your project's social card
|
|
|
|
|
2024-03-06 10:09:18 +02:00
|
|
|
colorMode: {
|
|
|
|
defaultMode: 'light',
|
|
|
|
disableSwitch: true,
|
|
|
|
respectPrefersColorScheme: false,
|
|
|
|
},
|
|
|
|
|
2024-01-14 00:48:49 +02:00
|
|
|
navbar: {
|
|
|
|
title: 'Открытый пакет интеграций',
|
|
|
|
logo: {
|
|
|
|
alt: 'OPI',
|
|
|
|
src: 'img/logo.png',
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'docSidebar',
|
|
|
|
sidebarId: 'defaultSidebar',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Описания методов',
|
|
|
|
},
|
|
|
|
{to: '/blog', label: 'Список изменений', position: 'left'},
|
|
|
|
{
|
|
|
|
href: 'https://github.com/Bayselonarrend/OpenIntegrations',
|
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
2024-03-06 10:09:18 +02:00
|
|
|
style: 'light',
|
2024-01-14 00:48:49 +02:00
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Документация',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Описания методов',
|
2024-01-28 23:55:00 +02:00
|
|
|
to: '/docs/Nachalo-raboty',
|
2024-01-14 00:48:49 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Ресурсы',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/Bayselonarrend/OpenIntegrations',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `${new Date().getFullYear()} OPI by Bayselonarrend`,
|
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
2024-03-06 10:09:18 +02:00
|
|
|
darkTheme: prismThemes.github,
|
2024-01-14 00:48:49 +02:00
|
|
|
additionalLanguages: ['json','bsl']
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
2024-03-03 22:52:05 +02:00
|
|
|
export default config;
|