robossembler.org/docusaurus.config.js

115 lines
3.2 KiB
JavaScript
Raw Normal View History

2021-04-02 14:38:59 +03:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
2021-11-26 11:51:11 +04:00
const math = require('remark-math');
const katex = require('rehype-katex');
2021-04-02 14:38:59 +03:00
module.exports = {
title: 'Robossembler',
tagline: 'Отворённая Робототехника',
2022-10-23 16:07:13 +03:00
url: 'https://robossembler.gitlab.io',
baseUrl: '/',
2021-04-02 14:38:59 +03:00
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'robossembler', // Usually your GitHub org/user name.
2022-10-23 16:07:13 +03:00
projectName: 'robossembler.gitlab.io', // Usually your repo name.
2021-04-02 14:38:59 +03:00
themeConfig: {
image: 'img/robofactory-art.jpg',
2021-04-02 14:38:59 +03:00
navbar: {
title: 'Robossembler',
logo: {
alt: 'Robossembler Logo',
src: 'img/logo.svg',
},
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Документация',
2021-04-02 14:38:59 +03:00
position: 'left',
},
{to: 'blog', label: 'Новости', position: 'left'},
2021-04-02 14:38:59 +03:00
{
href: 'https://t.me/robossembler_ru',
label: 'Telegram',
position: 'right',
2024-10-01 11:35:43 +00:00
},
{
href: 'https://gitlab.com/robossembler',
2021-05-20 12:47:35 +03:00
label: 'GitLab',
2021-04-02 14:38:59 +03:00
position: 'right',
}
],
},
footer: {
style: 'dark',
links: [
{
title: 'Документация',
2021-04-02 14:38:59 +03:00
items: [
{
label: 'Обзор репозиториев',
2021-04-02 14:38:59 +03:00
to: 'docs/',
},
],
},
{
title: 'Сообщество',
2021-04-02 14:38:59 +03:00
items: [
{
label: 'GitLab-группа',
2022-10-23 16:07:13 +03:00
href: 'https://gitlab.com/robossembler',
2021-04-02 14:38:59 +03:00
},
{
label: 'Telegram-канал',
href: 'https://t.me/robossembler_ru',
2021-04-02 14:38:59 +03:00
},
],
},
{
title: 'Подробнее',
2021-04-02 14:38:59 +03:00
items: [
{
label: 'Новости',
2021-04-02 14:38:59 +03:00
to: 'blog',
},
],
},
],
copyright: `Copyleft © ${new Date().getFullYear()} Команда Robossembler, сайт сделан при помощи Docusaurus. ООО «Робосборище», ИНН 5024227970, ОГРН 1225000134677`
2021-04-02 14:38:59 +03:00
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
2022-10-23 16:07:13 +03:00
'https://gitlab.com/robossembler/robossembler.gitlab.io/-/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
2021-11-26 11:51:11 +04:00
remarkPlugins: [math],
rehypePlugins: [katex],
2021-04-02 14:38:59 +03:00
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
2022-10-23 16:07:13 +03:00
'https://gitlab.com/robossembler/robossembler.gitlab.io/-/edit/master/',
2021-04-02 14:38:59 +03:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
2021-11-26 11:51:11 +04:00
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css',
integrity:
'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
},
],
2021-04-02 14:38:59 +03:00
};