Skip to content

feat(phase-2): Content Collections로 articles/til 실데이터 라우트를 연결한다 - #59

Open
gitgitWi wants to merge 9 commits into
feat/phase-1.5-visualfrom
feat/phase-2-content
Open

gitgitWi wants to merge 9 commits into
feat/phase-1.5-visualfrom
feat/phase-2-content

Conversation

@gitgitWi

@gitgitWi gitgitWi commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

스택: base feat/phase-1.5-visual ← head feat/phase-2-content — Phase 1.5(#58)이 먼저 머지돼야 이 디프가 맞다.

왜

Phase 1.5까지는 mock 데이터와 정적 목업만 있어 실제 MD/MDX 글을 Collections로 렌더할 수 없었다. 기존 Next.js 블로그 6편과 tags/home 라우트를 Content Layer에 연결하지 않으면 Phase 3(quiz)와 Phase 4(Pagefind) 진입점이 없다.

흐름

flowchart TD
  subgraph ASIS["AS-IS"]
    A1["/articles, /til, /tags"] --> A2["mockPosts / mockTags"]
    A2 --> A3["실제 글·태그 역인덱스 없음"]
  end
  subgraph TOBE["TO-BE"]
    B1["getCollection articles/til"] --> B2{"PROD && draft?"}
    B2 -->|"draft:true"| B4["빌드 제외"]
    B2 -->|"공개"| B3["ArticleLayout / WikiLayout + render()"]
    B3 --> B5["/tags 역인덱스 + 구경로 shim"]
  end
  style A3 fill:#ffebee,stroke:#c62828,color:#c62828
  style B5 fill:#e8f5e9,stroke:#2e7d32,color:#2e7d32
  style B4 fill:#fff3e0,stroke:#e65100,color:#e65100
Loading
sequenceDiagram
  participant Page as slug page
  participant CL as astro:content
  participant Layout as ArticleLayout
  Page->>CL: getCollection + render(entry)
  CL-->>Page: Content, headings
  Page->>Layout: theme.colorway/layout + MDX components
  Layout-->>Page: ColorwayShell + Prose + TOC
Loading

효과

flowchart LR
  P["이 PR"] --> U["사용자: articles/til 실글 열람, /posts·/study 구경로 자동 이동"]
  P --> Q["품질: draft PROD 제외, check-links·check-code-blocks"]
  P --> O["운영: bun 게이트 + Storybook layout/MdxPre stories"]
Loading

범위

flowchart TD
  subgraph IN["이번 PR"]
    I1["articles/til Collections + 6편 이식"]
    I2["ArticleLayout essay/gallery/docs + WikiLayout 고정"]
    I3["SmartLink, TableCard, MdxPre slot + redirects.json"]
  end
  subgraph NEXT["후속"]
    N1["quiz UI — phase-3 PLAN"]
    N2["Pagefind 검색 — phase-4 PLAN"]
  end
  subgraph OUT["제외"]
    X1["llm-wiki-template 이식 — 공개안전 선별 후 별도 PR"]
  end
Loading

검증

$ bun run check
Result (105 files):
- 0 errors
- 0 warnings
- 0 hints

$ bunx oxfmt --check .
All matched files use the correct format.

$ bunx oxlint .
(clean)

$ bunx vitest run
Test Files  2 passed (2)
     Tests  8 passed (8)

$ bun run lint:stylex
(clean)

$ bun run build
33 page(s) built in 1.12s

$ bun run build-storybook
Storybook build completed successfully

$ bun run check-links
check-links: OK (33 html files scanned)

$ bun run check-code-blocks
check-code-blocks: OK (from-jekyll article has language class and code text)

$ test ! -d dist/articles/hello
draft OK: hello absent from dist

@gitgitWi gitgitWi added phase-2 Phase 2 Content: collections, MDX, wiki astro Astro, StyleX, GitHub Pages content articles, til, MDX, wiki visibility labels Sep 9, 2026
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

gitgitWi and others added 9 commits October 2, 2026 13:40
구경로 shim과 wiki 공개안전 선별을 채택한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
articles/til 스키마, remark/rehype 플러그인, colorway 팔레트 토큰을 정의한다.
ArticleLayout/WikiLayout, tags/home 실데이터, check-links, 구경로 shim 포함.
colorway는 ColorwayShell variant로 시각 차등을 낸다.

Co-authored-by: Cursor <cursoragent@cursor.com>
MdxPre가 default slot을 CodeBlock에 전달하고 check-code-blocks로 빌드 산출물을 검증한다.
Co-authored-by: Cursor <cursoragent@cursor.com>
@gitgitWi
gitgitWi force-pushed the feat/phase-2-content branch from 533d390 to ebac76d Compare October 2, 2026 04:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astro Astro, StyleX, GitHub Pages content articles, til, MDX, wiki visibility phase-2 Phase 2 Content: collections, MDX, wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant