-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsidebars.ts
More file actions
102 lines (94 loc) · 4.51 KB
/
sidebars.ts
File metadata and controls
102 lines (94 loc) · 4.51 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
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: 'Getting Started',
items: [
doc("getting-started/csharp", "C#"),
doc("getting-started/cpp", "C / C++"),
doc("getting-started/javascript", "JavaScript"),
doc("getting-started/python", "Python"),
doc("getting-started/rust", "Rust"),
],
link: { type: 'generated-index' },
},
{
type: 'category',
label: 'Sample Apps',
items: [
//!! AUTO-GENERATED-START SAMPLES-TOC
link("C++ / wxWidgets", "https://github.com/velopack/velopack/tree/develop/samples/CPlusPlusWidgets", "Velopack in a cross-platform C++ app, using wxWidgets."),
link("C++ / Win32", "https://github.com/velopack/velopack/tree/develop/samples/CPlusPlusWin32", "Velopack in a C++ app, using the Win32 UI starter template."),
link("C# / Avalonia", "https://github.com/velopack/velopack/tree/develop/samples/CSharpAvalonia", "Velopack in a cross-platform app with [Avalonia](https://avaloniaui.net/)."),
link("C# / UnityMono", "https://github.com/velopack/velopack/tree/develop/samples/CSharpUnityMono", "Velopack with [Unity Game Engine](https://unity.com/) and Mono."),
link("C# / Uno", "https://github.com/velopack/velopack/tree/develop/samples/CSharpUno", "Velopack in a cross-platform app with [Uno Platform](https://github.com/unoplatform/uno)."),
link("C# / Wpf", "https://github.com/velopack/velopack/tree/develop/samples/CSharpWpf", "Velopack with WPF on Windows."),
link("NodeJS / Electron", "https://github.com/velopack/velopack/tree/develop/samples/NodeJSElectron", "Velopack in a cross-platform JavaScript app with [Electron](https://www.electronjs.org/)."),
link("Python / WXPython", "https://github.com/velopack/velopack/tree/develop/samples/PythonWXPython", "Velopack in a cross-platform python app with the [WXPython](https://wxpython.org/) ui framework."),
link("Rust / Iced", "https://github.com/velopack/velopack/tree/develop/samples/RustIced", "Velopack in a cross-platform app with [Iced](https://github.com/iced-rs/iced)."),
//!! AUTO-GENERATED-END SAMPLES-TOC
],
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"),
auto("reference/cpp", "C++", "The C++ API reference for Velopack.", "reference/cpp/index"),
auto("reference/js", "JS", "The JS API reference for Velopack.", "reference/js/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;