mirror of
https://github.com/bia-technologies/yaxunit.git
synced 2024-11-24 08:22:22 +02:00
193 lines
5.2 KiB
JavaScript
193 lines
5.2 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
/** @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: 'ru',
|
|
locales: ['ru'],
|
|
},
|
|
|
|
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: 'Заметки',
|
|
onUntruncatedBlogPosts: 'ignore'
|
|
},
|
|
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: 'features/features',
|
|
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/features',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
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: prismThemes.vsLight,
|
|
darkTheme: prismThemes.vsDark,
|
|
additionalLanguages: ['bsl', 'json'],
|
|
},
|
|
}),
|
|
markdown: {
|
|
mermaid: true,
|
|
},
|
|
themes: ['@docusaurus/theme-mermaid',
|
|
["@easyops-cn/docusaurus-search-local", {
|
|
hashed: true,
|
|
language: ["en", "ru"],
|
|
indexBlog: false,
|
|
indexDocs: true,
|
|
docsRouteBasePath: ["docs", "api", 'contributing', 'lessons'],
|
|
docsDir: ["docs", "api", 'contributing', 'lessons'],
|
|
highlightSearchTermsOnTargetPage: true,
|
|
hideSearchBarWithNoSearchContext: true,
|
|
}]],
|
|
};
|
|
|
|
module.exports = config;
|