Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@

**Learning:** `<meta name="color-scheme" content="light dark">`λŠ” νŽ˜μ΄μ§€κ°€ 두 색상 체계λ₯Ό μ§€μ›ν•œλ‹€λŠ” 사싀을 μ•Œλ¦¬μ§€λ§Œ, 지원 λΈŒλΌμš°μ €μ˜ νƒ­ λ°”λ‚˜ μƒνƒœ ν‘œμ‹œμ€„ 색상 자체λ₯Ό 각 체계에 맞좰 μ§€μ •ν•˜μ§€λŠ” μ•ŠμŠ΅λ‹ˆλ‹€.
**Action:** 생성 HTML에 light/dark `prefers-color-scheme` λ―Έλ””μ–΄ 쑰건이 μžˆλŠ” `theme-color` 메타데이터λ₯Ό ν•¨κ»˜ 내보내고, 두 μ •ν™•ν•œ 값이 κΈ°μ‘΄ `color-scheme`, CSP 및 robots 계약과 ν•¨κ»˜ μœ μ§€λ˜λŠ”μ§€ νšŒκ·€ ν…ŒμŠ€νŠΈν•˜μ‹­μ‹œμ˜€.

## 2024-08-16 - λͺ…ν™•ν•œ νŽ˜μ΄μ§€ μ»¨ν…μŠ€νŠΈλ₯Ό μœ„ν•œ λ¬Έμ„œ 제λͺ©(Title) κ°œμ„ 
**Learning:** 파일 μ„œλ²„ 탐색 μ‹œ `<title>` μš”μ†Œμ— λ‹¨μˆœνžˆ 디렉토리 μ΄λ¦„λ§Œ μ œκ³΅ν•˜λ©΄, μ‚¬μš©μžκ°€ μ—¬λŸ¬ 탭을 μ—΄μ–΄λ‘μ—ˆκ±°λ‚˜ ν™”λ©΄ νŒλ…κΈ°λ₯Ό 톡해 창을 μ „ν™˜ν•  λ•Œ ν•΄λ‹Ή νŽ˜μ΄μ§€κ°€ '디렉토리 λͺ©λ‘'μž„μ„ μ¦‰μ‹œ μΈμ§€ν•˜κΈ° μ–΄λ €μ›Œ μ ‘κ·Όμ„± 및 μ‚¬μš©μ„±μ΄ μ €ν•˜λ©λ‹ˆλ‹€.
**Action:** 항상 `<title>` μš”μ†Œμ— νŽ˜μ΄μ§€μ˜ λͺ©μ μ„ λͺ…ν™•νžˆ μ•Œ 수 μžˆλŠ” 접미사(예: " - 디렉토리 λͺ©λ‘")λ₯Ό μΆ”κ°€ν•˜μ—¬, λΈŒλΌμš°μ € νƒ­ μ΄λ¦„λ§ŒμœΌλ‘œλ„ μ»¨ν…μŠ€νŠΈλ₯Ό μ œκ³΅ν•  수 μžˆλ„λ‘ ν•˜μ‹­μ‹œμ˜€.
2 changes: 1 addition & 1 deletion src/main/kotlin/html4tree/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ fun process_dir(curr_dir: File, excludeSet: Set<String>? = null, dirFiles: Array
<!-- λ³΄μ•ˆ ν–₯상: 리퍼러λ₯Ό ν†΅ν•œ 디렉토리 경둜 λ…ΈμΆœ λ°©μ§€ -->
<meta name="referrer" content="no-referrer">
<meta name="robots" content="noindex, nofollow">
<title>${directoryName.escapeHtml()}</title>
<title>${directoryName.escapeHtml()} - 디렉토리 λͺ©λ‘</title>
<style>${CSS_CONTENT}</style>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/html4tree/MainTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ class MainTest {
val indexHtml = File(fakeRoot, "index.html")
assertTrue(indexHtml.exists())
val content = indexHtml.readText()
assertTrue(content.contains("<title>Root</title>"))
assertTrue(content.contains("<title>Root - 디렉토리 λͺ©λ‘</title>"))
assertTrue(content.contains("<h1>Root</h1>"))
}

Expand Down
Loading