-
Notifications
You must be signed in to change notification settings - Fork 49
/
sidebar_docs.js
123 lines (115 loc) · 3.71 KB
/
sidebar_docs.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
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
let template = {
'<Templates>': [
'user_guides/templates_injected/getting_started',
'user_guides/templates_injected/getting_started_bevy',
'user_guides/templates_injected/getting_started_js',
'user_guides/templates_injected/introduction_to_nalgebra',
'user_guides/templates_injected/simulation_structures',
'user_guides/templates_injected/rigid_bodies',
'user_guides/templates_injected/colliders',
'user_guides/templates_injected/joints',
'user_guides/templates_injected/character_controller',
'user_guides/templates_injected/scene_queries',
'user_guides/templates_injected/advanced_collision_detection',
'user_guides/templates_injected/advanced_collision_detection_js',
// 'user_guides/templates_injected/integration_parameters',
'user_guides/templates_injected/serialization',
'user_guides/templates_injected/determinism',
'user_guides/templates_injected/common_mistakes',
// 'user_guides/templates_injected/the_rapier_testbed',
// 'user_guides/templates_injected/common_recipes',
]
};
let specialized_guides = {
'Rust': [
'user_guides/rust/getting_started',
'user_guides/rust/introduction_to_nalgebra',
'user_guides/rust/simulation_structures',
'user_guides/rust/rigid_bodies',
'user_guides/rust/colliders',
'user_guides/rust/joints',
'user_guides/rust/character_controller',
'user_guides/rust/scene_queries',
'user_guides/rust/advanced_collision_detection',
// 'user_guides/rust/integration_parameters',
'user_guides/rust/serialization',
'user_guides/rust/determinism',
'user_guides/rust/common_mistakes',
// 'user_guides/rust/the_rapier_testbed',
// 'user_guides/rust/common_recipes',
],
'Bevy Plugin': [
'user_guides/bevy_plugin/getting_started_bevy',
// 'user_guides/bevy_plugin/simulation_structures',
'user_guides/bevy_plugin/rigid_bodies',
'user_guides/bevy_plugin/colliders',
'user_guides/bevy_plugin/joints',
'user_guides/bevy_plugin/character_controller',
'user_guides/bevy_plugin/scene_queries',
'user_guides/bevy_plugin/advanced_collision_detection',
'user_guides/bevy_plugin/common_mistakes',
],
'JavaScript': [
'user_guides/javascript/getting_started_js',
'user_guides/javascript/rigid_bodies',
'user_guides/javascript/colliders',
'user_guides/javascript/joints',
'user_guides/javascript/character_controller',
'user_guides/javascript/scene_queries',
'user_guides/javascript/advanced_collision_detection_js',
'user_guides/javascript/serialization',
'user_guides/javascript/determinism',
'user_guides/javascript/common_mistakes',
],
};
let user_guides;
if (!process.env.PUBLISH_MODE) {
user_guides = template;
} else {
user_guides = specialized_guides;
}
const config = {
docs: [
'about_rapier',
{
'User Guides': [user_guides],
},
{
'API Documentation': [
'api/javascript/JavaScript2D',
'api/javascript/JavaScript3D',
{
type: 'link',
label: 'bevy_rapier2d',
href: 'https://docs.rs/bevy_rapier2d'
},
{
type: 'link',
label: 'bevy_rapier3d',
href: 'https://docs.rs/bevy_rapier3d'
},
{
type: 'link',
label: 'rapier2d',
href: 'https://docs.rs/rapier2d'
},
{
type: 'link',
label: 'rapier3d',
href: 'https://docs.rs/rapier3d'
},
{
type: 'link',
label: 'rapier2d-f64',
href: 'https://docs.rs/rapier2d-f64'
},
{
type: 'link',
label: 'rapier3d-f64',
href: 'https://docs.rs/rapier3d-f64'
},
],
}
],
};
export default config;