-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
78 lines (69 loc) · 2.02 KB
/
docusaurus.config.ts
File metadata and controls
78 lines (69 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import { navbarThemeConfig } from './src/app/config/navbar';
import { footerThemeConfig } from './src/app/config/footer';
import 'dotenv/config'
const config: Config = {
title: 'NextClient Docs',
tagline: 'Официальная документация для всех программных средств NextClient',
favicon: 'img/n21.svg',
// Set the production url of your site here
url: process.env.PRODUCTION_URL,
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.BASE_URL,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: process.env.ORGANIZATION_NAME, // Usually your GitHub org/user name.
projectName: process.env.PROJECT_NAME, // Usually your repo name.
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: 'ru',
locales: ['en', 'ru'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts'
},
blog: {
showReadingTime: true,
},
pages: {
path: './src/app/routes'
},
theme: {
customCss: [
'./src/shared/assets/styles/main.scss',
]
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'img/docusaurus-social-card.jpg',
navbar: navbarThemeConfig,
footer: footerThemeConfig,
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
magicComments: [
{
className: 'code-block-add-line',
line: 'highlight-next-line-add',
},
]
},
} satisfies Preset.ThemeConfig,
plugins: [
'docusaurus-plugin-sass'
]
};
export default config;