-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
198 lines (196 loc) · 6.16 KB
/
docusaurus.config.js
File metadata and controls
198 lines (196 loc) · 6.16 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
const { ssrTemplate } = require('../config/ssrTemplate');
module.exports = {
title: 'Apache APISIX',
tagline:
'APISIX is a dynamic, high-performance API Gateway with features like load balancing, canary release, authentication, and observability. As an AI Gateway, it enables AI proxying, LLM load balancing, retries, fallbacks, token-based rate limiting, and security to enhance AI agent efficiency and reliability.',
url: 'https://apisix.apache.org',
baseUrl: '/',
trailingSlash: true,
organizationName: 'Apache',
projectName: 'apisix-website',
favicon: 'https://static.apiseven.com/202202/favicon.png',
customFields: {
tagline2:
'Apache APISIX provides rich traffic management features such as load balancing, dynamic upstream, canary release, circuit breaking, authentication, observability, and more.',
showcases: require('./static/data/showcases.json'),
events: {
en: require('./static/data/events.json'),
zh: require('./static/data/events.zh.json'),
},
repoUrl: 'https://github.com/apache/apisix',
docsUrl: '',
docs: require('../config/docs.js'),
downloads: require('../config/downloads.js'),
team: require('../config/team.js'),
plugins: require('./static/data/plugins.json'),
allRepos: [
'apache/apisix',
'apache/apisix-dashboard',
'apache/apisix-website',
'apache/apisix-docker',
'apache/apisix-ingress-controller',
'apache/apisix-helm-chart',
'apache/apisix-control-plane',
'apache/apisix-java-plugin-runner',
'apache/apisix-go-plugin-runner',
'apache/apisix-python-plugin-runner',
],
},
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh'],
localeConfigs: {
en: {
label: 'English',
},
zh: {
label: '简体中文',
},
},
},
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'warn',
noIndex: false,
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs/general',
routeBasePath: '/docs/general',
sidebarPath: require.resolve('./docs/general/sidebars.json'),
editUrl({ docPath }) {
return `https://github.com/apache/apisix-website/edit/master/website/docs/general/${docPath}`;
},
},
blog: false,
theme: {
customCss: require.resolve('./src/css/customTheme.scss'),
},
sitemap: {
changefreq: 'daily',
priority: 0.5,
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-blog',
{
id: 'events',
routeBasePath: 'events',
path: 'events',
},
],
[
'@docusaurus/plugin-content-blog',
{
id: 'articles',
routeBasePath: 'articles',
path: 'articles',
blogSidebarCount: 0,
blogTitle: 'Article',
},
],
[
'@docusaurus/plugin-content-blog',
{
id: 'learning-center',
routeBasePath: 'learning-center',
path: 'learning-center',
blogSidebarCount: 'ALL',
blogSidebarTitle: 'Learning Center',
blogTitle: 'Learning Center',
showReadingTime: true,
},
],
['docusaurus-plugin-sass', {}],
require.resolve('../config/schema-org'),
require.resolve('../config/hreflang'),
],
themeConfig: {
navbar: {
hideOnScroll: true,
title: 'Apache APISIX®',
logo: {
src: 'img/logo2.svg',
},
items: require('../config/navbar.js'),
},
hideableSidebar: true,
announcementBar: {
id: 'query',
backgroundColor: '#e8433e',
textColor: 'white',
content:
'\u{1F914} Introducing APISIX AI Gateway – Built for LLMs and AI workloads. <a target="_blank" rel="noopener noreferrer" href="/ai-gateway/"> Learn More</a>',
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
defaultLanguage: 'bash',
},
algolia: {
appId: '38VC84A2WJ',
apiKey: '73248b6e5908d49bb7986c4aef5fd30d',
indexName: 'apache_apisix',
contextualSearch: true,
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: false,
},
image: 'https://static.apiseven.com/202202/apache-apisix.png',
metadatas: [
{
name: 'description',
content: 'APISIX is a dynamic, high-performance API Gateway with features like load balancing, canary release, authentication, and observability. As an AI Gateway, it enables AI proxying, LLM load balancing, retries, fallbacks, token-based rate limiting, and security to enhance AI agent efficiency and reliability.',
},
{
name: 'robots',
content: 'index,follow',
},
{
name: 'twitter:card',
content: 'summary_large_image',
},
{
name: 'twitter:site',
content: '@apacheapisix',
},
{
property: 'og:site_name',
content: 'Apache APISIX',
},
{
property: 'og:type',
content: 'website',
},
{
property: 'og:image',
content: 'https://static.apiseven.com/202202/apache-apisix.png',
},
],
},
scripts: [
{
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
'data-website-id': '24b59d9a-682e-4c3d-9e83-bf2ee85cdc19',
'data-project-name': 'APISIX',
'data-project-color': '#E8442E',
'data-project-logo': 'https://static.apiseven.com/202202/apache-apisix.png',
'data-modal-disclaimer': 'This is a custom LLM for APISIX with access to all developer documentation, GitHub issues and discussions.',
'data-modal-example-questions': 'How to set up canary release in APISIX?,How to develop a custom APISIX plugin?,How to use custom NGINX configuration in APISIX?,How to configure mTLS between clients and APISIX?,How to only allow a specific APISIX consumer to access special services or routes?',
async: true,
},
],
stylesheets: [],
/**
* We need to check if we build site for preview env,
* or preview site will load static assets from the asf-site branch.
* See ssrTemplate -> jsDelivr
*/
ssrTemplate,
};