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
70 lines (68 loc) · 1.73 KB
/
Copy pathsidebar.ts
File metadata and controls
70 lines (68 loc) · 1.73 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
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 = [
{
title: "General",
pages: [
makePage("Introduction", undefined, ["what", "railway"], "/"),
makePage("Getting Started", undefined, ["start"]),
makePage("Environments", undefined, ["plugins", "containers"]),
makePage("Projects"),
makePage("Starters"),
],
},
{
title: "CLI",
pages: [
makePage("Quick Start", "cli"),
makePage("Installation", "cli", ["install"]),
makePage("API Reference", "cli"),
],
},
{
title: "Deployments",
pages: [
makePage("Railway Up", "deployment", ["deploy"], "/deployment/up"),
makePage("GitHub Triggers", "deployment", ["git"]),
makePage("Builds", "deployment", [
"node",
"python",
"ruby",
"golang",
"java",
"procfile",
"deploy",
]),
makePage("Serverless", "deployment", ["vercel", "netlify"]),
makePage("Self Hosted Server", "deployment", [
"aws",
"digital ocean",
"gcp",
]),
makePage("Project Tokens", "deployment", ["ci", "testing"]),
],
},
{
title: "Plugins",
pages: [
makePage("PostgreSQL", "plugins", ["database", "sql"]),
makePage("MySQL", "plugins", ["database", "sql"]),
makePage("Redis", "plugins", ["key", "value", "store", "cache"]),
makePage("MongoDB", "plugins", ["database", "nosql"]),
],
},
];