forked from llm-d/llm-d.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
375 lines (345 loc) · 15.5 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
375 lines (345 loc) · 15.5 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from "prism-react-renderer";
import remoteContentPlugins from "./remote-content/remote-content.js";
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "llm-d",
tagline:
"Open source, high-performance and scalable LLM inference - Achieve state-of-the-art inference performance on any accelerator with intelligent scheduling, KV-cache optimization, and seamless scaling.",
favicon: "img/llm-d-favicon.png",
url: "https://llm-d.ai/",
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "llm-d", // Usually your GitHub org/user name.
projectName: "llm-d.github.io", // Usually your repo name.
deploymentBranch: "gh-pages",
trailingSlash: false,
onBrokenLinks: "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: "en",
locales: ["en"],
},
// SEO: Organization structured data for rich search results
headTags: [
// Cross-app theme sync: the main site and each docs build use distinct
// localStorage keys for the color-mode preference — Docusaurus appends a
// hash of baseUrl to "theme" ("theme", "theme-23d", "theme-1a2",
// "theme-2af", …). Mirror across every theme* key so dark/light persists
// when the user navigates from one Docusaurus instance to another.
{
tagName: "script",
attributes: {},
innerHTML: `(function(){try{var keys=[],v=null;for(var i=0;i<localStorage.length;i++){var k=localStorage.key(i);if(k==='theme'||/^theme-[a-z0-9]+$/.test(k)){keys.push(k);var x=localStorage.getItem(k);if(x)v=x;}}['theme','theme-23d','theme-1a2','theme-2af'].forEach(function(k){if(keys.indexOf(k)===-1)keys.push(k);});if(v)keys.forEach(function(k){localStorage.setItem(k,v);});}catch(e){}})();`,
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "Organization",
name: "llm-d",
url: "https://llm-d.ai",
logo: "https://llm-d.ai/img/llm-d-icon.png",
description:
"Open source, Kubernetes-native LLM inference - Achieve state-of-the-art inference performance on any accelerator with intelligent scheduling, KV-cache optimization, and seamless scaling.",
sameAs: [
"https://github.com/llm-d",
"https://linkedin.com/company/llm-d",
"https://x.com/_llm_d_",
"https://bsky.app/profile/llm-d.ai",
"https://www.reddit.com/r/llm_d/",
],
}),
},
],
// Add kapa.ai AI assistant widget
scripts: [
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "1eea1a6a-a57b-48d7-a4aa-c993481daad7",
"data-project-name": "llm-d",
"data-project-color": "#9b4d9b",
"data-project-logo": "https://llm-d.ai/img/llm-d-favicon.png",
async: true,
},
],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: false,
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
blogSidebarTitle: "All Posts",
blogSidebarCount: "ALL",
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// "https://github.com/llm-d/llm-d-website.github.io/tree/main/",
// Useful options to enforce blogging best practices
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
},
theme: {
customCss: "./src/css/custom.css",
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: ["/tags/**"],
filename: "sitemap.xml",
},
}),
],
],
// Client modules - run on every page
clientModules: [
require.resolve("./src/clientModules/analytics.js"),
require.resolve("./src/clientModules/hide-kapa-widget.js"),
],
// Plugins configuration
plugins: [
// Remote content plugins (managed independently)
...remoteContentPlugins,
// Community docs as separate plugin instance
[
"@docusaurus/plugin-content-docs",
{
id: "community",
path: "community",
routeBasePath: "community",
sidebarPath: require.resolve("./sidebars.js"),
sidebarCollapsible: false,
},
],
[
require.resolve("docusaurus-lunr-search"),
{
languages: ["en"],
},
],
require.resolve("./plugins/versions-plugin"),
// Examples:
// ['@docusaurus/plugin-google-analytics', { trackingID: 'UA-XXXXXX-X' }],
// ['docusaurus-plugin-sass', {}],
// Add any other plugins you need
],
markdown: {
mermaid: true,
hooks: {
onBrokenMarkdownLinks: "warn",
onBrokenMarkdownImages: "warn",
},
},
themes: ["@docusaurus/theme-mermaid"],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Social card image for Open Graph and Twitter Cards
image: "img/llm-d-social-card.jpg",
// Additional meta tags for social media (Twitter/X, LinkedIn, Bluesky, etc.)
metadata: [
// Twitter/X specific
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:site", content: "@_llm_d_" },
// Open Graph (LinkedIn, Bluesky, Facebook, etc.)
{ property: "og:type", content: "website" },
{ property: "og:site_name", content: "llm-d" },
{ property: "og:locale", content: "en_US" },
],
// Announcement banner for v0.7 release
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
id: "llm-d-v0-8-release",
content:
'🎉 <b>llm-d 0.8 is here!</b> Multimodal, batch & flow-control graduate to production, with broader accelerator support and initial RL. <a target="_self" rel="noopener noreferrer" href="/docs/getting-started/quickstart"><b>See what\'s new →</b></a>',
backgroundColor: "#000000",
textColor: "#fff",
isCloseable: true,
},
navbar: {
// title: "My Site",
logo: {
alt: "llm-d",
src: "img/llm-d-logotype-and-icon.svg",
srcDark: "img/llm-d-logotype-and-icon.svg",
},
items: [
// docs plugin disabled locally; landing-preview uses preview/ build mounted at /docs.
// Use raw <a> (type: 'html') so the SPA <Link> wrapper can't intercept and
// cross-app navigation from /blog or /community → /docs forces a real page load.
{
type: "html",
position: "left",
value:
'<a href="/docs/getting-started" class="navbar__item navbar__link">Documentation</a>',
},
{ to: "/blog", label: "Blog", position: "left" },
{
type: "docSidebar",
sidebarId: "communitySidebar",
docsPluginId: "community",
position: "left",
label: "Community",
},
// Version dropdown uses plain <a href> links (not SPA router) so navigation
// from /blog or /community → /docs forces a real page load.
{
type: "custom-version-dropdown",
position: "left",
},
{
type: "html",
position: "right",
className: "navbar-github-stars",
value:
'<iframe src="https://ghbtns.com/github-btn.html?user=llm-d&repo=llm-d&type=star&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub Star" style="vertical-align: middle;"></iframe>',
},
{
// Plain GitHub icon (no star count). Hidden on wide screens (the star
// button above is shown); swapped in at narrow/mobile widths via CSS.
type: "html",
position: "right",
className: "navbar-github-icon",
value:
'<a href="https://github.com/llm-d/llm-d" class="navbar-github-button" target="_blank" rel="noopener noreferrer" aria-label="GitHub" title="GitHub"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .5C5.37.5 0 5.87 0 12.5c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58 0-.29-.01-1.05-.02-2.06-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.09-.75.08-.73.08-.73 1.21.09 1.84 1.24 1.84 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.67-.3-5.47-1.34-5.47-5.95 0-1.31.47-2.39 1.24-3.23-.13-.3-.54-1.53.12-3.18 0 0 1.01-.32 3.3 1.23a11.48 11.48 0 0 1 6 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.65.25 2.88.12 3.18.77.84 1.24 1.92 1.24 3.23 0 4.62-2.8 5.64-5.48 5.94.43.37.81 1.1.81 2.22 0 1.6-.02 2.89-.02 3.28 0 .32.22.7.82.58A12.01 12.01 0 0 0 24 12.5C24 5.87 18.63.5 12 .5z"></path></svg></a>',
},
{
type: "html",
position: "right",
className: "navbar-slack-item",
value:
'<a href="/slack" class="navbar-slack-button"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Slack</title><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"></path></svg><span class="slack-label">Join Slack</span></a>',
},
],
},
// Config for footer here
footer: {
style: "dark",
logo: {
alt: "llm-d Logo",
src: "img/cncf-white.png",
href: "https://cncf.io",
target: "_blank",
width: 240,
className: "footer-logo",
style: {
marginRight: "10px",
},
},
links: [
{
title: "Documentation",
items: [
{
html: '<a href="/docs/getting-started" class="footer__link-item">Getting Started</a>',
},
{
html: '<a href="/docs/architecture" class="footer__link-item">Architecture</a>',
},
{
html: '<a href="/docs/guides" class="footer__link-item">Guides</a>',
},
],
},
{
title: "Community",
items: [
{
html: '<a href="/community" class="footer__link-item">Contact us</a>',
},
{
html: '<a href="/community/contribute" class="footer__link-item">Contributing</a>',
},
{
html: '<a href="/community/code-of-conduct" class="footer__link-item">Code of Conduct</a>',
},
],
},
{
title: "More",
items: [
{
html: '<a href="/blog" class="footer__link-item">Blog</a>',
},
{
label: "Privacy Policy",
href: "https://www.redhat.com/en/about/privacy-policy",
},
],
},
{
title: "Social",
items: [
{
html: `
<div class="footer-socials" role="navigation" aria-label="Social links">
<div class="footer-socials-row">
<a href="https://github.com/llm-d/" target="_blank" rel="noreferrer noopener" aria-label="GitHub">
<img src="/img/new-social/github-mark-white.png" alt="GitHub" />
</a>
<a href="https://linkedin.com/company/llm-d" target="_blank" rel="noreferrer noopener" aria-label="LinkedIn">
<img src="/img/new-social/linkedin-mark-white.png" alt="LinkedIn" />
</a>
<a href="https://llm-d.slack.com" target="_blank" rel="noreferrer noopener" aria-label="Slack">
<img src="/img/new-social/slack-mark-white.png" alt="Slack" />
</a>
<a href="https://www.reddit.com/r/llm_d/" target="_blank" rel="noreferrer noopener" aria-label="Reddit">
<img src="/img/new-social/reddit-mark-white.png" alt="Reddit" />
</a>
<a href="https://bsky.app/profile/llm-d.ai" target="_blank" rel="noreferrer noopener" aria-label="Bluesky">
<img src="/img/new-social/bluesky-mark-white.svg" alt="Bluesky" />
</a>
<a href="https://x.com/_llm_d_" target="_blank" rel="noreferrer noopener" aria-label="X / Twitter">
<img src="/img/new-social/x-mark-white.png" alt="X / Twitter" />
</a>
<a href="https://www.youtube.com/@llm-d-project" target="_blank" rel="noreferrer noopener" aria-label="YouTube">
<img src="/img/new-social/youtube-mark-white.svg" alt="YouTube" />
</a>
</div>
<div class="footer-cncf">
<img class="footer-cncf-logo" src="/img/CNCF-logo.svg" alt="CNCF" />
<span>llm-d is a CNCF Sandbox project</span>
</div>
<div class="footer-socials-cta">
<a href="/slack" target="_self" rel="noreferrer noopener" aria-label="Join our Slack">
<span class="button-link">Join our Slack</span>
</a>
</div>
</div>
`,
},
],
},
],
copyright: `Copyright llm-d a Series of LF Projects, LLC. Apache 2.0 License.<br />\
We are a Cloud Native Computing Foundation sandbox project.<br />\
For website terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org/policies/" target="_blank" rel="noreferrer noopener">https://lfprojects.org/policies/</a>`,
},
prism: {
theme: prismThemes.vsLight,
darkTheme: prismThemes.vsDark,
additionalLanguages: ["yaml", "toml", "promql"],
},
}),
};
export default config;