-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
176 lines (174 loc) · 9.56 KB
/
astro.config.mjs
File metadata and controls
176 lines (174 loc) · 9.56 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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
site: 'https://flowmcp.github.io',
integrations: [
starlight({
title: 'FlowMCP',
favicon: '/favicon.png',
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
de: {
label: 'Deutsch',
lang: 'de',
},
},
customCss: ['./src/styles/custom.css'],
expressiveCode: {
themes: ['github-dark'],
},
plugins: [],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/flowmcp' },
],
head: [
{
tag: 'script',
attrs: { defer: true },
content: `
function addHeaderLinks() {
var rg = document.querySelector('.right-group');
if (!rg) return;
var path = window.location.pathname;
var isDE = path.indexOf('/de/') === 0 || path === '/de';
var prefix = isDE ? '/de' : '';
var baseStyle = 'font-weight:600!important;text-decoration:none!important;margin-right:0.5rem!important;';
var activeColor = 'color:var(--sl-color-text-accent)!important;';
var inactiveColor = 'color:var(--sl-color-gray-2)!important;';
var isHome = path === '/' || path === '/de' || path === '/de/';
var isAbout = path.indexOf('/introduction') !== -1 || path.indexOf('/basics') !== -1;
var isDocs = path.indexOf('/docs/') !== -1;
var isRoadmap = path.indexOf('/roadmap') !== -1;
var links = [
{ text: 'About', href: prefix + '/introduction/about/', active: isAbout },
{ text: 'Docs', href: prefix + '/docs/getting-started/what-is-flowmcp/', active: isDocs },
{ text: 'Roadmap', href: prefix + '/roadmap/overview/', active: isRoadmap }
];
links.forEach(function(link) {
var sel = 'a.header-nav-' + link.text.toLowerCase();
var el = rg.querySelector(sel);
if (!el) {
el = document.createElement('a');
el.textContent = link.text;
el.className = 'header-nav-link header-nav-' + link.text.toLowerCase();
rg.appendChild(el);
}
el.href = link.href;
el.style.cssText = baseStyle + (link.active ? activeColor : inactiveColor);
});
}
document.addEventListener('DOMContentLoaded', function() { addHeaderLinks(); });
document.addEventListener('astro:page-load', function() { addHeaderLinks(); });
`,
},
],
sidebar: [
{
label: 'Introduction',
translations: { de: 'Einfuehrung' },
items: [
{ label: 'About', translations: { de: 'Ueber FlowMCP' }, slug: 'introduction/about' },
{ label: 'Why We Do This', translations: { de: 'Warum wir das machen' }, slug: 'introduction/why' },
{ label: 'Use Cases', translations: { de: 'Anwendungsfaelle' }, slug: 'introduction/use-cases' },
{ label: 'FAQ', translations: { de: 'Haeufige Fragen' }, slug: 'introduction/faq' },
{ label: 'For LLMs', translations: { de: 'Fuer LLMs' }, slug: 'introduction/for-llms' },
],
},
{
label: 'Basics',
translations: { de: 'Grundlagen' },
items: [
{ label: 'Schemas and Tools', translations: { de: 'Schemas und Tools' }, slug: 'basics/schemas-and-tools' },
{ label: 'Schema Catalog', translations: { de: 'Schema-Katalog' }, slug: 'basics/schema-catalog' },
{ label: 'Agents and Architectures', translations: { de: 'Agents und Architekturen' }, slug: 'basics/agents' },
{ label: 'Clients and Compatibility', translations: { de: 'Clients und Kompatibilitaet' }, slug: 'basics/clients' },
],
},
{
label: 'Roadmap',
items: [
{ label: 'Overview', translations: { de: 'Uebersicht' }, slug: 'roadmap/overview' },
{ label: 'Integration', slug: 'roadmap/integration' },
{ label: 'Community Hub', slug: 'roadmap/community' },
{ label: 'Team', slug: 'roadmap/team' },
],
},
{
label: 'Docs',
translations: { de: 'Dokumentation' },
collapsed: true,
items: [
{
label: 'Getting Started',
translations: { de: 'Erste Schritte' },
collapsed: true,
items: [
{ label: 'What is FlowMCP', translations: { de: 'Was ist FlowMCP' }, slug: 'docs/getting-started/what-is-flowmcp' },
{ label: 'Installation', slug: 'docs/getting-started/installation' },
{ label: 'Quickstart', slug: 'docs/getting-started/quickstart' },
{ label: 'How It Works', translations: { de: 'Wie es funktioniert' }, slug: 'docs/getting-started/how-it-works' },
],
},
{
label: 'Schemas',
collapsed: true,
items: [
{ label: 'Overview', translations: { de: 'Uebersicht' }, slug: 'docs/schemas/overview' },
{ label: 'Tools', slug: 'docs/schemas/tools' },
{ label: 'Resources', translations: { de: 'Ressourcen' }, slug: 'docs/schemas/resources' },
{ label: 'Prompts', slug: 'docs/schemas/prompts' },
{ label: 'Skills', slug: 'docs/schemas/skills' },
],
},
{ label: 'Agents', slug: 'docs/agents/overview' },
{
label: 'Usage',
translations: { de: 'Nutzung' },
collapsed: true,
items: [
{ label: 'CLI', slug: 'docs/usage/cli' },
{ label: 'MCP Server', slug: 'docs/usage/mcp-server' },
],
},
{
label: 'Guides',
translations: { de: 'Anleitungen' },
collapsed: true,
items: [
{ label: 'Schema Creation', translations: { de: 'Schema erstellen' }, slug: 'docs/guides/schema-creation' },
{ label: 'Examples', translations: { de: 'Beispiele' }, slug: 'docs/guides/examples' },
{ label: 'Server Integration', slug: 'docs/guides/server-integration' },
],
},
{
label: 'Reference',
translations: { de: 'Referenz' },
collapsed: true,
items: [
{ label: 'Core Methods', translations: { de: 'Kern-Methoden' }, slug: 'docs/reference/core-methods' },
{ label: 'CLI Reference', translations: { de: 'CLI-Referenz' }, slug: 'docs/reference/cli-reference' },
{ label: 'Troubleshooting', translations: { de: 'Fehlerbehebung' }, slug: 'docs/reference/troubleshooting' },
],
},
{
label: 'Ecosystem',
translations: { de: 'Oekosystem' },
collapsed: true,
items: [
{ label: 'Schema Library', translations: { de: 'Schema-Bibliothek' }, slug: 'docs/ecosystem/schema-library' },
{ label: 'Agent Server', slug: 'docs/ecosystem/agent-server' },
{ label: 'AgentProbe', slug: 'docs/ecosystem/agentprobe' },
{ label: 'x402', slug: 'docs/ecosystem/x402' },
],
},
],
},
],
}),
],
});