forked from velopack/velopack.docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebars.ts
106 lines (98 loc) · 3.74 KB
/
sidebars.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
106
import type { SidebarsConfig, PropSidebarItemHtml, PropSidebarItemLink } from '@docusaurus/plugin-content-docs';
function link(label: string, href: string, description?: string): PropSidebarItemLink {
return {
type: 'link',
label: label,
href: href,
description,
}
}
function doc(docId: string, label?: string): any {
return {
type: 'doc',
label: label,
id: docId,
}
}
function title(title: string): PropSidebarItemHtml {
return {
type: 'html',
value: `<span class="sidebar-title-only">${title}</span>`,
defaultStyle: true,
}
}
function auto(dirName: string, title: string, description?: string, indexPage?: string): any {
return {
type: 'category',
label: title,
items: [{ type: "autogenerated", dirName: dirName }],
link: indexPage ? { type: 'doc', id: indexPage } : { type: 'generated-index' },
description,
}
}
const sidebars: SidebarsConfig = {
mainSidebar: [
title("Getting Started"),
"index",
{
type: 'category',
label: 'Quick Start',
items: [
doc("getting-started/csharp", "C# .NET"),
doc("getting-started/cpp", "C++"),
doc("getting-started/electron", "JS / Electron"),
doc("getting-started/rust", "Rust"),
doc("getting-started/fusion-cli", "Fusion CLI"),
],
link: { type: 'generated-index' },
},
{
type: 'category',
label: 'Sample Apps',
items: [
link("C# / AvaloniaUI", "https://github.com/velopack/velopack/tree/develop/samples/CSharpAvalonia"),
link("C# / Unity Mono", "https://github.com/velopack/velopack/tree/develop/samples/CSharpUnityMono"),
link("C# / Uno", "https://github.com/velopack/velopack/tree/develop/samples/CSharpUno"),
link("C# / WPF", "https://github.com/velopack/velopack/tree/develop/samples/CSharpWpf"),
link("C++ / Win32", "https://github.com/velopack/velopack.fusion/tree/master/for-cpp/samples/win32"),
link("JS / Electron", "https://github.com/velopack/velopack.fusion/tree/master/for-js/samples/electron-forge"),
link("Rust / Iced", "https://github.com/velopack/velopack.fusion/tree/master/for-rust/samples/iced"),
],
link: { type: 'generated-index' },
},
title("Essentials"),
auto("integrating", "Integrating", "Learn how to integrate the Velopack library with your application."),
auto("packaging", "Packaging", "Learn how to package your application with Velopack."),
auto("distributing", "Distributing", "Learn how to distribute your Velopack releases to your users."),
title("Advanced"),
auto("contributing", "Contributing", "Learn how to contribute to the Velopack project."),
auto("migrating", "Migrating", "Learn how to migrate your existing application to Velopack."),
doc("troubleshooting/debugging", "Debugging & Logging"),
doc("troubleshooting/faq", "FAQ"),
],
referenceSidebar: [
{
type: 'category',
label: "Reference",
link: { type: 'doc', id: "reference/index" },
collapsed: false,
collapsible: false,
items: [
auto("reference/cs", "C#", "The C# API reference for Velopack. See the available namespaces below.", "reference/cs/Velopack/index"),
doc("reference/cpp/api", "C++"),
{
type: 'category',
label: "JS",
items: [
{ type: "autogenerated", dirName: "reference/js/classes" },
{ type: "autogenerated", dirName: "reference/js/enums" },
],
link: { type: 'generated-index' },
},
link("Rust", "https://docs.rs/velopack", "Link to docs.rs/velopack"),
auto("reference/cli/content", "CLI", "The Velopack CLI reference.", "reference/cli/index"),
],
},
]
};
export default sidebars;