-
-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathconfig.ts
84 lines (83 loc) · 2.61 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
import { defineConfig } from "vitepress";
import packageJSON from "../../packages/openapi-typescript/package.json";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "OpenAPI TS",
description: "Consume OpenAPI 3.0 & 3.1 schemas in TypeScript",
cleanUrls: true,
srcExclude: ["**/*/CONTRIBUTRING.md", "**/*/README.md"],
ignoreDeadLinks: [/CODE_OF_CONDUCT/],
/** @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: "Introduction", link: "/openapi-fetch/" },
{ 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: "Introduction", link: "/openapi-fetch/" },
{ 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" },
],
},
});