-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfig.ts
161 lines (159 loc) · 6.83 KB
/
config.ts
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
export default {
lang: 'id-ID',
title: 'Refactoring',
titleTemplate: 'Refactoring Bahasa Indonesia',
description: 'Panduan refactoring untuk mengatasi code berantakan yang anda buat.',
editLink: true,
head: [
['meta', { property: 'og:description', content: 'Panduan refactoring untuk mengatasi code berantakan yang anda buat.' }],
['meta', { property: 'og:image', content: 'https://user-images.githubusercontent.com/45036724/184270375-8b25b8fb-fbf8-48fc-8dd8-9162d1ea049a.png' }],
['meta', { property: 'og:type', content: 'article' }],
],
themeConfig: {
sidebar: {
'/martin-fowler/': sidebarMartin(),
'/girish/': sidebarGirish(),
},
nav: [
{ text: 'Tentang', link: '/tentang' },
{ text: 'Versi Martin Fowler', link: '/martin-fowler/' },
{ text: 'Versi Girish', link: '/girish/' },
],
editLink: {
pattern: 'https://github.com/zuramai/refactoring/edit/main/docs/:path',
text: 'Ubah halaman ini di GitHub'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/zuramai/refactoring' }
],
footer: {
message: 'Created by Saugi',
copyright: 'Materi dibuat oleh @mrp130'
}
},
}
function sidebarMartin() {
return [
{
text: 'Panduan',
items: [
{ text: 'Tentang Martin Fowler', link: '/martin-fowler/' },
]
},
{
text: 'Dispensables',
items: [
{ text: 'Tentang Dispensables', link: '/martin-fowler/dispensables/' },
{ text: 'Comments', link: '/martin-fowler/dispensables/comments/' },
{ text: 'Duplicate Code', link: '/martin-fowler/dispensables/duplicate-code/' },
{ text: 'Lazy Class', link: '/martin-fowler/dispensables/lazy-class/' },
{ text: 'Data Class', link: '/martin-fowler/dispensables/data-class/' },
{ text: 'Dead Code', link: '/martin-fowler/dispensables/dead-code/' },
{ text: 'Speculative Generality', link: '/martin-fowler/dispensables/speculative-generality/' },
]
},
{
text: 'Bloaters',
items: [
{ text: 'Tentang Bloaters', link: '/martin-fowler/bloaters/' },
{ text: 'Long Method', link: '/martin-fowler/bloaters/long-method/' },
{ text: 'Large Class', link: '/martin-fowler/bloaters/large-class/' },
{ text: 'Primitive Obsession', link: '/martin-fowler/bloaters/primitive-obsession/' },
{ text: 'Long Parameter List', link: '/martin-fowler/bloaters/long-parameter-list/' },
{ text: 'Data Clumps', link: '/martin-fowler/bloaters/data-clumps/' },
]
},
{
text: 'Change Preventers',
items: [
{ text: 'Tentang Change Preventers', link: '/martin-fowler/change-preventers/' },
{ text: 'Divergent Change', link: '/martin-fowler/change-preventers/divergent-change/' },
{ text: 'Parallel Inheritance Hierarchies', link: '/martin-fowler/change-preventers/parallel-inheritance-hierarchies/' },
{ text: 'Shotgun Surgery', link: '/martin-fowler/change-preventers/shotgun-surgery/' },
]
},
{
text: 'Object-Orientation Abusers',
items: [
{ text: 'Tentang Object-Orientation Abusers', link: '/martin-fowler/oo-abusers/' },
{ text: 'Switch Statements', link: '/martin-fowler/oo-abusers/switch-statements/' },
{ text: 'Temporary Field', link: '/martin-fowler/oo-abusers/temporary-field/' },
{ text: 'Refused Bequest', link: '/martin-fowler/oo-abusers/refused-bequest/' },
{ text: 'Alternative Classes with Different Interfaces', link: '/martin-fowler/oo-abusers/alternative-classes/' },
]
},
{
text: 'Couplers',
items: [
{ text: 'Tentang Couplers', link: '/martin-fowler/couplers/' },
{ text: 'Feature Envy', link: '/martin-fowler/couplers/feature-envy/' },
{ text: 'Inappropriate Intimacy', link: '/martin-fowler/couplers/inappropriate-intimacy/' },
{ text: 'Message Chains', link: '/martin-fowler/couplers/message-chains/' },
{ text: 'Middle Man', link: '/martin-fowler/couplers/middle-man/' },
]
},
]
}
function sidebarGirish() {
return [
{
text: 'Panduan',
items: [
{ text: 'Tentang Girish', link: '/girish/' },
]
},
{
text: 'Hierarchy Smells',
collapsible: true,
items: [
{ text: 'Tentang', link: '/girish/hierarchy/' },
{ text: 'Missing Hierarchy', link: '/girish/hierarchy/missing/' },
{ text: 'Unnecessary Hierarchy', link: '/girish/hierarchy/unnecessary/' },
{ text: 'Unfactored Hierarchy', link: '/girish/hierarchy/unfactored/' },
{ text: 'Wide Hierarchy', link: '/girish/hierarchy/wide/' },
{ text: 'Speculative Hierarchy', link: '/girish/hierarchy/speculative/' },
// { text: 'Deep Hierarchy', link: '/girish/hierarchy/deep/' },
{ text: 'Rebellious Hierarchy', link: '/girish/hierarchy/rebellious/' },
// { text: 'Broken Hierarchy', link: '/girish/hierarchy/broken/' },
// { text: 'Multipath Hierarchy', link: '/girish/hierarchy/multipath/' },
// { text: 'Cyclic Hierarchy', link: '/girish/hierarchy/cyclic/' },
]
},
{
text: 'Abstraction Smells',
collapsible: true,
items: [
{ text: 'Tentang', link: '/girish/abstraction/' },
{ text: 'Missing Abstractions', link: '/girish/abstraction/missing/' },
{ text: 'Imperative Abstractions', link: '/girish/abstraction/imperative/' },
{ text: 'Incomplete Abstractions', link: '/girish/abstraction/incomplete/' },
// { text: 'Multifaceted Abstractions', link: '/girish/abstraction/multifaceted/' },
{ text: 'Unnecessary Abstractions', link: '/girish/abstraction/unnecessary/' },
{ text: 'Unitilized Abstractions', link: '/girish/abstraction/unutilized/' },
{ text: 'Duplicate Abstractions', link: '/girish/abstraction/duplicate/' },
]
},
{
text: 'Encapsulation Smells',
collapsible: true,
items: [
{ text: 'Tentang', link: '/girish/encapsulation/' },
{ text: 'Deficient Encapsulation', link: '/girish/encapsulation/deficient/' },
{ text: 'Leaky Encapsulation', link: '/girish/encapsulation/leaky/' },
{ text: 'Missing Encapsulation', link: '/girish/encapsulation/missing/' },
{ text: 'Unexploited Encapsulation', link: '/girish/encapsulation/unexploited/' },
]
},
{
text: 'Modularization Smells',
collapsible: true,
items: [
{ text: 'Tentang', link: '/girish/modularization/' },
{ text: 'Broken Modularization', link: '/girish/modularization/broken/' },
{ text: 'Insufficient Modularization', link: '/girish/modularization/insufficient/' },
{ text: 'Cyclically-dependent Modularization', link: '/girish/modularization/cyclically-dependent/' },
{ text: 'Hub-like Modularization', link: '/girish/modularization/hub/' },
]
},
]
}