Skip to content

Commit 15b98c2

Browse files
committed
feat(docs): update ExampleBadge line numbers for all Korean docs
- Update 45 Korean documentation files - ExampleBadge now links to exact test line numbers in spec files - Each code example badge points to its corresponding individual test
1 parent e320797 commit 15b98c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+752
-752
lines changed

i18n/ko/docusaurus-plugin-content-docs/current/cli/compiler-options.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ trc compile --strict src/
3737
- 암시적 `any` 타입 불가
3838
- 엄격한 nil 검사 활성화
3939

40-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
40+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={25} />
4141

4242
```trb
4343
# 엄격 모드는 전체 타입 지정 필요
@@ -61,7 +61,7 @@ trc compile --permissive src/
6161
- 암시적 `any` 허용
6262
- 명시적 타입 오류만 캐치
6363

64-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
64+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={36} />
6565

6666
```ruby
6767
# 관용 모드는 타입 없는 코드 허용
@@ -80,7 +80,7 @@ end
8080
trc compile --no-implicit-any src/
8181
```
8282

83-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
83+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={46} />
8484

8585
```trb
8686
# --no-implicit-any 사용 시 오류
@@ -102,7 +102,7 @@ end
102102
trc compile --strict-nil src/
103103
```
104104

105-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
105+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={57} />
106106

107107
```trb
108108
# --strict-nil 사용 시 오류
@@ -124,7 +124,7 @@ end
124124
trc compile --no-unused-vars src/
125125
```
126126

127-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
127+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={68} />
128128

129129
```trb
130130
# --no-unused-vars 사용 시 경고
@@ -146,7 +146,7 @@ end
146146
trc compile --no-unchecked-indexed-access src/
147147
```
148148

149-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
149+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={79} />
150150

151151
```trb
152152
# --no-unchecked-indexed-access 사용 시 오류
@@ -167,7 +167,7 @@ end
167167
trc compile --require-return-types src/
168168
```
169169

170-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
170+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={90} />
171171

172172
```trb
173173
# --require-return-types 사용 시 오류
@@ -349,7 +349,7 @@ trc compile --optimize basic src/
349349
- `aggressive` - 최대 최적화
350350
351351
**none:**
352-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
352+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={101} />
353353
354354
```ruby
355355
# 코드 구조 변경 없음
@@ -361,7 +361,7 @@ end
361361
```
362362
363363
**basic:**
364-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
364+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={111} />
365365
366366
```ruby
367367
# 상수 인라인, 데드 코드 제거
@@ -371,7 +371,7 @@ end
371371
```
372372
373373
**aggressive:**
374-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={21} />
374+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/compiler_options_spec.rb" line={121} />
375375
376376
```ruby
377377
# 함수 인라인, 코드 재정렬 가능

i18n/ko/docusaurus-plugin-content-docs/current/cli/configuration.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ compiler:
254254
- 암시적 `any` 타입 불허
255255
- 엄격한 nil 검사 활성화
256256

257-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
257+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={25} />
258258

259259
```trb
260260
# 엄격 모드에서 필요
@@ -272,7 +272,7 @@ end
272272
- 지역 변수는 추론 가능
273273
- 암시적 `any`에 경고
274274

275-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
275+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={36} />
276276

277277
```trb
278278
# 표준 모드에서 OK
@@ -294,7 +294,7 @@ end
294294
- 암시적 `any` 타입 허용
295295
- 기존 코드 마이그레이션에 유용
296296

297-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
297+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={47} />
298298

299299
```ruby
300300
# 관용 모드에서 OK
@@ -323,7 +323,7 @@ compiler:
323323

324324
예시 - 패턴 매칭:
325325

326-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
326+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={57} />
327327

328328
```trb
329329
# 입력 (.trb)
@@ -334,7 +334,7 @@ end
334334
```
335335

336336
`target_ruby: "3.0"` 사용 시:
337-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
337+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={68} />
338338
339339
```ruby
340340
# 패턴 매칭 사용 (Ruby 3.0+)
@@ -345,7 +345,7 @@ end
345345
```
346346

347347
`target_ruby: "2.7"` 사용 시:
348-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
348+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={78} />
349349

350350
```ruby
351351
# case/when으로 폴백
@@ -384,7 +384,7 @@ compiler:
384384
385385
**no_implicit_any**
386386
387-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
387+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={88} />
388388
389389
```trb
390390
# no_implicit_any: true일 때 오류
@@ -400,7 +400,7 @@ end
400400

401401
**no_unused_vars**
402402

403-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
403+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={99} />
404404

405405
```trb
406406
# no_unused_vars: true일 때 경고
@@ -412,7 +412,7 @@ end
412412

413413
**strict_nil**
414414

415-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
415+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={110} />
416416

417417
```trb
418418
# strict_nil: true일 때 오류
@@ -428,7 +428,7 @@ end
428428

429429
**no_unchecked_indexed_access**
430430

431-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={21} />
431+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/cli/configuration_spec.rb" line={121} />
432432

