feat(supporters): 템플릿화 — 병원 고유값을 데이터로 분리하고 templates/supporters-astro 내보내기

- src/data/site.json 신설(매체 이름·로고·홈 큐레이션), factSheet에 kind·areaLabel·transitShort·transitNote·reservationUrl·doctorsUrl·youtube.title 추가
- lib.ts: PENDING('확인 대기')·v()·has()·surface()·editor() 도입, 스키마는 빈 값을 빼고 생성
- 페이지·컴포넌트 15개에서 뷰성형외과 하드코딩 제거, 빈 데이터 empty-state (글 0편·영상 0건·뉴스 0건·이미지 없음)
- 검증: 28페이지 표시 텍스트·구조 지문 이전 빌드와 동일(홈 title 마침표 1건만 정정), JSON-LD 차이는 빈 sameAs 제거뿐
- scripts/export_template.mjs + scripts/template/data(빈 데이터 세트) → templates/supporters-astro (빈 데이터로 10페이지 0오류 빌드, 게이트 통과)
- 게이트 픽스처를 자체 authors로 분리해 템플릿에서도 테스트 통과, 구조 기준선의 글 상세 페이지는 사전순 첫 글로 동적 선택

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Fable 5.1 committed 2026-09-07 14:07:14 +09:00
1 parent 49c5e46f23
commit 622441e6aa
100 files changed
+6886 -174

No files matched your search

@@ -0,0 +1,13 @@
{
"_comment": "작성자(supporters)와 의학 검토 원장(physicians). 작성자 실명·직함·sameAs·정정 이메일은 병원/운영자 입력값(v2 §6-1). 검토 원장은 병원이 확정한 사람만 넣는다(§3-7).",
"supporters": {
"editor": {
"name": "편집 책임자 (확인 대기)",
"role": "서포터즈 편집 책임",
"bio": "병원을 알아보는 분들이 실제로 묻는 질문을 고르고, 원장 설명 영상과 병원 공개 자료를 근거로 글을 쓰며 편집 책임을 집니다. 의학적 판단은 하지 않으며, 의학 내용은 병원 담당 원장의 검토를 거쳐 표시합니다.",
"email": "",
"sameAs": []
}
},
"physicians": {}
}
@@ -0,0 +1,6 @@
{
"_comment": "정정 기록. 접수·처리한 정정을 날짜순으로 남긴다. contact·owner는 병원/운영자 입력값.",
"contact": "",
"owner": "",
"items": []
}
@@ -0,0 +1,32 @@
{
"_comment": "병원 사실의 단일 원본. 근거 수집기(evidence/<clinic>/)가 채우고, 비어 있는 값은 화면에 '확인 대기'로 표시된다. 홈페이지 표기와 한 글자까지 맞춘다. 지어내지 않는다.",
"name": "",
"shortName": "",
"kind": "",
"areaLabel": "",
"founded": "",
"representative": "",
"address": { "full": "", "street": "", "locality": "", "region": "", "postalNote": "", "navigation": "", "source": "" },
"phone": "",
"fax": "",
"kakao": "",
"url": "",
"urlEn": "",
"reservationUrl": "",
"doctorsUrl": "",
"transit": "",
"transitShort": "",
"transitNote": "",
"parking": "",
"hours": { "source": "", "sourceLabel": "", "rows": [], "schema": [] },
"building": { "summary": "", "floors": [], "source": "" },
"departments": [],
"specialties": [],
"safety": { "items": [], "source": "" },
"recognitions": [],
"surfaces": {},
"sideEffectNotice": "수술 후 개인에 따라 염증, 출혈, 신경손상 등의 부작용이 있을 수 있습니다.",
"businessNo": "",
"checkedAt": "",
"nextCheck": ""
}
@@ -0,0 +1,6 @@
{
"_comment": "뉴스룸 데이터. scripts/build_news.py 결과. 병원 배포 기사·원장 기고만, 제3자 규제·사건 보도 제외.",
"generatedAt": null,
"sources": [],
"items": []
}
@@ -0,0 +1,24 @@
{
"_comment": "매체 고유값. 비어 있으면(null·[]) 해당 블록은 '확인 대기' 문장으로 렌더된다. 이미지는 병원 허락을 받은 것만 public/img/ 에 넣고 여기서 참조한다.",
"siteName": "",
"siteNameEn": "SUPPORTERS",
"eyebrow": "",
"tagline": "",
"heroTitle": "궁금한 것부터 답합니다.",
"editorId": "editor",
"logo": null,
"logoFoot": null,
"heroImage": null,
"buildingImage": null,
"imageCredit": "",
"homeVideos": [],
"insideSummary": "",
"insideGallery": [],
"clinicGallery": [],
"clinicDoctors": [],
"visitMaps": [],
"arrivalGuide": "",
"visitReads": [],
"newsNote": "",
"newsOutletsExample": ""
}
@@ -0,0 +1,10 @@
{
"_comment": "유튜브 채널 집계. uploads 전량 → videos.list → 조회수 순위. 쇼츠 판별은 /shorts/{id} 200 응답. topLong·shortsInfo는 정보형만(제목 금칙 필터 통과).",
"fetchedAt": null,
"channel": {},
"top": [],
"topLong": [],
"topShorts": [],
"shortsInfo": [],
"shortsDetection": ""
}