-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar_docs.js
57 lines (50 loc) · 1.45 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
let templates = {
'<Templates>': [
{
'WgCore Book': [
'user_guides/templates/wgcore/shaders_composition',
'user_guides/templates/wgcore/buffers_initialization',
'user_guides/templates/wgcore/buffers_readback',
'user_guides/templates/wgcore/hot_reloading',
'user_guides/templates/wgcore/timestamp_queries',
'user_guides/templates/wgcore/overwriting_shaders'
],
}
]
};
let templates_injected = {
'WgCore Book': [
'user_guides/wgcore/shaders_composition',
'user_guides/wgcore/buffers_initialization',
'user_guides/wgcore/buffers_readback',
'user_guides/wgcore/hot_reloading',
'user_guides/wgcore/timestamp_queries',
'user_guides/wgcore/overwriting_shaders'
],
}
let user_guides;
if (!process.env.PUBLISH_MODE) {
user_guides = {
...templates,
'<templates-injected>': templates_injected
};
} else {
user_guides = templates_injected;
}
const config = {
docs: [
'about_wgmath',
user_guides,
{
'WGSL Documentation': [
'api/wgblas-api-doc',
'api/wgebra-api-doc',
'api/wgparry2d-api-doc',
'api/wgparry3d-api-doc',
'api/wgrapier2d-api-doc',
'api/wgrapier3d-api-doc',
],
}
],
};
export default config;