-
-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathconfig.ts
105 lines (103 loc) · 3.28 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
import { defineConfig } from "vitepress";
const HOSTNAME = "https://openapi-ts.pages.dev";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "OpenAPI TypeScript",
description: "Consume OpenAPI 3.0 & 3.1 schemas in TypeScript",
cleanUrls: true,
srcExclude: ["**/*/CONTRIBUTRING.md", "**/*/README.md"],
ignoreDeadLinks: [/CODE_OF_CONDUCT/],
head: [
["link", { rel: "shortcut icon", href: "/favicon.svg", type: "image/svg" }],
],
sitemap: {
hostname: HOSTNAME,
},
/** @see https://vitepress.dev/reference/default-theme-config */
themeConfig: {
siteTitle: false,
logo: "/assets/openapi-ts.svg",
nav: [
{
text: "Versions",
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" },
],
},
],
},
search: {
provider: "algolia",
options: {
appId: "NA92XVKBVS",
apiKey: "4f3ce9ca7edc3b83c209e6656ab29eb8",
indexName: "openapi-ts",
},
},
socialLinks: [
{ icon: "github", link: "https://github.com/drwpow/openapi-typescript" },
],
footer: {
message:
'Released under the <a href="https://github.com/drwpow/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT License</a>.',
},
},
});