forked from railwayapp/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.ts
More file actions
128 lines (126 loc) · 3.47 KB
/
Copy pathsidebar.ts
File metadata and controls
128 lines (126 loc) · 3.47 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
import { IPage, ISidebarContent } from "../types";
const makePage = (
title: string,
category?: string,
tags?: string[],
slug?: string,
): IPage => ({
title,
tags,
category,
slug:
slug ??
`/${category != null ? category + "/" : ""}${title
.toLowerCase()
.replace(/\s+/g, "-")}`,
});
export const sidebarContent: ISidebarContent = [
// The goal is to have the docs be in a narrative structure
{
title: "",
pages: [
makePage("Introduction", undefined, ["home", "railway", "index"], "/"),
makePage("Getting Started", undefined, [
"introduction",
"tutorial",
"getting started",
]),
makePage("Railway Metro", undefined, [
"introduction",
"tutorial",
"getting started",
]),
],
},
{
title: "Develop",
pages: [
makePage("CLI", "develop", ["CLI", "command", "line"]),
makePage("Projects", "develop", ["project", "dashboard", "repo"]),
makePage("Plugins", "develop", ["database", "plugin", "db"]),
makePage("Variables", "develop", ["railway run", "variables"]),
makePage("Environments", "develop", [
"staging",
"create env",
"environment",
]),
],
},
{
title: "Deploy",
pages: [
makePage("Railway Up", "deploy", [
"deploying from command line",
"live",
"deploy",
"up",
]),
makePage("Deployments", "deploy", ["logs", "singleton", "rollback"]),
makePage("Builds", "deploy", [
"builds",
"procfile",
"buildpacks",
"heroku",
]),
makePage("NodeJS", "deploy", ["node", "javascript"]),
makePage("Python", "deploy", ["python", "requirements.txt"]),
makePage("Go", "deploy", ["go"]),
makePage("Ruby", "deploy", ["ruby"]),
makePage("Java", "deploy", ["java", "maven"]),
makePage("Docker", "deploy", ["docker, compose"]),
makePage("Exposing Your App", "deploy", [
"port",
"bad gateway",
"internet",
"custom domain",
"cloudflare",
]),
makePage("Monorepo", "deploy", ["start command", "yarn workspace"]),
makePage("Integrations", "deploy", [
"vercel",
"netlify",
"project tokens",
"ci",
"continuous integration",
"aws",
"gcp",
"azure",
"digital ocean",
]),
],
},
{
title: "Diagnose",
pages: [
makePage("Metrics", "diagnose", ["metrics", "logs"]),
makePage("Webhooks", "diagnose", ["webhooks", "notifcations"]),
makePage("Project Usage", "diagnose", ["usage", "pricing"]),
makePage("Healthchecks", "diagnose", ["health", "healthcheck"]),
],
},
{
title: "Plugins",
pages: [
makePage("Database View", "plugins", [
"management view",
"plugin view",
"create table",
]),
makePage("PostgreSQL", "plugins", ["database", "sql"]),
makePage("MySQL", "plugins", ["database", "sql"]),
makePage("Redis", "plugins", ["key", "value", "store", "cache"]),
makePage("MongoDB", "plugins", ["database", "nosql"]),
],
},
{
title: "Reference",
pages: [
makePage("Accounts", "reference", ["accounts"]),
makePage("Teams", "reference", ["teams"]),
makePage("CLI API", "reference", ["cli"]),
makePage("Starters", "reference", ["starters"]),
makePage("Guides", "reference", ["guides"]),
makePage("Limits", "reference", ["limits"]),
],
},
];