feat: 메모 상세에 raw 마크다운 경로 추가 - #24
Merged
Merged
Conversation
/memo/{id}.md 로 원본 파일(frontmatter 포함)을 그대로 내려준다.
상세 페이지 푸터에 raw 링크와 <link rel="alternate">를 함께 둔다.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qv2pQrCq9z1GaxxDu2vohK
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
/memo/{id}.md로 메모 원본을 그대로 내려준다. LLM/도구가 상세 페이지 HTML 대신 원문을 바로 가져갈 수 있게 하는 게 목적.변경
src/pages/memo/[id].md.ts— release 메모마다/memo/{id}.md생성.memo.filePath의 원본 파일을 읽어서 frontmatter 포함 그대로 반환 (prerender = true)src/components/Memo/MemoRaw.tsx+Memo의rawprop — 상세 페이지 푸터#577옆에raw링크. 목록·태그 페이지에는 노출 안 함src/layouts/Layout.astro—<slot name="head" />추가src/pages/memo/[id].astro—<link rel="alternate" type="text/markdown">주입결정
.mdx여도.md하나로 낸다. URL 모양을 고정해/memo/{id}.md가 항상 존재하게 하는 쪽. 대신 mdx 원본의import줄과 컴포넌트 블록이 raw에 섞인다 (release 294개 중 45개)text/plain; charset=utf-8이지만 GitHub Pages 정적 배포에서는 무시되고 Pages가.md에text/markdown을 준다. fetch 용도에는 영향 없음확인
pnpm build통과,dist/memo/*.md294개 = release 메모 수<link rel="alternate">와 푸터raw링크 모두 존재vitest run은 astro 7 + vitest 2 조합으로 startup에서 실패하는데, 이 변경 전 상태에서도 동일하게 실패 (무관)🤖 Generated with Claude Code
https://claude.ai/code/session_01Qv2pQrCq9z1GaxxDu2vohK
Generated by Claude Code