-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsidebars.js
More file actions
34 lines (28 loc) · 760 Bytes
/
sidebars.js
File metadata and controls
34 lines (28 loc) · 760 Bytes
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
// Sidebars are copied from the individual docs sites into ./sidebars, loaded and merged
const products = [ 'secretscanner', 'yarahunter', 'packetstreamer', 'flowmeter', 'ebpfguard' ];
var sidebars = {
index: [
{
type: 'html',
value: 'Deepfence Documentation',
className: 'sidebar-title',
},
{
type: 'category',
label: 'Getting Started',
collapsible: false,
link: {
type: 'doc',
id: 'index'
},
items: [
],
},
]
};
products.forEach( product => {
const sidebar = require( `./sidebars/${product}.js` );
sidebars[product] = sidebar[product];
sidebars['index'][1]['items'].push( { type: 'ref', id: `${product}/index` } );
});
module.exports = sidebars;