-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
379 lines (369 loc) · 11.3 KB
/
docusaurus.config.js
File metadata and controls
379 lines (369 loc) · 11.3 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
374
375
376
377
378
379
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
// Updated for GitHub Pages deployment - trigger pipeline
import { themes as prismThemes } from "prism-react-renderer";
import { manageCookieLabel } from "./constants.js";
/** @type {import('@docusaurus/types').Config} */
const config = {
customFields: {
description:
"Build scalable, secure, intelligent, and high-performance applications with PostgreSQL on Azure. Get started with our comprehensive documentation, samples, and community resources.",
disclaimerSection: {
title: "PostgreSQL Hub for Azure Developers",
description:
"Build scalable, secure, intelligent, and high-performance applications with PostgreSQL on Azure. Get started with our comprehensive documentation, samples, and community resources.",
},
quickLinks: [
{
icon: "img/postgres.svg",
color: "#9a14fa",
label: "Azure Database for PostgreSQL Homepage",
description: "Explore product features, documentation, and pricing",
href: "http://aka.ms/postgres",
},
{
icon: "img/horizon-db.svg",
label: "Azure HorizonDB Homepage",
description: "Explore product overview, features, and documentation",
href: "https://aka.ms/AzureHorizonDB",
},
{
icon: "FileText",
color: "#6f2c91",
label: "Documentation",
description: "Concepts, tutorials, guides and API references",
href: "https://aka.ms/postgresqldocs",
},
{
icon: "NotepadText",
color: "#04a841",
label: "Blog",
description: "Product updates, customer stories, and best practices.",
href: "https://aka.ms/azurepostgresblog",
},
{
icon: "GraduationCap",
color: "#f54a00",
label: "Microsoft Learn",
description: "Structured trainings and learning modules",
href: "https://learn.microsoft.com/training/paths/build-ai-apps-azure-database-postgresql/",
},
{
icon: "BookOpen",
color: "#1960fc",
label: "AI eBook",
description: "Guide to building AI apps and agents",
href: "https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/azure/acom/documents/pdfs/en-us/azure-postgresql-no-ai-without-data-ebook-082225-aac.pdf",
},
{
icon: "Gift",
color: "#9a14fa",
label: "Try PostgreSQL for free",
description: "Free access for 12 months with an Azure free account.",
href: "https://azure.microsoft.com/pricing/free-services/",
},
],
learningPathsSection: {
paths: [
{
icon: "Database",
iconColor: "#0078d4",
title: "Developing Core Applications",
description:
"Master the fundamentals of building production-ready applications with PostgreSQL on Azure",
level: "Beginner",
duration: "2-3 hours",
tags: ["Database Setup", "Connection Management", "App Integrations", "Best Practices"],
filterTag: "developing-core-applications",
},
{
icon: "Bot",
iconColor: "#157f15",
title: "Building Generative AI Apps",
description:
"Build intelligent apps with PostgreSQL using vector search, in-SQL AI functions, and popular AI frameworks.",
level: "Intermediate",
duration: "3-4 hours",
tags: ["Vector Extension", "Foundry Integration", "AI Functions", "RAG"],
filterTag: "building-genai-apps",
},
{
icon: "Layers",
iconColor: "#5c2d91",
title: "Building AI Agents",
description:
"Create sophisticated AI agents that leverage PostgreSQL for knowledge retrieval, memory and data persistence.",
level: "Intermediate",
duration: "2-3 hours",
tags: ["Agent Architecture", "MCP", "Foundry Integration", "Multi-agent Coordination"],
filterTag: "building-ai-agents",
},
],
},
communitySupportSection: {
title: "Community & Support",
description:
"Connect with fellow developers, get support, and stay tuned with the latest updates in the PostgreSQL ecosystem on Azure.",
cards: [
{
title: "Contact Us",
desc: "Reach out to us for questions, feedback, or support.",
icon: "Mail",
actions: [
{
label: "Email",
href: "mailto:AskAzurePostgreSQL@microsoft.com",
variant: "outlined",
icon: "Mail",
},
{
label: "Technical Support",
href: "https://azure.microsoft.com/support/",
variant: "outlined",
icon: "ExternalLink",
},
{
label: "Submit Your Ideas",
href: "https://aka.ms/pgfeedback",
variant: "outlined",
icon: "Lightbulb",
}
],
},
{
title: "Stay Tuned",
desc: "Stay updated with the latest news, tips, and announcements.",
icon: "Bell",
actions: [
{
href: "https://www.linkedin.com/company/azure-database-for-postgresql/",
icon: "img/brand-linkedin.svg",
},
{
href: "https://x.com/AzureDBPostgres",
icon: "X",
},
{
href: "https://aka.ms/azurepostgresblog",
icon: "BookOpen",
},
],
},
{
title: "Join the Community",
desc: "Coming soon: A community forum for PostgreSQL app developers on Azure. Stay tuned.",
icon: "Users",
iconColor: "#20b256",
iconBg: "#e6f7ed",
actions: [],
},
// {
// title: "How to Contribute",
// desc: "Help improve Azure PostgreSQL documentation, samples, and tooling.",
// icon: "Handshake",
// iconColor: "#543ef6",
// iconBg: "#edeafd",
// actions: [{ label: "Contribute Guide", href: "/contribute" }],
// },
// {
// title: "Submit Your Ideas",
// desc: "Share feedback, request features, and vote on improvements to Azure PostgreSQL.",
// icon: "Lightbulb",
// iconColor: "#9a15fa",
// iconBg: "#f5e6fd",
// actions: [
// { label: "Submit Idea", href: "https://aka.ms/pgfeedback" },
// ],
// },
{
title: "Events & Webinars",
desc: "",
icon: "Calendar",
iconColor: "#ea252d",
iconBg: "#fdeaea",
events: [
{
title: "POSETTE: An Event for Postgres 2026",
description:
"A virtual developer event for all things Postgres.",
date: "June 16-18, 2026",
href: "https://aka.ms/posette"
}
// {
// title: "PostgreSQL Performance Optimization",
// description:
// "Best practices for optimizing your PostgreSQL database performance",
// date: "December 5, 2025",
// time: "10:00 AM PST",
// },
],
actions: [],
},
],
},
},
title: "PostgreSQL Hub",
tagline: "Discover - Create - Contribute",
url: "https://azure-samples.github.io",
baseUrl: "/postgres-hub/",
favicon: "img/logo.png",
organizationName: "Azure-Samples",
projectName: "postgres-hub",
deploymentBranch: "gh-pages",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
scripts: [
"https://js.monitor.azure.com/scripts/c/ms.analytics-web-4.min.js",
"https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js",
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: false,
},
},
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
hideOnScroll: true,
title: "PostgreSQL Hub",
logo: {
alt: "Azure PostgreSQL App logo",
src: "img/logo.png",
href: "/",
target: "_self",
width: 32,
height: 32,
},
items: [
{
type: "custom-NavbarButton",
position: "right",
},
// {
// type: "custom-NavbarButtonGithub",
// href: "https://github.com/NucleoidJS/Nucleoid",
// position: "right",
// },
],
},
footer: {
style: "light",
links: [
{
label: "Privacy & Cookies",
to: "https://privacy.microsoft.com/privacystatement",
},
{
label: manageCookieLabel,
to: " ",
},
{
label: "Built With Docusaurus",
to: "https://docusaurus.io",
},
{
label: ` © ${new Date().getFullYear()} Microsoft`,
to: "https://microsoft.com",
},
],
},
prism: {
theme: prismThemes.github,
},
}),
plugins: [
[
"@docusaurus/plugin-ideal-image",
{
quality: 70,
max: 1030,
min: 640,
steps: 2,
disableInDev: false,
},
],
],
headTags: [
// Preconnect to Google Fonts for Roboto
{
tagName: "link",
attributes: {
rel: "preconnect",
href: "https://fonts.googleapis.com",
},
},
{
tagName: "link",
attributes: {
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: "anonymous",
},
},
// Load Roboto font
{
tagName: "link",
attributes: {
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap",
},
},
// DNS prefetch for external resources
{
tagName: "link",
attributes: {
rel: "dns-prefetch",
href: "https://api.github.com",
},
},
// Optimize rendering
{
tagName: "meta",
attributes: {
name: "viewport",
content: "width=device-width, initial-scale=1.0, maximum-scale=5.0",
},
},
],
presets: [
[
"@docusaurus/preset-classic",
{
blog: {
showReadingTime: true,
routeBasePath: "blog",
blogTitle: "PostgreSQL Hub Blog",
blogDescription:
"Latest updates, community stories, and developer news",
feedOptions: {
type: "all", // 'rss' | 'atom' | 'all'
title: "PostgreSQL Hub Blog RSS Feed",
description:
"Stay updated with new blog posts from PostgreSQL Hub for Azure Developers",
language: "en",
copyright: `Copyright © ${new Date().getFullYear()} Microsoft`,
},
},
gtag: {
trackingID: "G-CNSKHL41CT",
anonymizeIP: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};
module.exports = config;