-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
50 lines (48 loc) · 2.07 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
50 lines (48 loc) · 2.07 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
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'envguard',
tagline: 'Zod-powered environment validation for Node.js',
favicon: 'img/favicon.ico',
url: 'https://envguard.dev',
baseUrl: '/',
organizationName: 'fixedbydev',
projectName: 'envguard-docs',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
i18n: { defaultLocale: 'en', locales: ['en'] },
presets: [
[
'classic',
{
docs: { sidebarPath: './sidebars.ts' },
blog: { showReadingTime: true },
theme: { customCss: './src/css/custom.css' },
} satisfies Preset.Options,
],
],
themeConfig: {
colorMode: { defaultMode: 'dark', disableSwitch: false, respectPrefersColorScheme: false },
navbar: {
title: 'envguard',
items: [
{ type: 'docSidebar', sidebarId: 'docs', position: 'left', label: 'Docs' },
{ to: '/blog', label: 'Blog', position: 'left' },
{ href: 'https://github.com/fixedbydev/envguard', label: 'GitHub', position: 'right' },
{ href: 'https://www.npmjs.com/package/@stacklance/envguard-core', label: 'npm', position: 'right' },
],
},
footer: {
style: 'dark',
links: [
{ title: 'Docs', items: [{ label: 'Getting Started', to: '/docs/getting-started' }, { label: 'CLI Reference', to: '/docs/cli/overview' }] },
{ title: 'Packages', items: [{ label: '@stacklance/envguard-core', href: 'https://www.npmjs.com/package/@stacklance/envguard-core' }, { label: '@stacklance/envguard-cli', href: 'https://www.npmjs.com/package/@stacklance/envguard-cli' }] },
{ title: 'More', items: [{ label: 'GitHub', href: 'https://github.com/fixedbydev/envguard' }, { label: 'Blog', to: '/blog' }] },
],
copyright: 'MIT License · Built by stacklance',
},
prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, additionalLanguages: ['bash', 'yaml'] },
} satisfies Preset.ThemeConfig,
};
export default config;