-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfig.ts
113 lines (112 loc) · 3.93 KB
/
config.ts
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
import { defineConfig } from "vitepress";
import { tabsMarkdownPlugin } from "vitepress-plugin-tabs";
export default defineConfig({
title: "SafeQL",
description: "Write SQL queries with confidence!",
markdown: {
theme: {
dark: "material-theme-ocean",
light: "min-light",
},
config(md) {
md.use(tabsMarkdownPlugin);
},
},
themeConfig: {
search: {
provider: "local",
},
editLink: {
pattern: "https://github.com/ts-safeql/safeql/tree/main/docs/:path",
},
logo: "/ts-logo.svg",
sidebar: [
{
text: "Guide",
items: [
{ text: "Introduction", link: "/guide/introduction" },
{ text: "Getting Started", link: "/guide/getting-started" },
{ text: "Configuration", link: "/guide/configuration" },
],
},
{
text: "Compatibility",
items: [
{ text: "Prisma", link: "/compatibility/prisma" },
{ text: "Postgres.js", link: "/compatibility/postgres.js" },
{ text: "@vercel/postgres", link: "/compatibility/vercel" },
{ text: "slonik", link: "/compatibility/slonik" },
{ text: "node-postgres (pg)", link: "/compatibility/node-postgres" },
{ text: "Sequelize", link: "/compatibility/sequelize" },
],
},
{
text: "Advanced",
items: [{ text: "Incremental adoption", link: "/advanced/incremental-adoption" }],
},
{
text: "@ts-safeql/sql-tag",
items: [
{ text: "Introduction", link: "/libraries/sql-tag/introduction" },
{ text: "Installation", link: "/libraries/sql-tag/installation" },
{ text: "Usage", link: "/libraries/sql-tag/usage" },
],
},
{
text: "API",
items: [
{ text: "useConfigFile", link: "/api/index.md#useconfigfile" },
{
text: "connections",
link: "/api/index.md#connections",
items: [
{ text: "databaseUrl", link: "/api/index.md#connections-databaseurl" },
{ text: "migrationsDir", link: "/api/index.md#connections-migrationsdir" },
{ text: "watchMode", link: "/api/index.md#connections-watchmode-optional" },
{ text: "connectionUrl", link: "/api/index.md#connections-connectionurl-optional" },
{ text: "databaseName", link: "/api/index.md#connections-databasename-optional" },
{ text: "targets", link: "/api/index.md#connections-targets" },
{ text: "targets.tag", link: "/api/index.md#connections-targets-tag" },
{ text: "targets.wrapper", link: "/api/index.md#connections-targets-wrapper" },
{
text: "targets.maxDepth",
link: "/api/index.md#connections-targets-maxdepth-optional",
},
{
text: "targets.transform",
link: "/api/index.md#connections-targets-transform-optional",
},
{
text: "targets.fieldTransform",
link: "/api/index.md#connections-targets-fieldtransform-optional",
},
{
text: "targets.skipTypeAnnotations",
link: "/api/index.md#connections-targets-skiptypeannotations-optional",
},
{ text: "keepAlive", link: "/api/index.md#connections-keepalive-optional" },
{
text: "overrides.types",
link: "/api/index.md#connections-overrides-types-optional",
},
{
text: "overrides.columns",
link: "/api/index.md#connections-overrides-columns-optional",
},
],
},
],
},
],
socialLinks: [
{
icon: "github",
link: "https://github.com/ts-safeql/safeql",
},
{
icon: "twitter",
link: "https://twitter.com/CoEliya",
},
],
},
});