-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathastro.config.ts
More file actions
1986 lines (1970 loc) · 123 KB
/
Copy pathastro.config.ts
File metadata and controls
1986 lines (1970 loc) · 123 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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { createRequire } from "node:module";
import { readdir, readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { defineConfig } from "astro/config";
import type { AstroIntegration } from "astro";
import { generateAPIReferenceItems, stainlessDocs } from "@stainless-api/docs";
import starlightLlmsTxt from "starlight-llms-txt";
import rehypeBasePath from "./src/plugins/rehype-base-path";
import rehypePagefindWeight from "./src/plugins/rehype-pagefind-weight";
import remarkResolveConstantsInHeadings from "./src/plugins/remark-resolve-constants-in-headings";
import sentry from "@sentry/astro";
const require = createRequire(import.meta.url);
// Resolve package subpaths so aliasing the main "components" entry doesn't break ThemeSelect/SDKSelect.
const docsComponentsScriptsPath = require.resolve("@stainless-api/docs/components/scripts");
/**
* Vite 7 compat:
*
* 1) Some plugins declare `transform`/`load`/`resolveId` as `{ filter }` without a
* `handler`, which crashes EnvironmentPluginContainer when it calls handler.call().
* We patch hooks in `config` + `configResolved` (below).
*
* 2) Plugins such as `@vitejs/plugin-react` may delete `transform` in `configResolved`
* after Vite has cached which plugins expose `transform`, so `getHookHandler` returns
* undefined and handler.call() throws (upstream: vitejs/vite#21162). We ship a pnpm
* patch for `vite@7.3.1` (`patches/vite@7.3.1.patch`) that skips when `!handler`.
*/
const HOOK_NAMES = ["transform", "load", "resolveId"] as const;
const noopHandlers: Record<(typeof HOOK_NAMES)[number], () => null> = {
transform: () => null,
load: () => null,
resolveId: () => null,
};
function patchHook(hook: unknown, hookName: (typeof HOOK_NAMES)[number]): unknown {
// Vite's getHookHandler(hook) returns hook.handler when hook is an object, else hook.
// If a plugin has transform: { filter } with no handler, getHookHandler returns undefined and handler.call() throws.
if (hook === undefined || hook === null) {
return { handler: noopHandlers[hookName] };
}
if (
typeof hook === "object" &&
typeof (hook as { handler?: unknown }).handler !== "function"
) {
return { ...(hook as object), handler: noopHandlers[hookName] };
}
if (typeof hook !== "function") {
return { handler: noopHandlers[hookName] };
}
return hook;
}
function createPluginProxy(plugin: Record<string, unknown>): Record<string, unknown> {
return new Proxy(plugin, {
get(target, prop: string) {
const value = target[prop];
if (HOOK_NAMES.includes(prop as (typeof HOOK_NAMES)[number])) {
return patchHook(value, prop as (typeof HOOK_NAMES)[number]);
}
return value;
},
});
}
function patchAllPlugins(plugins: unknown[]): void {
if (!Array.isArray(plugins)) return;
for (const plugin of plugins as Record<string, unknown>[]) {
if (plugin && typeof plugin === "object") {
for (const hookName of HOOK_NAMES) {
const hook = plugin[hookName];
if (
hook &&
typeof hook === "object" &&
typeof (hook as { handler?: unknown }).handler !== "function" &&
typeof hook !== "function"
) {
(plugin as Record<string, unknown>)[hookName] = {
...(hook as object),
handler: noopHandlers[hookName],
};
}
}
}
}
}
function vite7CompatPlugin(): {
name: string;
enforce: "post";
config: (config: { plugins?: unknown[] }) => { plugins?: unknown[] };
configResolved: (config: { plugins: unknown[] }) => void;
} {
return {
name: "vite7-compat-patch-hooks",
enforce: "post",
config(config: { plugins?: unknown[] }) {
patchAllPlugins(config.plugins ?? []);
return {};
},
configResolved(config: { plugins: unknown[] }) {
// In-place patch only. Replacing config.plugins with proxy-wrapped plugins can break
// Astro virtual modules (e.g. astro:server-app). patchAllPlugins mutates hook objects
// so transform/load/resolveId have a callable handler when they were missing one.
patchAllPlugins(config.plugins ?? []);
},
};
}
/**
* Post-build safety net: walks every generated .html file and prefixes
* root-relative hrefs on <a>, <area>, and <link> elements with the base path.
* No-op when BASE is "/".
*/
function basePathPostProcessor(base: string): AstroIntegration {
const prefix = base.replace(/\/$/, "");
return {
name: "base-path-post-processor",
hooks: prefix
? {
"astro:build:done": async ({ dir }) => {
const outDir = dir.pathname;
const htmlFiles = await collectHtmlFiles(outDir);
let totalReplaced = 0;
for (const file of htmlFiles) {
const html = await readFile(file, "utf-8");
let count = 0;
const updated = html.replace(
/(<(?:a|area|link)\b[^>]*?\bhref=")(\/)([^"]*")/gi,
(_match, before, _slash, rest) => {
const href = "/" + rest.slice(0, -1); // reconstruct full href (without trailing quote)
if (href.startsWith(prefix + "/") || href === prefix) {
return _match; // already prefixed
}
count++;
return before + prefix + "/" + rest;
}
);
if (count > 0) {
await writeFile(file, updated, "utf-8");
totalReplaced += count;
}
}
console.log(
`[base-path-post-processor] Prefixed ${totalReplaced} href(s) across ${htmlFiles.length} HTML file(s).`
);
},
}
: {},
};
}
async function collectHtmlFiles(dir: string): Promise<string[]> {
const results: string[] = [];
const entries = await readdir(dir, { withFileTypes: true });
for (const entry of entries) {
const fullPath = join(dir, entry.name);
if (entry.isDirectory()) {
results.push(...(await collectHtmlFiles(fullPath)));
} else if (entry.name.endsWith(".html")) {
results.push(fullPath);
}
}
return results;
}
// Base path from env var (e.g. BASE_PATH="/docs"). Falls back to "/" (no subpath).
const BASE = process.env.BASE_PATH || "/";
/**
* Set `DOCS_LOCAL_WITHOUT_STAINLESS=1` to run `pnpm dev` / `pnpm build` without a
* Stainless API key or `stl auth login`. Tiger Cloud REST API pages are omitted;
* use a stub page and redirects instead (see README).
*/
const DOCS_LOCAL_WITHOUT_STAINLESS =
process.env.DOCS_LOCAL_WITHOUT_STAINLESS === "1" ||
process.env.DOCS_LOCAL_WITHOUT_STAINLESS === "true";
/** Astro doesn't auto-prepend `base` to redirect destinations. This helper does. */
function withBase(redirects: Record<string, string>): Record<string, string> {
if (BASE === "/") return redirects;
return Object.fromEntries(
Object.entries(redirects).map(([from, to]) => [from, BASE + to])
);
}
// ESM dynamic import: starlight-links-validator ships TypeScript; `require()` fails on Node 22+
// ("Stripping types is currently unsupported for files under node_modules").
const starlightLinksValidator = process.env.CHECK_LINKS
? (await import("starlight-links-validator")).default
: null;
// https://astro.build/config
export default defineConfig({
site: 'https://www.tigerdata.com',
base: BASE,
trailingSlash: "never",
markdown: {
gfm: true,
remarkPlugins: [remarkResolveConstantsInHeadings],
rehypePlugins: [[rehypeBasePath, { base: BASE }], rehypePagefindWeight],
},
vite: {
plugins: [vite7CompatPlugin()] as any,
resolve: {
alias: [
{ find: "@components", replacement: new URL("./src/components", import.meta.url).pathname },
{ find: "@constants", replacement: new URL("./src/constants.ts", import.meta.url).pathname },
// Resolve scripts subpath to the package so ThemeSelect.astro / SDKSelect.astro keep working.
{
find: "@stainless-api/docs/components/scripts",
replacement: docsComponentsScriptsPath,
},
// Override Callout with our Figma-styled Tip (lightbulb icon). Exact match only.
{
find: /^@stainless-api\/docs\/components$/,
replacement: new URL("./src/lib/docs-components.ts", import.meta.url).pathname,
},
],
},
},
integrations: [basePathPostProcessor(BASE), stainlessDocs({
apiReference: DOCS_LOCAL_WITHOUT_STAINLESS
? null
: {
stainlessProject: "tiger-cloud",
basePath: "/reference/tiger-cloud-rest",
// Workaround to hide default TypeScript reference in the API reference page. It's showing the TypeScript lib even without have a Typescript SDK published.
excludeLanguages: ["typescript"],
propertySettings: {
collapseDescription: false,
expandDepth: 2,
},
},
title: "Tiger Data Docs",
logo: {
light: "./src/assets/logo-light.svg",
dark: "./src/assets/logo-dark.svg",
alt: "Tiger Data",
replacesTitle: true,
},
favicon: "favicon.ico",
customCss: ["./theme.css", "./osano.css", "./src/styles/layout-root.css"],
lastUpdated: true,
// Adds a "Suggest an edit to this page" link in the footer of every content
// page, pointing at the page's Markdown source on GitHub. Starlight appends the
// page's source path (relative to the repo root) to this base URL, so the link
// opens GitHub's editor for that exact file. Auto-generated pages (the Tiger
// Cloud REST reference) have no source file, so no link is rendered for them.
editLink: {
baseUrl: "https://github.com/timescale/Tiger-Data-Docs/edit/main/",
},
head: [
{
// Segment
tag: "script",
content: `!function(){function isBot(){if(typeof navigator==='undefined'||!navigator.userAgent)return true;var ua=navigator.userAgent.toLowerCase();var botPatterns=['bot','crawler','spider','crawling','slurp','bingpreview','facebookexternalhit','facebot','twitterbot','rogerbot','linkedinbot','embedly','quora link preview','showyoubot','outbrain','pinterest','developers.google.com/+/web/snippet','slackbot','vkshare','w3c_validator','redditbot','applebot','whatsapp','flipboard','tumblr','bitlybot','skypeuripreview','nuzzel','discordbot','google page speed','qwantify','pinterestbot','bitrix link preview','xing-contenttabreceiver','chrome-lighthouse','telegrambot','headlesschrome','phantom','baiduspider','baiduspider-render','yandexbot','duckduckbot','ahrefsbot','semrushbot','dotbot','mj12bot','petalbot','gptbot','chatgpt','claudebot','claude-web','anthropic-ai','google-extended','cohere-ai','omgilibot','omgili','facebookbot','meta-externalagent','diffbot','bytespider','perplexitybot','youbot','ai2bot','ccbot','dataforseobotd'];return botPatterns.some(function(pattern){return ua.indexOf(pattern)!==-1})}if(isBot()){console.debug('Bot detected, skipping Segment analytics');return}var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.com/analytics.js/v1/"+key+"/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="CF77jkjlE82B4PhIHbbMDiSmOJsDYMqF";analytics.SNIPPET_VERSION="5.2.0";analytics.load("CF77jkjlE82B4PhIHbbMDiSmOJsDYMqF");analytics.page()}}();`,
},
{
// GTM
tag: "script",
content: `
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PFLX3HP');
`,
},
{
// Twitter/X ads pixel
tag: "script",
content: `!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='//static.ads-twitter.com/uwt.js',a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');twq('init','o8fs3');twq('track','PageView');`,
},
{
// Sidebar active-branch expander: Starlight persists open/closed sidebar
// groups in sessionStorage and restores them on load, which can override the
// server-rendered open state and leave the current page hidden inside a
// collapsed parent group (e.g. a page nested one level down in a subgroup).
// After the persister runs, force every <details> ancestor of the active link
// open so the current page is always revealed. Setting `.open` directly does
// not fire the persister's click handler, so no loop or stored-state changes.
tag: "script",
content: `(function(){function exp(){var b=document.getElementById("starlight__sidebar");if(!b)return;var a=b.querySelector('[aria-current="page"]');if(!a)return;var e=a.parentElement;while(e&&e!==b){if(e.tagName==="DETAILS")e.open=true;e=e.parentElement;}}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",exp);}else{exp();}document.addEventListener("astro:page-load",exp);})();`,
},
// ──── BEGIN STATSIG ────
// Statsig client-side SDK: session replay, web analytics, and gate exposure logging.
// Uses Segment's ajs_anonymous_id cookie for user identification.
// TO REMOVE: see README-statsig.md for full cleanup instructions.
// Gate: new_docs_site_rollout — https://console.statsig.com/2aVMoalsJmTVASIsy8WxBu/gates/new_docs_site_rollout
// Env var: PUBLIC_STATSIG_CLIENT_KEY (set in Vercel + .env.local)
{
tag: "script",
content: `!function(){try{var k="${import.meta.env.PUBLIC_STATSIG_CLIENT_KEY}";if(!k||k==="undefined"){console.debug("Statsig: no client key, skipping");return}var e=document.cookie.match(/ajs_anonymous_id=([^;]+)/);if(e&&e[1]){var t=document.createElement("script");t.async=!0;t.src="https://cdn.jsdelivr.net/npm/@statsig/js-client@3/build/statsig-js-client+session-replay+web-analytics.min.js";t.onload=function(){try{var s=new window.__STATSIG__.StatsigClient(k,{userID:decodeURIComponent(e[1])});s.initializeAsync().then(function(){s.checkGate("new_docs_site_rollout")})}catch(err){console.debug("Statsig init error:",err)}};document.head.appendChild(t)}}catch(err){console.debug("Statsig setup error:",err)}}();`,
},
// ──── END STATSIG ────
// ──── BEGIN POSTHOG ────
// PostHog product analytics. The project API key (phc_...) is public and
// safe to ship in client-side code, so it's hardcoded here.
{
tag: "script",
content: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog && window.posthog.__loaded)||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="ki Ci init qi Hi pr ji zi Di capture calculateEventProperties Qi register register_once register_for_session unregister unregister_for_session Ki getFeatureFlag getFeatureFlagPayload getFeatureFlagResult getAllFeatureFlags isFeatureEnabled reloadFeatureFlags updateFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey displaySurvey cancelPendingSurvey canRenderSurvey canRenderSurveyAsync Xi identify setPersonProperties unsetPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset setIdentity clearIdentity get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException addExceptionStep captureLog startExceptionAutocapture stopExceptionAutocapture loadToolbar get_property getSessionProperty Ji Gi createPersonProfile setInternalOrTestUser Yi Ai rn opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing get_explicit_consent_status is_capturing clear_opt_in_out_capturing Vi debug mr it getPageViewId captureTraceFeedback captureTraceMetric Oi".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('phc_OsZpGzq2LBW8OMXjdktxavhYkehe8R05zsW0zN6prLF',{api_host:'https://us.i.posthog.com',defaults:'2026-05-30',person_profiles:'identified_only'});`,
},
// ──── END POSTHOG ────
],
header: {
layout: "stacked",
links: [
{
label: "Get started",
link: "/get-started",
},
],
},
// social: [
// { icon: "github", label: "GitHub", href: "https://github.com/timescale/timescaledb" },
// ],
experimental: {
...(DOCS_LOCAL_WITHOUT_STAINLESS ? { disableStainlessProseIndexing: true } : {}),
starlightCompat: {
components: {
Head: "./src/components/Head.astro",
Header: "./src/components/Header.astro",
MobileMenuToggle: "./src/components/MobileMenuToggle.astro",
PageTitle: "./src/components/PageTitle.astro",
PageSidebar: "./src/components/PageSidebar.astro",
Pagination: "./src/components/PageNavigation.astro",
Callout: "./src/components/Callout.astro",
Footer: "./src/components/Footer.astro",
} as Record<string, string>,
/** Single-link sidebar groups become one clickable row (see `src/starlight-route-middleware.ts`). */
routeMiddleware: ["./src/starlight-route-middleware.ts"],
plugins: [
starlightLlmsTxt(),
...(starlightLinksValidator
? [starlightLinksValidator({
// The Tiger Cloud REST API reference is auto-generated by the
// Stainless docs integration and only exists when STAINLESS_API_KEY
// is set. Exclude its paths so lint:links passes without the key.
exclude: ["/reference/tiger-cloud-rest/**", "/files/**"],
})]
: []),
],
},
},
tabs: [
// Get Started tab
{
label: "Get started",
link: "/get-started",
sidebar: [
"get-started", // Welcome/index page
{
label: "Choose your setup",
collapsed: true,
items: [
{ label: "Compare Tiger Data products", link: "/get-started/feature-comparison" },
{ label: "Cloud-exclusive features", link: "/get-started/cloud-exclusive-features" },
{ label: "Compare TimescaleDB editions", link: "/get-started/choose-your-path/timescaledb-editions" },
],
},
{
label: "Tiger Console",
collapsed: true,
items: [
{ label: "5-minute quickstart", link: "/get-started/quickstart/quickstart-5-minutes" },
{ label: "Create a Tiger Cloud service", link: "/get-started/quickstart/create-service" },
{ label: "Supported regions", link: "/get-started/supported-regions" },
],
},
{
label: "Tiger CLI and MCP",
collapsed: true,
items: [
{ label: "Get started with Tiger CLI", link: "/get-started/quickstart/tiger-cli" },
{ label: "Integrate Tiger Cloud with your AI agent", link: "/get-started/quickstart/mcp-cli" },
{ label: "Get started with the REST API", link: "/get-started/quickstart/rest-api" },
],
},
{
label: "Self-hosted TimescaleDB",
collapsed: true,
items: [
{ label: "10-minute quickstart", link: "/get-started/quickstart/timescaledb-quickstart" },
{ label: "Install self-hosted TimescaleDB", link: "/get-started/choose-your-path/install-timescaledb" },
{ label: "Connect your app", link: "/get-started/quickstart/connect-your-app" },
{ label: "Supported platforms", link: "/get-started/timescaledb-supported-platforms" },
],
},
{
label: "News and updates",
collapsed: true,
autogenerate: { directory: "get-started/news" },
},
{
label: "Contribute to docs",
collapsed: true,
items: [{ label: "How to contribute", link: "/get-started/contributing" }],
},
],
},
// Learn tab: conceptual and overview content lives under /learn/. Hands-on how-tos link to /build/.
// Learn sidebar: groups follow dependency order. Retention + tiering: one "Data lifecycle" group. Chunks + time buckets: one "Chunks and time buckets" group (not nested under Hypertables). CAGGs: one "Continuous aggregates (CAGGs)" group (Tiger Cloud nested; backfill migration tool at end; "About CAGGs" omitted from nav, linked from overview).
{
label: "Learn",
link: "/learn",
sidebar: [
{
label: "Overview",
collapsed: true,
items: [
{ label: "What is Tiger Data", link: "/learn" },
{ label: "Tiger Data architecture for real-time analytics", link: "/learn/deep-dive/whitepaper" },
],
},
{
label: "Tiger Cloud",
collapsed: true,
items: [
{ label: "Tiger Cloud", link: "/learn/tiger-cloud" },
{ label: "Cloud-exclusive features", link: "/learn/tiger-cloud/cloud-exclusive-features" },
{ label: "Tiger Cloud essentials", link: "/learn/tiger-cloud/tiger-cloud-essentials" },
],
},
{
label: "Tiger CLI and MCP",
collapsed: true,
items: [
{ label: "Tiger CLI and Tiger MCP", link: "/learn/tiger-cli-mcp" },
],
},
{
label: "Capabilities and comparison",
collapsed: true,
items: [
{ label: "Understand capabilities", link: "/learn/capabilities-and-comparison/understand-capabilities" },
{ label: "Compare the features in Tiger Data products", link: "/learn/capabilities-and-comparison/feature-comparison" },
],
},
{
label: "Data model",
collapsed: true,
items: [
{ label: "Design your data model", link: "/learn/data-model/design-your-data-model" },
{ label: "Wide, narrow, and medium tables", link: "/learn/data-model/wide-narrow-medium-tables" },
{
label: "Primary keys, time columns, and uniqueness",
link: "/learn/data-model/primary-keys-time-and-uniqueness",
},
{ label: "Schema optimization", link: "/learn/data-model/understand-database-schemas" },
],
},
{
label: "Hypertables",
collapsed: true,
items: [
{ label: "Understand hypertables", link: "/learn/hypertables/understand-hypertables" },
{ label: "Create and configure a hypertable", link: "/learn/hypertables/creating-and-configuring-hypertables" },
{ label: "Partition a hypertable", link: "/learn/hypertables/partitioning-hypertables" },
{ label: "Hypertable indexes", link: "/learn/hypertables/hypertable-indexes" },
{ label: "Hypertable operations", link: "/learn/hypertables/optimize-data-in-hypertables" },
],
},
{
label: "Hyperfunctions",
collapsed: true,
items: [
{ label: "About hyperfunctions", link: "/learn/hyperfunctions/about-hyperfunctions" },
],
},
{
label: "Chunks and time buckets",
collapsed: true,
items: [
{ label: "Understand chunks", link: "/learn/chunks/understanding-chunks" },
{ label: "Size hypertable chunks", link: "/learn/hypertables/sizing-hypertable-chunks" },
{ label: "Understand time buckets", link: "/learn/data-lifecycle/time-buckets/about-time-buckets" },
{ label: "Use time buckets", link: "/learn/data-lifecycle/time-buckets/use-time-buckets" },
{ label: "Manually drop chunks", link: "/learn/data-lifecycle/data-retention/manually-drop-chunks" },
],
},
{
label: "Hypercore",
collapsed: true,
items: [
{ label: "Understand hypercore", link: "/learn/columnar-storage/understand-hypercore" },
{ label: "Compression methods", link: "/learn/columnar-storage/compression-methods" },
],
},
{
label: "Continuous aggregates (CAGGs)",
collapsed: true,
items: [
{ label: "Understand continuous aggregates", link: "/learn/continuous-aggregates" },
{ label: "Time and continuous aggregates", link: "/learn/continuous-aggregates/time-and-continuous-aggregates" },
{ label: "Hierarchical continuous aggregates", link: "/learn/continuous-aggregates/hierarchical-continuous-aggregates" },
{ label: "Real-time aggregates", link: "/learn/continuous-aggregates/real-time-aggregates" },
{ label: "Materialized hypertables", link: "/learn/continuous-aggregates/materialized-hypertables" },
],
},
{
label: "Data lifecycle",
collapsed: true,
items: [
{ label: "Understand the data lifecycle", link: "/learn/data-lifecycle" },
{ label: "Hypertables and chunks", link: "/learn/hypertables/understand-hypertables" },
{ label: "Time buckets", link: "/learn/data-lifecycle/time-buckets/about-time-buckets" },
{ label: "Continuous aggregates", link: "/learn/continuous-aggregates" },
{ label: "Hypercore and the columnstore", link: "/learn/columnar-storage/understand-hypercore" },
{ label: "Tiered storage", link: "/learn/data-lifecycle/storage/about-storage-tiers" },
{ label: "Data retention", link: "/learn/data-lifecycle/data-retention/about-data-retention" },
],
},
{
label: "Search",
collapsed: true,
items: [
{ label: "Key vector concepts for pgvector", link: "/learn/search/key-vector-database-concepts-for-understanding-pgvector" },
{ label: "Understand pg_textsearch and BM25 search", link: "/learn/search/using-pg-textsearch" },
{ label: "Understand pgvector and pgvectorscale", link: "/learn/search/pgvector-pgvectorsearch" },
],
},
{
label: "Glossary",
collapsed: true,
items: [{ label: "Browse terms", link: "/learn/glossary" }],
},
],
},
// Build tab — organized by Diataxis: hands-on learning first, then
// job-scoped how-to groups, then optimization, then troubleshooting.
{
label: "Build",
link: "/build",
sidebar: [
{ label: "Overview", link: "/build" },
// --- Tiger CLI and MCP: manage Tiger Cloud and drive the DB with agents ---
{
label: "Build with Tiger CLI and MCP",
collapsed: true,
items: [
{ label: "Common tasks", link: "/build/tiger-cli-mcp/common-tasks" },
{ label: "Best practices for AI agents", link: "/build/tiger-cli-mcp/agent-best-practices" },
{ label: "Cookbook", link: "/build/tiger-cli-mcp/cookbook" },
],
},
// --- Quickstarts ---
{
label: "Quickstarts",
collapsed: true,
items: [
{ label: "Overview", link: "/build/how-to" },
{ label: "Your first hypertable", link: "/build/how-to/your-first-hypertable" },
{ label: "Basic compression with hypercore", link: "/build/how-to/basic-compression" },
],
},
// --- Tutorials: combined tutorials, guided projects, and cookbook ---
{
label: "Tutorials",
collapsed: true,
items: [
{ label: "Overview", link: "/build/examples" },
{ label: "Create Tiger Cloud services with Terraform", link: "/build/examples/create-services-with-terraform" },
{ label: "Simulate an IoT sensor dataset", link: "/build/examples/simulate-iot-sensor-data" },
{ label: "Ingest real-time financial data", link: "/build/examples/ingest-real-time-financial-data" },
{ label: "Analyze application events with UUIDv7", link: "/build/examples/analyze-events-with-uuidv7" },
{ label: "Build hybrid search with BM25 and vectors", link: "/build/examples/hybrid-search" },
{ label: "Aggregate organizational data with AI agents", link: "/build/examples/aggregate-organizational-data-with-ai/" },
{ label: "Analyze stock market data", link: "/build/examples/analyze-stock-market-data" },
{ label: "Analyze NYC taxi data", link: "/build/examples/analyze-nyc-taxi-data" },
{ label: "Analyze Bitcoin blockchain", link: "/build/examples/analyze-blockchain" },
{ label: "Analyze energy consumption", link: "/build/examples/analyze-energy-consumption" },
{ label: "Visualize financial tick data with Grafana", link: "/build/examples/analyze-financial-tick-data" },
{ label: "Visualize transport and geospatial data with Grafana", link: "/build/examples/analyze-transport-data" },
{ label: "Tiger Data cookbook", link: "/build/examples/cookbook" },
],
},
// --- Data lifecycle how-tos (mirrors Learn > Data lifecycle) ---
{
label: "Data lifecycle",
collapsed: true,
items: [
{ label: "Your first hypertable", link: "/build/how-to/your-first-hypertable" },
{ label: "Set up hypercore", link: "/build/columnar-storage/setup-hypercore" },
{ label: "Create a continuous aggregate", link: "/build/continuous-aggregates/create-a-continuous-aggregate" },
{ label: "Manage storage and tiering", link: "/build/data-management/storage/manage-storage" },
{ label: "Create a retention policy", link: "/build/data-management/data-retention/create-a-retention-policy" },
{ label: "Create and manage custom jobs", link: "/build/data-management/create-and-manage-jobs" },
],
},
// --- Write and query data (split from "Manage my time-series data") ---
{
label: "Write and query data",
collapsed: true,
items: [
{ label: "Write and query data", link: "/build/data-management" },
{
label: "Write data",
collapsed: true,
items: [
{ label: "Insert data", link: "/build/data-management/write-data/insert" },
{ label: "Update data", link: "/build/data-management/write-data/update" },
{ label: "Upsert data", link: "/build/data-management/write-data/upsert" },
{ label: "Delete data", link: "/build/data-management/write-data/delete" },
],
},
{
label: "Query data",
collapsed: true,
items: [
{ label: "SELECT data", link: "/build/data-management/query-data/select" },
{ label: "Advanced analytic queries", link: "/build/data-management/query-data/advanced-analytic-queries" },
{ label: "Query external data sources with FDW", link: "/build/performance-optimization/query-external-data-sources-with-fdw" },
],
},
{ label: "Run queries from Tiger Console", link: "/build/data-management/run-queries-from-tiger-console" },
],
},
// --- Automate with jobs and policies (split from "Manage my time-series data") ---
{
label: "Automate with jobs and policies",
collapsed: true,
items: [
{ label: "About automation", link: "/build/data-management/about-automation" },
{ label: "Add a data retention policy", link: "/build/data-management/data-retention/create-a-retention-policy" },
{ label: "Create and manage custom jobs", link: "/build/data-management/create-and-manage-jobs" },
{ label: "Create a custom retention job", link: "/build/data-management/example-generic-retention" },
{ label: "Custom job to downsample and compress chunks", link: "/build/data-management/example-downsample-and-compress" },
{ label: "Custom job for automatic tablespace management", link: "/build/data-management/example-tiered-storage" },
],
},
// --- Spread data across storage tiers (split from "Manage my time-series data") ---
{
label: "Spread data across storage tiers",
collapsed: true,
items: [
{ label: "Manage storage and tiering", link: "/build/data-management/storage/manage-storage" },
{ label: "Query tiered data", link: "/build/data-management/storage/query-tiered-data" },
{ label: "Replicas and forks with tiered data", link: "/build/data-management/storage/tiered-data-replicas-forks" },
],
},
// --- Use hyperfunctions for analytics (split from "Manage my time-series data") ---
{
label: "Use hyperfunctions for analytics",
collapsed: true,
items: [
{ label: "Hyperfunctions overview", link: "/build/data-management/hyperfunctions" },
{ label: "Counter aggregation", link: "/build/data-management/hyperfunctions/counter-aggregation" },
{ label: "Function pipelines", link: "/build/data-management/hyperfunctions/function-pipelines" },
{
label: "Gapfilling and interpolation",
collapsed: true,
items: [
{ label: "Gapfilling and interpolation", link: "/build/data-management/hyperfunctions/gapfilling-interpolation" },
{ label: "Time bucket gapfill", link: "/build/data-management/hyperfunctions/gapfilling-interpolation/time-bucket-gapfill" },
{ label: "Last observation carried forward", link: "/build/data-management/hyperfunctions/gapfilling-interpolation/locf" },
],
},
{ label: "Heartbeat aggregation", link: "/build/data-management/hyperfunctions/heartbeat-agg" },
{ label: "Hyperloglog", link: "/build/data-management/hyperfunctions/hyperloglog" },
{
label: "Percentile approximation",
collapsed: true,
items: [
{ label: "Percentile approximation", link: "/build/data-management/hyperfunctions/percentile-approx" },
{ label: "Approximate percentiles", link: "/build/data-management/hyperfunctions/percentile-approx/approximate-percentile" },
{ label: "Advanced aggregation methods", link: "/build/data-management/hyperfunctions/percentile-approx/advanced-agg" },
],
},
{ label: "Statistical aggregation", link: "/build/data-management/hyperfunctions/stats-aggs" },
{ label: "Time-weighted averages", link: "/build/data-management/hyperfunctions/time-weighted-averages" },
],
},
// --- Keep pre-computed aggregations up to date (CAGGs — unchanged) ---
{
label: "Keep pre-computed aggregations up to date",
collapsed: true,
items: [
{ label: "Create a continuous aggregate", link: "/build/continuous-aggregates/create-a-continuous-aggregate" },
{ label: "Refresh continuous aggregates", link: "/build/continuous-aggregates/refresh-policies" },
{ label: "Create an index on a continuous aggregate", link: "/build/continuous-aggregates/create-index" },
{ label: "Convert continuous aggregates to the columnstore", link: "/build/continuous-aggregates/compression-on-continuous-aggregates" },
{ label: "Drop data from continuous aggregates", link: "/build/continuous-aggregates/drop-data" },
{ label: "Migrate a continuous aggregate to the new form", link: "/build/continuous-aggregates/migrate-to-new-form" },
],
},
// --- Optimize storage and query speed (columnar storage) ---
{
label: "Optimize storage and query speed",
collapsed: true,
items: [
{ label: "Setup hypercore", link: "/build/columnar-storage/setup-hypercore" },
],
},
// --- Make queries and schemas faster (performance optimization) ---
{
label: "Make queries and schemas faster",
collapsed: true,
items: [
{ label: "Performance optimization", link: "/build/performance-optimization" },
{ label: "Accelerate queries using indexes", link: "/build/performance-optimization/indexing" },
{ label: "Get faster DISTINCT queries with SkipScan", link: "/build/performance-optimization/skipscan" },
{ label: "Automatically route queries to continuous aggregates", link: "/build/performance-optimization/cagg-query-rewrites" },
{ label: "Ensure data integrity with constraints", link: "/build/performance-optimization/ensure-data-integrity-with-constraints" },
{ label: "Alter and update table schemas", link: "/build/performance-optimization/alter-update-table-schema" },
{ label: "Handle semi-structured data with JSON", link: "/build/performance-optimization/handle-semi-structured-data-with-json" },
{ label: "Enforce constraints with unique indexes", link: "/build/performance-optimization/hypertables-and-unique-indexes" },
{ label: "Improve query and upsert performance", link: "/build/performance-optimization/secondary-indexes" },
{ label: "Improve hypertable performance", link: "/build/performance-optimization/improve-hypertable-performance" },
{ label: "Retrofit chunk intervals", link: "/build/performance-optimization/retrofit-chunk-intervals" },
{ label: "Improve storage performance using tablespaces", link: "/build/performance-optimization/manage-tablespaces" },
{ label: "Automate tasks with triggers", link: "/build/performance-optimization/automate-tasks-with-triggers" },
],
},
// --- Troubleshooting (renamed from "Tips and tricks") ---
{
label: "Troubleshooting",
collapsed: true,
items: [
{ label: "Common issues", link: "/build/tips-and-tricks" },
{ label: "Troubleshoot continuous aggregates", link: "/build/tips-and-tricks/troubleshoot-continuous-aggregates" },
{ label: "Troubleshoot hypertables", link: "/build/tips-and-tricks/troubleshoot-hypertables" },
{ label: "Troubleshoot hypercore", link: "/build/tips-and-tricks/troubleshoot-hypercore" },
{ label: "Troubleshoot import and ingest", link: "/build/tips-and-tricks/troubleshoot-import-ingest" },
{ label: "Troubleshoot queries", link: "/build/tips-and-tricks/troubleshoot-query-data" },
{ label: "Troubleshoot schema management", link: "/build/tips-and-tricks/troubleshoot-schema-management" },
{ label: "Troubleshoot time buckets", link: "/build/tips-and-tricks/troubleshoot-time-buckets" },
{ label: "Troubleshoot data retention", link: "/build/tips-and-tricks/troubleshoot-data-retention" },
{ label: "Troubleshoot data tiering", link: "/build/tips-and-tricks/troubleshoot-data-tiering" },
{ label: "Troubleshoot jobs", link: "/build/tips-and-tricks/troubleshoot-jobs" },
{ label: "Troubleshoot hyperfunctions", link: "/build/tips-and-tricks/troubleshoot-hyperfunctions" },
],
},
],
},
// Migrate tab: data sync, file uploads, and full database migration
{
label: "Migrate",
link: "/migrate",
sidebar: [
{
label: "Overview",
collapsed: true,
items: [
{ label: "Overview", link: "/migrate" },
{ label: "Choose a migration approach", link: "/migrate/choose-your-approach" },
],
},
{
label: "Migrate to Tiger Cloud",
collapsed: false,
items: [
{
label: "Livesync replication",
collapsed: true,
items: [
{ label: "Livesync replication", link: "/migrate/livesync-replication" },
{ label: "Advanced topics", link: "/migrate/livesync-replication-advanced" },
{ label: "Troubleshooting", link: "/migrate/livesync-replication-troubleshooting" },
],
},
{ label: "Migrate with downtime", link: "/migrate/migrate-with-downtime" },
{ label: "FAQ and troubleshooting", link: "/migrate/troubleshooting" },
{
label: "Dual-write and backfill",
collapsed: true,
items: [
{ label: "Dual-write and backfill", link: "/migrate/dual-write-and-backfill" },
{ label: "From TimescaleDB", link: "/migrate/dual-write-and-backfill/dual-write-from-timescaledb" },
{ label: "From PostgreSQL", link: "/migrate/dual-write-and-backfill/dual-write-from-postgres" },
{ label: "From other databases", link: "/migrate/dual-write-and-backfill/dual-write-from-other" },
{ label: "timescaledb-backfill tool", link: "/migrate/dual-write-and-backfill/timescaledb-backfill" },
],
},
],
},
{
label: "Sync and stream",
collapsed: false,
items: [
{ label: "Sync from PostgreSQL", link: "/migrate/livesync-for-postgresql" },
{ label: "Sync from S3", link: "/migrate/livesync-for-s3" },
{ label: "Stream from Kafka", link: "/migrate/livesync-for-kafka" },
],
},
{
label: "Upload files",
collapsed: false,
items: [
{ label: "Upload in Tiger Console", link: "/migrate/import-console" },
{ label: "Upload in the terminal", link: "/migrate/import-terminal" },
],
},
],
},
// Integrate tab, mirrors the 5 filter dimensions in IntegrateOverview
{
label: "Integrate",
link: "/integrate",
sidebar: [
{ label: "Overview", link: "/integrate" },
{
label: "Connect to Tiger Data",
collapsed: true,
items: [{ label: "Connect to Tiger Data", link: "/integrate/find-connection-details" }],
},
// --- Type of Tool (matches integrationCategory) ---
{
label: "Type of tool",
collapsed: false,
items: [
{
label: "Data engineering & ETL",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/data-engineering-etl" },
{ label: "Amazon SageMaker", link: "/integrate/data-engineering-etl/amazon-sagemaker" },
{ label: "Apache Airflow", link: "/integrate/data-engineering-etl/apache-airflow" },
{ label: "AWS Lambda", link: "/integrate/data-engineering-etl/aws-lambda" },
{ label: "Debezium", link: "/integrate/data-engineering-etl/debezium" },
{ label: "Decodable", link: "/integrate/data-engineering-etl/decodable" },
{ label: "Supabase", link: "/integrate/data-engineering-etl/supabase" },
],
},
{
label: "Data ingestion & streaming",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/data-ingestion-streaming" },
{ label: "Apache Kafka", link: "/integrate/data-ingestion-streaming/apache-kafka" },
{ label: "EMQX", link: "/integrate/data-ingestion-streaming/emqx" },
{ label: "Fivetran", link: "/integrate/data-ingestion-streaming/fivetran" },
{ label: "HighByte", link: "/integrate/data-ingestion-streaming/highbyte" },
{ label: "HiveMQ", link: "/integrate/data-ingestion-streaming/hivemq" },
{ label: "Ignition", link: "/integrate/data-ingestion-streaming/ignition" },
{ label: "Kepware KEPServerEX", link: "/integrate/data-ingestion-streaming/kepware-kepserverex" },
{ label: "Litmus Edge", link: "/integrate/data-ingestion-streaming/litmus-edge" },
{ label: "Node-RED", link: "/integrate/data-ingestion-streaming/node-red" },
],
},
{
label: "BI & visualization",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/bi-vizualization" },
{ label: "Power BI", link: "/integrate/bi-vizualization/power-bi" },
{ label: "Tableau", link: "/integrate/bi-vizualization/tableau" },
],
},
{
label: "Connectors",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/connectors" },
{
label: "Source",
collapsed: true,
items: [
{ label: "Apache Kafka", link: "/integrate/connectors/source/sync-from-kafka" },
{ label: "PostgreSQL", link: "/integrate/connectors/source/sync-from-postgres" },
{ label: "Amazon S3", link: "/integrate/connectors/source/sync-from-s3" },
],
},
{
label: "Destination",
collapsed: true,
items: [
{
label: "TigerLake (Iceberg)",
collapsed: true,
items: [
{
label: "Set up Iceberg connector",
link: "/integrate/connectors/destination/tigerlake",
attrs: { "data-no-flatten": "true" },
},
{ label: "Query from Snowflake", link: "/integrate/connectors/destination/snowflake" },
{ label: "Query with AWS Glue and Athena", link: "/integrate/connectors/destination/athena" },
],
},
],
},
],
},
{
label: "Code & libraries",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/code" },
{ label: "Connect your app", link: "/integrate/code/connect-your-app" },
],
},
{
label: "Query & administration",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/query-administration" },
{ label: "Azure Data Studio", link: "/integrate/query-administration/azure-data-studio" },
{ label: "DBeaver", link: "/integrate/query-administration/dbeaver" },
{ label: "pgAdmin", link: "/integrate/query-administration/pgadmin" },
{ label: "PostgreSQL", link: "/integrate/query-administration/postgresql" },
{ label: "psql", link: "/integrate/query-administration/psql" },
{ label: "qStudio", link: "/integrate/query-administration/qstudio" },
],
},
{
label: "Secure connectivity",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/secure-connectivity" },
{ label: "Amazon Web Services", link: "/integrate/secure-connectivity/aws" },
{ label: "Corporate data center", link: "/integrate/secure-connectivity/corporate-data-center" },
{ label: "Google Cloud", link: "/integrate/secure-connectivity/google-cloud" },
{ label: "Microsoft Azure", link: "/integrate/secure-connectivity/microsoft-azure" },
],
},
{
label: "Observability & alerting",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/observability-alerting" },
{ label: "Amazon CloudWatch", link: "/integrate/observability-alerting/cloudwatch" },
{ label: "Azure Monitor", link: "/integrate/observability-alerting/azure-monitor" },
{ label: "Datadog", link: "/integrate/observability-alerting/datadog" },
{ label: "Grafana", link: "/integrate/observability-alerting/grafana" },
{ label: "Prometheus", link: "/integrate/observability-alerting/prometheus" },
{ label: "Telegraf", link: "/integrate/observability-alerting/telegraf" },
{ label: "Exported metrics", link: "/integrate/observability-alerting/exported-metrics" },
],
},
{
label: "Configuration & deployment",
collapsed: true,
items: [
{ label: "Overview", link: "/integrate/configuration-deployment" },
{ label: "CloudNativePG", link: "/integrate/configuration-deployment/cloudnativepg" },
{ label: "Kubernetes", link: "/integrate/configuration-deployment/kubernetes" },
{ label: "Terraform", link: "/integrate/configuration-deployment/terraform" },
],
},
],
},
// --- Industry (matches integrationIndustry) ---
{
label: "Industry",
collapsed: true,
items: [
{ label: "Oil and gas", link: "/integrate/?industry=oil-and-gas" },
{ label: "IoT", link: "/integrate/?industry=iot" },
{ label: "Energy", link: "/integrate/?industry=energy" },
{ label: "Crypto", link: "/integrate/?industry=crypto" },
{ label: "Healthcare", link: "/integrate/?industry=healthcare" },
{ label: "Manufacturing", link: "/integrate/?industry=manufacturing" },
],
},
// --- Platform (matches integrationPlatforms) ---
{
label: "Platform",
collapsed: true,
items: [
{ label: "Tiger Cloud on AWS", link: "/integrate/?platform=aws" },
{ label: "Tiger Cloud on Azure", link: "/integrate/?platform=azure" },
{ label: "Self-Hosted", link: "/integrate/?platform=self-hosted" },
],
},
// --- First Party / Third Party ---
{
label: "First party/third party",
collapsed: true,
items: [
{ label: "First party", link: "/integrate/?party=first-party" },
{ label: "Third party", link: "/integrate/?party=third-party" },
],
},
// --- Technology ---
{
label: "Technology",
collapsed: true,
items: [
{ label: "PostgreSQL", link: "/integrate/?technology=PostgreSQL" },
{ label: "Python", link: "/integrate/?technology=Python" },
{ label: "SQL", link: "/integrate/?technology=SQL" },
{ label: "Kafka", link: "/integrate/?technology=Kafka" },
{ label: "AWS", link: "/integrate/?technology=AWS" },
{ label: "Azure", link: "/integrate/?technology=Azure" },
{ label: "GCP", link: "/integrate/?technology=GCP" },
{ label: "Terraform", link: "/integrate/?technology=Terraform" },
{ label: "Kubernetes", link: "/integrate/?technology=Kubernetes" },
{ label: "Grafana", link: "/integrate/?technology=Grafana" },
{ label: "Prometheus", link: "/integrate/?technology=Prometheus" },
{ label: "REST API", link: "/integrate/?technology=REST+API" },
],
},
{
label: "Troubleshooting",
collapsed: true,
items: [{ label: "Troubleshooting", link: "/integrate/troubleshooting" }],
},