-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsidebar.js
More file actions
52 lines (52 loc) · 1.4 KB
/
sidebar.js
File metadata and controls
52 lines (52 loc) · 1.4 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
import { resolve } from 'path'
import { readdirSync } from 'fs'
function getFiles(dir) {
var base = resolve(__dirname, 'docs');
return readdirSync(resolve(base, dir))
.filter(function (file) { return file.endsWith('.md') && file !== 'README.md'; })
.map(function (file) { return "/".concat(dir, "/").concat(file); });
}
export const sidebar = {
'/guide/': [
'/guide/introduction/',
'/guide/getting-started/',
{
text: 'Iso Build',
link: '/guide/iso-build/how-to-build',
children: [
'/guide/iso-build/how-to-build.md',
'/guide/iso-build/config.md',
]
},
{
text: 'Specs Repository',
link: '/guide/specs-repo/overview',
children: [
'/guide/specs-repo/overview.md',
'/guide/specs-repo/structure.md',
]
},
{
text: 'Potos Roles',
link: '/guide/potos-roles/',
},
{
text: 'Write your own Role',
link: '/guide/own-role/',
children: [
'/guide/own-role/ansible_basics.md',
'/guide/own-role/potos_playbook.md',
'/guide/own-role/variables.md',
'/guide/own-role/molecule.md',
'/guide/own-role/cicd.md',
'/guide/own-role/codingconventions.md',
'/guide/own-role/testing.md',
],
},
{
text: 'FAQ',
link: '/guide/faq/',
},
],
'/advanced/helloWorld/': getFiles('advanced/helloWorld'),
};