-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocusaurus.config.ts
124 lines (117 loc) · 3.07 KB
/
docusaurus.config.ts
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import { themes as prismThemes } from 'prism-react-renderer';
const config: Config = {
title: 'Poku',
url: 'https://poku.io/',
baseUrl: '/',
organizationName: 'wellwelwel',
projectName: 'poku',
trailingSlash: false,
favicon: 'favicon.ico',
i18n: {
defaultLocale: 'en',
locales: ['en', 'pt-BR'],
localeConfigs: {
en: {
label: '🇺🇸 English',
},
'pt-BR': {
label: '🇧🇷 Português (Brasil)',
},
},
},
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
onBrokenAnchors: 'log',
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/wellwelwel/poku/tree/main/website/',
lastVersion: 'current',
versions: {
current: {
label: 'v3.x.x (Release Candidate)',
// badge: false,
},
'2.x.x': {
label: 'v2.x.x',
banner: 'unmaintained',
},
},
},
theme: {
customCss: './src/css/custom.scss',
},
blog: false,
// googleTagManager: {
// containerId: '',
// },
// gtag: {
// trackingID: '',
// anonymizeIP: true,
// },
} satisfies Preset.Options,
],
],
themeConfig: {
metadata: [
{
name: 'keywords',
content:
'Poku, PokuJS, Test Runner, Node.js, Bun, Deno, TypeScript, Parallel Runs, Sequential Runs, Assertion Errors, ESM, CJS, CLI Usage, API Usage, No Config, Documentation, GitHub, Compatibility, No Constraints, Individual Process, Lightweight, Mocha, Jest, Ava, Tap, Tape, Karma, Vitest',
},
],
image: 'img/social.png',
navbar: {
logo: {
alt: 'This is Poku',
src: 'img/silhouette-light.svg',
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
},
{
href: 'https://github.com/wellwelwel/poku',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub Repository',
},
{
href: 'https://github.com/sponsors/wellwelwel',
position: 'right',
className: 'header-sponsor-link',
'aria-label': 'GitHub Sponsor',
},
{ type: 'search', position: 'right' },
{
type: 'localeDropdown',
position: 'right',
},
],
},
prism: {
theme: prismThemes.dracula,
additionalLanguages: ['bash', 'json', 'diff'],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
algolia: {
appId: '8W3D1A9OL6',
apiKey: '7e1ef3de299364cedc6f3240f7f00063',
indexName: 'poku',
searchPagePath: false,
contextualSearch: false,
},
} satisfies Preset.ThemeConfig,
plugins: ['docusaurus-plugin-sass'],
};
export default config;