Open
Conversation
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.
📦 노션 ZIP 임포트 워크플로우 추가
개요
노션에서 export한 ZIP 파일을 Quarto 강의 문서로 자동 변환하는 에이전트 워크플로우를 추가합니다.
변경 사항
추가된 파일 및 디렉토리
tools/scripts/import_notion_zip.py.qmd변환 스크립트tools/scripts/README.mdtools/imports/ch{N}/tools/imports/ch{N}/processed/자동화 작업 (에이전트 실행 시)
에이전트에게
"tools/scripts/readme.md를 읽고 진행해줘"라고 요청하면 아래 작업이 순서대로 실행됩니다.사용법 파악 —
tools/scripts/README.md에서 워크플로우 및 I/O 규칙 확인ZIP 확인 —
imports/ch{N}/에서 노션 export ZIP 파일 탐색드라이런 — 예상 산출물 미리 점검
실제 변환 실행
lectures/ch{N}/<slug>.qmdlectures/ch{N}/images/<slug>/_quarto.yml,lectures/index.qmdimports/ch{N}/processed/로 이동검증 — 생성된 문서·이미지 존재 여부 및 내비게이션 반영 확인
사용 방법
해당 챕터 폴더에 ZIP 파일을 위치시킨 뒤, 아래 두 가지 방법 중 하나로 진행합니다.
방법 A — 에이전트 사용 (권장)
에이전트에게 아래와 같이 요청합니다.
에이전트가 README를 읽고 드라이런 → 변환 → 검증까지 자동으로 처리합니다.
방법 B — 직접 스크립트 실행
에이전트 없이 터미널에서 직접 실행할 수도 있습니다.
1단계: 드라이런으로 산출물 미리 확인
출력 결과로 생성될 파일 목록과 경로를 확인합니다. 문제가 없으면 다음 단계로 진행합니다.
2단계: 실제 변환 실행
--dry-run옵션을 제거하고 실행합니다.3단계: 결과 확인
인자 설명
<ZIP 경로>"../imports/ch6/파일명.zip"<챕터>ch6<슬러그>ovs_vxlan_vpn--title"OVS/VXLAN 가상 네트워크 만들기"--dry-runZIP 파일은 Git에서 제외됩니다
tools/imports/하위의 ZIP 파일은.gitignore에 의해 추적되지 않습니다.로컬에서만 보관되며, 원격 저장소에는 올라가지 않습니다.
챕터 소개 문서의 하위 목차는 수동으로 추가해야 합니다
lectures/ch{N}_lec.qmd와 같은 챕터 소개 문서에## 하위 목차섹션이 있는 경우,에이전트가 자동으로 항목을 삽입하지 않습니다.
에이전트 작업 완료 후, 해당 섹션을 직접 검토하여 새로 추가된 문서 링크를 수동으로 넣어주세요.
테스트
lectures/ch6/ovs_vxlan_vpn.qmd생성 확인lectures/ch6/images/ovs_vxlan_vpn/이미지 복사 확인_quarto.yml및lectures/index.qmd네비게이션 반영 확인processed/로 이동됨 확인