mirror of
https://github.com/bia-technologies/yaxunit.git
synced 2024-12-03 08:45:31 +02:00
182 lines
4.8 KiB
JavaScript
182 lines
4.8 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'YAx Unit',
|
|
tagline: 'Модульные тесты для 1С - это не сложно',
|
|
favicon: 'img/logo.png',
|
|
|
|
// Set the production url of your site here
|
|
url: 'https://bia-technologies.github.io/',
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
baseUrl: '/yaxunit',
|
|
|
|
// GitHub pages deployment config.
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
organizationName: 'bia-technologies', // Usually your GitHub org/user name.
|
|
projectName: 'yaxunit', // Usually your repo name.
|
|
deploymentBranch: 'gh-pages',
|
|
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
// Even if you don't use internalization, 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: 'en',
|
|
locales: ['en'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
routeBasePath: 'docs',
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
// Please change this to your repo.
|
|
// Remove this to remove the "edit this page" links.
|
|
editUrl:
|
|
'https://github.com/bia-technologies/yaxunit/',
|
|
},
|
|
blog: {
|
|
blogTitle: 'Заметки'
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
]
|
|
],
|
|
plugins: [
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'api',
|
|
path: 'api',
|
|
routeBasePath: 'api',
|
|
sidebarPath: require.resolve('./sidebarsAPI.js'),
|
|
// ... other options
|
|
},
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'lessons',
|
|
path: 'lessons',
|
|
routeBasePath: 'lessons',
|
|
sidebarPath: require.resolve('./sidebarsLessons.js'),
|
|
// ... other options
|
|
},
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'contributing',
|
|
path: 'contributing',
|
|
routeBasePath: 'contributing',
|
|
sidebarPath: require.resolve('./sidebarsContributing.js'),
|
|
// ... other options
|
|
},
|
|
]
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
// Replace with your project's social card
|
|
navbar: {
|
|
title: 'YAx Unit',
|
|
logo: {
|
|
alt: 'YaxUnit Logo',
|
|
src: 'img/logo.png',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'doc',
|
|
docId: 'user-api/index',
|
|
position: 'left',
|
|
label: 'Описание',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'index',
|
|
docsPluginId: 'lessons',
|
|
position: 'left',
|
|
label: 'Уроки',
|
|
},
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'api',
|
|
docsPluginId: 'api',
|
|
position: 'left',
|
|
label: 'API',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'index',
|
|
docsPluginId: 'contributing',
|
|
position: 'left',
|
|
label: 'Руководство разработчика',
|
|
},
|
|
{to: 'blog', label: 'Заметки', position: 'left'},
|
|
{
|
|
href: 'https://github.com/bia-technologies/yaxunit',
|
|
label: 'bia-technologies/yaxunit',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
label: 'Tutorial',
|
|
to: '/docs/user-api',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'Telegram',
|
|
href: 'https://t.me/BIAOpenTools/12',
|
|
}
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
label: 'GitHub',
|
|
href: 'https://github.com/bia-technologies/yaxunit',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} BIA Technologies, Inc. Built with Docusaurus.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
}),
|
|
markdown: {
|
|
mermaid: true,
|
|
},
|
|
themes: ['@docusaurus/theme-mermaid'],
|
|
};
|
|
|
|
module.exports = config;
|