robossembler.org/docusaurus.config.js

147 lines
4 KiB
JavaScript
Raw Normal View History

2021-04-02 14:38:59 +03:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
2025-02-12 12:50:28 +03:00
import tailwind from "tailwindcss";
import autoprefixer from "autoprefixer";
2021-04-02 14:38:59 +03:00
module.exports = {
title: 'Robossembler',
tagline: 'Отворённая Робототехника',
2025-01-22 16:08:36 +03:00
url: 'https://robossembler.org',
2022-10-23 16:07:13 +03:00
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,
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
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.24/dist/katex.min.css',
type: 'text/css',
2021-11-26 11:51:11 +04:00
integrity:
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
2021-11-26 11:51:11 +04:00
crossorigin: 'anonymous',
},
],
2025-02-12 12:50:28 +03:00
plugins: [
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
function () {
return {
name: "follow-symlinks",
configureWebpack() {
return {
resolve: {
// Yes, leave this on false to support symlinks.
symlinks: false,
},
};
},
};
},
],
2021-04-02 14:38:59 +03:00
};