-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
134 lines (121 loc) · 3.59 KB
/
docusaurus.config.ts
File metadata and controls
134 lines (121 loc) · 3.59 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
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
125
126
127
128
129
130
131
132
133
134
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import rehypeShiki, { RehypeShikiOptions } from '@shikijs/rehype';
import { transformerNotationHighlight, transformerMetaHighlight } from '@shikijs/transformers';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'MCP Auth',
tagline: 'Integrate MCP Server auth with any compatible provider',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://mcp-auth.dev',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
trailingSlash: false,
i18n: {
defaultLocale: 'en',
locales: ['de', 'en', 'es', 'fr', 'ja', 'ko', 'pt-BR', 'zh-CN', 'zh-TW'],
localeConfigs:{
'zh-CN': { label: '简体中文' },
'zh-TW': { label: '繁體中文(台灣)' },
},
},
customFields: {
providerTestUrl: process.env.PROVIDER_TEST_URL || 'https://api.mcp-auth.dev/test-providers',
},
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
plugins: ['docusaurus-plugin-sass'],
scripts: [
{
src: 'https://plausible.io/js/script.outbound-links.js',
defer: true,
'data-domain': 'mcp-auth.dev',
},
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/mcp-auth/docs/tree/master/',
beforeDefaultRehypePlugins: [
// https://lachieh.github.io/docusaurus-with-shiki-rehype/docs/intro/
[
rehypeShiki,
{
themes: {
light: 'one-light',
dark: 'one-dark-pro',
},
langs: ['js', 'ts', 'jsx', 'tsx', 'bash', 'python', 'json'],
transformers: [transformerMetaHighlight(), transformerNotationHighlight()],
} satisfies RehypeShikiOptions,
],
],
},
blog: false,
theme: {
customCss: './src/css/custom.scss',
},
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
ignorePatterns: ['/tags/**'],
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'img/social-card.png',
navbar: {
title: 'MCP Auth',
logo: {
alt: 'MCP Auth logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'right',
label: 'Docs',
},
{
type: 'doc',
docId: 'tutorials/todo-manager/README',
label: 'Tutorials',
position: 'right',
},
{
to: '/provider-list',
label: 'Provider list',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
{
type: 'html',
position: 'right',
value:
'<a href="https://github.com/mcp-auth" target="_blank" rel="noopener nofollow" class="navbar__link github"><div class="icon"></div><span>GitHub</span></a>',
},
],
},
footer: {
style: 'light',
copyright: `Copyright © ${new Date().getFullYear()} MCP Auth`,
},
} satisfies Preset.ThemeConfig,
};
export default config;