-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtable-of-contents.js
More file actions
37 lines (36 loc) · 842 Bytes
/
table-of-contents.js
File metadata and controls
37 lines (36 loc) · 842 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
35
36
37
const TOC = {
Introduction: ['introduction/style_guide', 'introduction/introduction'],
Languages: [
'languages/go',
'languages/css',
'languages/html',
'languages/java',
'languages/javascript',
'languages/python',
'languages/rust',
'languages/scala',
'languages/typescript',
],
Frameworks: [
'frameworks/android_native',
'frameworks/next_js',
'frameworks/node_js',
'frameworks/vue_js',
],
Libraries: ['libraries/react'],
OS: ['os/linux', 'os/macos'],
Applications: [
'applications/docker',
'applications/git',
'applications/homebrew',
'applications/oh_my_zsh',
'applications/shell',
'applications/visual_studio_code',
],
}
module.exports = sortedTOC = () => {
for (const [key, value] of Object.entries(TOC)) {
value.sort()
}
return TOC
}