feat: MDX 파이프라인 구성 (#1018)#5
Open
hyoseong1994 wants to merge 2 commits into
Open
Conversation
f7aecc1 to
9443eb5
Compare
8e36602 to
384a475
Compare
- @mdx-js/rollup Vite 플러그인 + frontmatter/GFM/heading slug 체인 - remark-mdx-frontmatter로 export const frontmatter 추출 - rehype-pretty-code + shiki(github-light/dark)로 코드 하이라이팅 - 코드 블록 Copy 버튼 (복사 성공 시 check 아이콘) - .prose 스코프 GitHub 스타일 마크다운 타이포그래피 - content/lib/createFinder로 glob 결과를 slug 조회 가능한 형태로 가공 - content/loaders/blog에서 import.meta.glob으로 .mdx 수집 - Frontmatter(title/description/date/author) 타입과 *.mdx 모듈 선언 추가 - /blog/:slug 임시 라우팅과 BlogPage, 샘플 글 추가 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- 링크 텍스트 또는 href에 video 확장자가 있으면 <video>로 치환 (GitHub의 업로드 링크 처리 방식과 동일) - MDX <a> 오버라이드로 비디오와 일반 링크를 단일 경로에서 처리 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
384a475 to
b3101fd
Compare
Open
5 tasks
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.
MDX 기반 문서 콘텐츠를 Vite에서 렌더링할 수 있도록 파이프라인을 구성합니다. (closes #1018)
@mdx-js/rollupVite 플러그인과 remark/rehype 체인 설정(frontmatter, GFM, heading slug)
rehype-pretty-code+shiki(github-light/dark)로 코드 하이라이팅.prose스코프의 GitHub 스타일 마크다운 타이포그래피export const frontmatter)*.mdx모듈 타입 및 프로젝트 전용Frontmatter타입import.meta.glob기반 문서 로더,BlogPage,/blog/:slug임시 라우팅<video>로 렌더 (GitHub과 동일한 업로드 링크 처리 방식)테스팅
src/content/docs/getting-started.mdx의 변환 결과 확인체크 리스트