feat(mdx-storage): Phase3 Task3.1 pages.yaml 기반 내부 링크 해석 구현#779
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
## Summary - `LinkResolver` 클래스를 구현하여 `pages.yaml` 기반 내부 링크를 Confluence storage link 매크로로 변환합니다 - 상대 경로(`../`, `./`)와 앵커(`#section`) 해석을 지원합니다 - 미해석 링크는 기존 `<a href>` 형태를 유지합니다 ## Changes - `mdx_to_storage/link_resolver.py` 추가: pages.yaml 로딩, 경로 정규화, title fallback 해석 - `inline.py`에 `link_resolver` 파라미터를 추가하여 내부 링크를 `<ac:link><ri:page>` 매크로로 변환합니다 - `emitter.py`에서 paragraph, list, table, html_block, blockquote, figure caption 경로에 link_resolver를 전파합니다 ## Test plan - [x] `pytest -q confluence-mdx/tests/test_mdx_to_storage/` — 90/90 pass - [x] 상대 경로 및 `..` 정규화 검증 - [x] 앵커 분리 및 `ac:anchor` 속성 생성 검증 - [x] `.` 경로의 title 기반 fallback 해석 검증 - [x] 외부 링크(`https://`, `mailto:`) 및 hash-only 링크 비해석 검증 - [x] emitter 통합 검증 (monkeypatch stub) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
82fd803 to
a0116ac
Compare
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.
Summary
LinkResolver클래스를 구현하여pages.yaml기반 내부 링크를 Confluence storage link 매크로로 변환합니다../,./)와 앵커(#section) 해석을 지원합니다<a href>형태를 유지합니다Changes
mdx_to_storage/link_resolver.py추가: pages.yaml 로딩, 경로 정규화, title fallback 해석inline.py에link_resolver파라미터를 추가하여 내부 링크를<ac:link><ri:page>매크로로 변환합니다emitter.py에서 paragraph, list, table, html_block, blockquote, figure caption 경로에 link_resolver를 전파합니다__init__.py에서LinkResolver클래스를 export합니다Test plan
pytest -q confluence-mdx/tests/test_mdx_to_storage/— 90/90 pass..정규화 검증ac:anchor속성 생성 검증.경로의 title 기반 fallback 해석 검증https://,mailto:) 및 hash-only 링크 비해석 검증🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com