정적 export 위에서 테마 깜빡임 없애기 초안 추가 - #100
Merged
Merged
Conversation
theme-script/theme-controller의 부트스트랩·런타임 테마 판정 구조를 정리한 초안. draft: true로 표시.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
content/posts/theme-without-flash-on-static-export.md를 새로 추가.output: export정적 사이트에서 라이트/다크 테마 전환 시 FOUC를 막는 구조(theme-script.tsx의 동기 부트스트랩 스크립트,theme-controller.ts의 런타임 컨트롤러, 둘이theme.ts의 판정 규칙을 공유하는 방식)를 다룬 글이다.draft: true로 표시해 프로덕션 빌드에는 포함되지 않는다.변경 이유
기존 포스트 목록을 검토한 뒤, 코드에는 이미 구현돼 있지만 아직 글로 남기지 않은 결정들(테마 부트스트랩, 배포 경로, sanitize, 접근성 테스트 등) 중 가장 구체적인 구현 히스토리가 있는 테마 주제를 우선 추천했고, 사용자가 이를 초안으로 작성해 달라고 요청했다.
검증
npx vitest run tests/posts.test.ts tests/posts-publication.test.ts통과 (frontmatter/발행 규칙 검증)draft: true라 프로덕션 빌드 대상 글 수에 영향 없음Generated by Claude Code