forked from openapi-ts/openapi-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathen.ts
97 lines (96 loc) · 3.25 KB
/
en.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
import { defineConfig } from "vitepress";
export const en = defineConfig({
description: "Consume OpenAPI 3.0 & 3.1 schemas in TypeScript",
themeConfig: {
nav: [
{
text: "Version",
items: [
{ text: "7.x", link: "/introduction" },
{ text: "6.x", link: "/6.x/introduction" },
],
},
],
sidebar: {
// 6.x docs
"/6.x/": [
{
text: "openapi-typescript (6.x)",
items: [
{ text: "Introduction", link: "/6.x/introduction" },
{ text: "CLI", link: "/6.x/cli" },
{ text: "Node.js API", link: "/6.x/node" },
{ text: "Advanced", link: "/6.x/advanced" },
{ text: "About", link: "/6.x/about" },
],
},
{
text: "openapi-fetch",
items: [
{ text: "Getting Started", link: "/openapi-fetch/" },
{
text: "Middleware & Auth",
link: "/openapi-fetch/middleware-auth",
},
{ text: "Testing", link: "/openapi-fetch/testing" },
{ text: "Examples", link: "/openapi-fetch/examples" },
{ text: "API", link: "/openapi-fetch/api" },
{ text: "About", link: "/openapi-fetch/about" },
],
},
],
// default (7.x) docs
"/": [
{
text: "openapi-typescript (7.x)",
items: [
{ text: "Introduction", link: "/introduction" },
{ text: "CLI", link: "/cli" },
{ text: "Node.js API", link: "/node" },
{ text: "Examples", link: "/examples" },
{ text: "Migrating from 6.x", link: "/migration-guide" },
{ text: "Advanced", link: "/advanced" },
{ text: "About", link: "/about" },
],
},
{
text: "openapi-fetch",
items: [
{ text: "Getting Started", link: "/openapi-fetch/" },
{
text: "Middleware & Auth",
link: "/openapi-fetch/middleware-auth",
},
{ text: "Testing", link: "/openapi-fetch/testing" },
{ text: "Examples", link: "/openapi-fetch/examples" },
{ text: "API", link: "/openapi-fetch/api" },
{ text: "About", link: "/openapi-fetch/about" },
],
},
{
text: "openapi-react-query",
items: [
{ text: "Getting Started", link: "/openapi-react-query/" },
{ text: "useQuery", link: "/openapi-react-query/use-query" },
{ text: "useMutation", link: "/openapi-react-query/use-mutation" },
{ text: "useSuspenseQuery", link: "/openapi-react-query/use-suspense-query" },
{ text: "About", link: "/openapi-react-query/about" },
],
},
],
},
search: {
provider: "algolia",
options: {
appId: "NA92XVKBVS",
apiKey: "4f3ce9ca7edc3b83c209e6656ab29eb8",
indexName: "openapi-ts",
},
},
socialLinks: [{ icon: "github", link: "https://github.com/openapi-ts/openapi-typescript" }],
footer: {
message:
'Released under the <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT License</a>.',
},
},
});