-
Notifications
You must be signed in to change notification settings - Fork 7
/
sidebars.js
80 lines (71 loc) · 2.95 KB
/
sidebars.js
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
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// To add an external link to the Java docs, we had to switch to a manually defined sidebar for the references section.
tutorialSidebar: [
{type: 'doc', id: 'OVERVIEW', label: 'OVERVIEW', className: 'sidebar-title'},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'USE CASES',collapsed: true, items: [{type: 'autogenerated', dirName: 'use-cases'}]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'GET STARTED', collapsed: true, items: [
{type: 'autogenerated', dirName: 'get_started'},
{
type: 'link',
label: 'Examples',
href: 'https://github.com/restatedev/examples',
},
]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'CONCEPTS',collapsed: true, items: [{type: 'autogenerated', dirName: 'concepts'}]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'doc', id: 'guides', label: 'GUIDES', className: 'sidebar-title'},
{type: 'category', label: 'GUIDES', className: 'display-none', items: [{type: 'autogenerated', dirName: 'guides'}]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'DEVELOP', link: {type: 'doc', id: 'develop/develop'}, collapsed: true, items: [
{type: 'autogenerated', dirName: 'develop'},
{
type: 'link',
label: 'Rust SDK',
href: 'https://docs.rs/restate-sdk/latest/restate_sdk/',
},
]},
{type: 'category', label: 'INVOKE', collapsed: true, items: [{type: 'autogenerated', dirName: 'invoke'}]},
{type: 'category', label: 'DEPLOY', link: {type: 'doc', id: 'deploy/deploy'}, collapsed: true, items: [{type: 'autogenerated', dirName: 'deploy'}]},
{type: 'category', label: 'OPERATE', link: {type: 'doc', id: 'operate/operate'}, collapsed: true, items: [{type: 'autogenerated', dirName: 'operate'}]},
{type: 'html', value: '<hr class="margin-vert--sm">'},
{type: 'category', label: 'REFERENCES', items: [
{
type: 'link',
label: 'Java docs',
href: 'pathname:///javadocs/index.html',
},
{
type: 'link',
label: 'Kotlin docs',
href: 'pathname:///ktdocs/index.html',
},
{type: 'autogenerated', dirName: 'references'},
]},
],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
module.exports = sidebars;