433433
```trb
434434
# no_unchecked_indexed_access: true일 때 오류

i18n/ko/docusaurus-plugin-content-docs/current/getting-started/first-trb-file.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ description: 첫 번째 T-Ruby 파일 생성 및 컴파일
2222

2323
간단한 계산기를 구현하는 `calculator.trb` 파일을 만들어봅시다:
2424

25-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
25+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={25} />
2626

2727
```trb title="calculator.trb"
2828
# calculator.trb - 간단한 타입 계산기
@@ -49,7 +49,7 @@ end
4949

5050
문법을 분석해봅시다:
5151

52-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
52+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={36} />
5353

5454
```trb
5555
def add(a: Integer, b: Integer): Integer
@@ -67,7 +67,7 @@ def add(a: Integer, b: Integer): Integer
6767

6868
계산기를 더 고급 기능으로 확장해봅시다:
6969

70-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
70+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={47} />
7171

7272
```trb title="calculator.trb"
7373
# 더 깔끔한 코드를 위한 타입 별칭
@@ -106,7 +106,7 @@ end
106106

107107
`|` 연산자는 union 타입을 생성합니다:
108108

109-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
109+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={58} />
110110

111111
```trb
112112
type Number = Integer | Float # Integer 또는 Float일 수 있음
@@ -122,7 +122,7 @@ end
122122

123123
`<T>` 문법은 제네릭 타입 매개변수를 정의합니다:
124124

125-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
125+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={69} />
126126

127127
```trb
128128
def max<T: Comparable>(a: T, b: T): T
@@ -141,7 +141,7 @@ max("a", "b") # T는 String
141141

142142
Calculator 클래스를 만들어봅시다:
143143

144-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
144+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={80} />
145145

146146
```trb title="calculator.trb"
147147
class Calculator
@@ -228,7 +228,7 @@ ruby build/calculator.rb
228228

229229
생성된 파일을 살펴보세요:
230230

231-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
231+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={91} />
232232

233233
```ruby title="build/calculator.rb"
234234
class Calculator
@@ -246,7 +246,7 @@ class Calculator
246246
end
247247
```
248248

249-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
249+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={101} />
250250

251251
```rbs title="build/calculator.rbs"
252252
type Number = Integer | Float
@@ -268,7 +268,7 @@ end
268268

269269
### 옵셔널 매개변수
270270

271-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
271+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={111} />
272272

273273
```trb
274274
def greet(name: String, greeting: String = "Hello"): String
@@ -281,7 +281,7 @@ greet("Alice", "Hi") # "Hi, Alice!"
281281

282282
### Nullable 타입 (옵셔널 축약형)
283283

284-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
284+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={122} />
285285

286286
```trb
287287
# 다음은 동일합니다:
@@ -291,7 +291,7 @@ def find(id: Integer): User? # 축약형
291291

292292
### 블록 매개변수
293293

294-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={21} />
294+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/first_trb_file_spec.rb" line={133} />
295295

296296
```trb
297297
def each_item(items: Array<String>, &block: (String) -> void): void

i18n/ko/docusaurus-plugin-content-docs/current/getting-started/project-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ trc --config trc.production.yaml
236236

237237
Gemfile에 T-Ruby 추가:
238238

239-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={21} />
239+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={25} />
240240

241241
```ruby title="Gemfile"
242242
source "https://rubygems.org"
@@ -250,7 +250,7 @@ end
250250

251251
Rake 태스크 생성:
252252

253-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={21} />
253+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={35} />
254254

255255
```ruby title="Rakefile"
256256
require "t-ruby/rake_task"
@@ -297,7 +297,7 @@ types:
297297

298298
`config/application.rb`에 추가:
299299

300-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={21} />
300+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/project_configuration_spec.rb" line={45} />
301301

302302
```ruby
303303
# 개발 중 .trb 파일 감시

i18n/ko/docusaurus-plugin-content-docs/current/getting-started/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description: 첫 T-Ruby 프로그램 작성하기
1515

1616
`hello.trb` 파일을 만들어 봅시다:
1717

18-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={21} />
18+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={25} />
1919

2020
```trb
2121
# hello.trb
@@ -61,7 +61,7 @@ ruby hello.rb
6161

6262
T-Ruby는 Ruby의 기본 타입을 모두 지원합니다:
6363

64-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={21} />
64+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={36} />
6565

6666
```trb
6767
# 기본 타입
@@ -83,7 +83,7 @@ email: String? = nil
8383

8484
함수의 매개변수와 반환 타입을 지정합니다:
8585

86-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={21} />
86+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={47} />
8787

8888
```trb
8989
# 기본 함수
@@ -111,7 +111,7 @@ end
111111

112112
클래스에 타입을 적용합니다:
113113

114-
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={21} />
114+
<ExampleBadge status="pass" testFile="spec/docs_site/pages/getting_started/quick_start_spec.rb" line={58} />
115115

116116
```trb
117117
class User

0 commit comments

Comments
 (0)