1
0
mirror of https://github.com/ones-devguide/dev-rules.git synced 2026-04-24 03:33:20 +02:00
Files
dev-rules/docusaurus.config.js
T

143 lines
3.9 KiB
JavaScript
Raw Normal View History

2024-06-06 13:44:44 +07: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 = {
2024-06-06 20:36:17 +07:00
title: 'Гид по внутренним процессам и стандартам разработки',
2024-09-08 13:10:14 +07:00
tagline: 'Набор практик и стандартов для качественной разработки в 1С',
2024-06-06 13:44:44 +07:00
favicon: 'img/favicon.ico',
// Set the production url of your site here
2024-06-06 20:29:27 +07:00
url: 'https://razdolie.github.io/',
2024-06-06 13:44:44 +07:00
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/dev-rules',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'Razdolie', // Usually your GitHub org/user name.
projectName: 'dev-rules', // Usually your repo name.
deploymentBranch: 'gh-pages',
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: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
2024-06-06 20:29:27 +07:00
'https://github.com/razdolie/dev-rules/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
2024-06-06 13:44:44 +07:00
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
2024-06-06 14:44:49 +07:00
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
hashed: true,
indexBlog:false,
language: ["ru", "en"],
docsRouteBasePath:'/'
}),
],
],
2024-06-06 13:44:44 +07:00
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
docs:{
sidebar: {
hideable: true,
autoCollapseCategories: true
},
},
navbar: {
logo: {
2024-06-06 14:26:00 +07:00
alt: 'Раздолье',
2024-06-06 13:44:44 +07:00
src: 'img/logo.svg',
2024-06-06 14:26:00 +07:00
width: '180px',
2024-06-06 13:44:44 +07:00
},
2024-06-07 10:00:22 +07:00
items: [],
2024-06-06 13:44:44 +07:00
},
footer: {
style: 'dark',
links: [
{
2024-06-06 14:32:55 +07:00
title: 'Основное',
2024-06-06 13:44:44 +07:00
items: [
{
2024-06-06 14:32:55 +07:00
label: 'razdolie.ru',
href: 'https://razdolie.ru/',
2024-06-06 13:44:44 +07:00
},
2024-06-07 10:00:22 +07:00
{
label: 'GitHub',
href: 'https://github.com/razdolie/',
},
2024-06-06 13:44:44 +07:00
],
},
{
2024-06-06 14:32:55 +07:00
title: 'Сообщество',
2024-06-06 13:44:44 +07:00
items: [
{
2024-06-06 14:32:55 +07:00
label: 'Infostart',
href: 'https://infostart.ru/profile/335686/',
2024-06-06 13:44:44 +07:00
},
{
2024-06-06 14:32:55 +07:00
label: 'Youtube',
href: 'https://www.youtube.com/@vcrazdolie/featured',
2024-06-06 13:44:44 +07:00
},
{
2024-06-06 14:32:55 +07:00
label: 'VK',
href: 'https://vk.com/vcrazdolie',
2024-06-06 13:44:44 +07:00
},
],
},
{
2024-06-06 14:32:55 +07:00
title: 'Еще',
2024-06-06 13:44:44 +07:00
items: [
{
2024-06-06 14:32:55 +07:00
label: 'Вакансии',
2024-06-22 15:41:45 +07:00
href: 'https://vk.cc/cxPWEC',
2024-06-06 13:44:44 +07:00
},
],
},
],
2024-06-06 14:26:00 +07:00
copyright: `Copyright © ${new Date().getFullYear()} Razdolie`,
2024-06-06 13:44:44 +07:00
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;