Skip to content

Commit 45bf81d

Browse files
lee-ji-soo-v2lee-ji-soo-v2autofix-ci[bot]
authored
Feature/debug5 (#553)
* 기여하기 템플릿 수정 * 리뷰반영 * "버그 종류"로 통일 * template도 코드 복사할 수 있게 변경 * og image 변경 * Update section titles for clarity in prevent and reproduce debugging documentation * menu추가 * [autofix.ci] apply automated fixes --------- Co-authored-by: lee-ji-soo-v2 <lee-ji-soo-v2@naver.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent acff77f commit 45bf81d

File tree

30 files changed

+420
-218
lines changed

30 files changed

+420
-218
lines changed

fundamentals/debug/.vitepress/config.mts

Lines changed: 101 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -14,109 +14,131 @@ export default defineConfig({
1414
description: "프론트엔드 접근성의 모든 것",
1515
ignoreDeadLinks: false,
1616
base: "/debug/",
17-
themeConfig: {
18-
// https://vitepress.dev/reference/default-theme-config
19-
...sharedConfig.themeConfig,
20-
nav: [{ text: "홈", link: "/" }],
21-
sidebar: [
22-
{
23-
text: "소개",
24-
items: [
25-
{
26-
text: "시작하기",
27-
link: "/pages/introduce.md"
28-
},
29-
{
30-
text: "효과적인 디버깅을 위한 4가지 단계",
31-
link: "/pages/start.md"
32-
},
33-
{
34-
text: "참여하기",
35-
link: "/pages/event.md"
36-
}
37-
]
38-
},
39-
{
40-
text: "실전 가이드",
41-
items: [
17+
locales: {
18+
// temporary
19+
en: {
20+
label: "English",
21+
lang: "en",
22+
themeConfig: { nav: [{ text: "Home", link: "/en/" }] }
23+
},
24+
ja: {
25+
label: "日本語",
26+
lang: "ja",
27+
themeConfig: { nav: [{ text: "ホーム", link: "/ja/" }] }
28+
},
29+
"zh-hans": {
30+
label: "简体中文",
31+
lang: "zh-hans",
32+
themeConfig: { nav: [{ text: "首页", link: "/zh-hans" }] }
33+
},
34+
root: {
35+
label: "한국어",
36+
lang: "ko",
37+
themeConfig: {
38+
// https://vitepress.dev/reference/default-theme-config
39+
...sharedConfig.themeConfig,
40+
nav: [{ text: "홈", link: "/" }],
41+
sidebar: [
4242
{
43-
text: "진단하기",
44-
link: "/pages/diagnose/index.md",
45-
collapsed: false,
43+
text: "소개",
4644
items: [
4745
{
48-
text: "에러 메세지로 원인 추측하기",
49-
link: "/pages/diagnose/error-message.md"
46+
text: "시작하기",
47+
link: "/pages/introduce.md"
48+
},
49+
{
50+
text: "효과적인 디버깅을 위한 4가지 단계",
51+
link: "/pages/start.md"
5052
},
51-
{ text: "작업 지도 그리기", link: "/pages/diagnose/map.md" }
53+
{
54+
text: "참여하기",
55+
link: "/pages/event.md"
56+
}
5257
]
5358
},
5459
{
55-
text: "재현하기",
56-
link: "/pages/reproduce/index.md",
57-
collapsed: false,
60+
text: "실전 가이드",
5861
items: [
5962
{
60-
text: "최대한 간단하게 재현하기",
61-
link: "/pages/reproduce/simply.md"
63+
text: "진단하기",
64+
link: "/pages/diagnose/index.md",
65+
collapsed: false,
66+
items: [
67+
{
68+
text: "에러 메세지로 원인 추측하기",
69+
link: "/pages/diagnose/error-message.md"
70+
},
71+
{ text: "작업 지도 그리기", link: "/pages/diagnose/map.md" }
72+
]
6273
},
63-
{ text: "디버거 활용하기", link: "/pages/reproduce/debugger.md" },
6474
{
65-
text: "일반적인 범위에서 벗어난 값 재현하기",
66-
link: "/pages/reproduce/out-range.md"
75+
text: "재현하기",
76+
link: "/pages/reproduce/index.md",
77+
collapsed: false,
78+
items: [
79+
{
80+
text: "최대한 간단하게 재현하기",
81+
link: "/pages/reproduce/simply.md"
82+
},
83+
{ text: "디버거와 콘솔로그 활용하기", link: "/pages/reproduce/debugger.md" },
84+
{
85+
text: "일반적인 범위에서 벗어난 값 재현하기",
86+
link: "/pages/reproduce/out-range.md"
87+
},
88+
{
89+
text: "반복적인 재현 과정을 자동화하기",
90+
link: "/pages/reproduce/repeat.md"
91+
},
92+
{
93+
text: "버그 발생 경로를 추적하기",
94+
link: "/pages/reproduce/trace.md"
95+
}
96+
]
6797
},
6898
{
69-
text: "반복적인 재현 과정을 자동화하기",
70-
link: "/pages/reproduce/repeat.md"
99+
text: "수정하기",
100+
link: "/pages/fix/index.md",
101+
collapsed: false,
102+
items: [
103+
{ text: "근본 원인 수정하기", link: "/pages/fix/correct.md" },
104+
{ text: "순수함수 만들기", link: "/pages/fix/pure.md" },
105+
{ text: "데드코드 제거하기", link: "/pages/fix/dead-code.md" }
106+
]
71107
},
72108
{
73-
text: "버그 발생 경로를 추적하기",
74-
link: "/pages/reproduce/trace.md"
109+
text: "재발 방지하기",
110+
link: "/pages/prevent/index.md",
111+
collapsed: false,
112+
items: [
113+
{
114+
text: "에러 로그 상세히 남기기",
115+
link: "/pages/prevent/error-log.md"
116+
},
117+
{
118+
text: "버그 리포트 남기기",
119+
link: "/pages/prevent/bug-report.md"
120+
},
121+
{
122+
text: "팀과 공유하고 공통 유틸에 반영하기",
123+
link: "/pages/prevent/util.md"
124+
}
125+
]
75126
}
76127
]
77128
},
78129
{
79-
text: "수정하기",
80-
link: "/pages/fix/index.md",
81-
collapsed: false,
82-
items: [
83-
{ text: "근본 원인 수정하기", link: "/pages/fix/correct.md" },
84-
{ text: "순수함수 만들기", link: "/pages/fix/pure.md" },
85-
{ text: "데드코드 제거하기", link: "/pages/fix/dead-code.md" }
86-
]
87-
},
88-
{
89-
text: "재발 방지하기",
90-
link: "/pages/prevent/index.md",
91-
collapsed: false,
130+
text: "디버깅 실무 사례",
92131
items: [
93132
{
94-
text: "에러 로그 상세히 남기기",
95-
link: "/pages/prevent/error-log.md"
96-
},
97-
{
98-
text: "버그 리포트 남기기",
99-
link: "/pages/prevent/bug-report.md"
133+
text: "Suspense Error 디버깅 by.김형규",
134+
link: "/pages/contribute/suspense_debug_by_hyungkyu.md"
100135
},
101-
{
102-
text: "팀과 공유하고 공통 유틸에 반영하기",
103-
link: "/pages/prevent/util.md"
104-
}
136+
{ text: "기여하기 탬플릿", link: "/pages/contribute/template.md" }
105137
]
106138
}
107139
]
108140
},
109-
{
110-
text: "디버깅 실무 사례",
111-
items: [
112-
{
113-
text: "Suspense Error 디버깅 _ 김형규",
114-
link: "/pages/experience/suspense_debug_by_hyungkyu.md"
115-
},
116-
{ text: "기여하기 탬플릿", link: "/pages/experience/contribute.md" }
117-
]
118-
}
119-
]
141+
}
120142
},
121143
markdown: {
122144
config: (md) => {
@@ -137,14 +159,14 @@ export default defineConfig({
137159
"meta",
138160
{
139161
property: "og:image",
140-
content: "https://static.toss.im/illusts/bf-meta.png"
162+
content: "https://static.toss.im/illusts-common/df-meta.png"
141163
}
142164
],
143165
[
144166
"meta",
145167
{
146168
name: "twitter:image",
147-
content: "https://static.toss.im/illusts/bf-meta.png"
169+
content: "https://static.toss.im/illusts-common/df-meta.png"
148170
}
149171
],
150172
[
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<script setup lang="ts">
2+
const props = defineProps<{
3+
name: string
4+
avatar?: string
5+
size?: number
6+
}>();
7+
</script>
8+
9+
<template>
10+
<div style="display:flex; align-items:center; gap:12px; margin:8px 0 24px;">
11+
<img
12+
:src="avatar || ''"
13+
:width="size || 40"
14+
:height="size || 40"
15+
:alt="name"
16+
style="border-radius:50%; object-fit:cover;"
17+
/>
18+
<strong>{{ name }}</strong>
19+
</div>
20+
</template>

fundamentals/debug/.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import Layout from "./Layout.vue";
33
import * as amplitude from "@amplitude/analytics-browser";
44
import "./custom.css";
55
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
6+
import ContributorHeader from "../theme/components/ContributorHeader.vue";
67

78
export default {
89
extends: DefaultTheme,
910
Layout,
1011
async enhanceApp({ app }) {
1112
if (typeof window !== "undefined") {
13+
app.component("ContributorHeader", ContributorHeader);
1214
const amplitudeApiKey = (import.meta as any).env.VITE_AMPLITUDE_API_KEY;
1315
amplitude.init(amplitudeApiKey, { autocapture: true });
1416
enhanceAppWithTabs(app);

fundamentals/debug/en/index.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: home
3+
title: Bundling
4+
description: Frontend Bundling Guide (Coming Soon)
5+
comments: false
6+
---
7+
8+
<div class="coming-soon">
9+
<h2>✨ Coming Soon</h2>
10+
<p>Stay tuned! We're working on something awesome for you.</p>
11+
</div>
12+
13+
<style>
14+
.coming-soon {
15+
display: flex;
16+
flex-direction: column;
17+
align-items: center;
18+
justify-content: center;
19+
min-height: 60vh;
20+
text-align: center;
21+
color: var(--vp-c-text-2);
22+
}
23+
24+
.coming-soon h2 {
25+
font-size: 2rem;
26+
margin-bottom: 1rem;
27+
border: none;
28+
}
29+
30+
.coming-soon p {
31+
font-size: 1.2rem;
32+
}
33+
</style>
17.2 KB
Loading
1.56 MB
Loading

0 commit comments

Comments
 (0)