본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7348

publish-to-pages

하는 일

이 도구는 프레젠테이션(PPTX, Google Slides)이나 문서(PDF, HTML)를 공개 링크로 접근할 수 있는 간단한 웹사이트로 바꿉니다. GitHub Pages에 게시하는 전 과정을 처리합니다.

사용하는 경우

  • ✓프레젠테이션을 링크로 공유하고 싶을 때.
  • ✓PDF를 가지고 있고 온라인에서 접근할 수 있게 하고 싶을 때.
  • ✓HTML 파일을 빠른 웹사이트로 바꾸고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/publish-to-pages/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/publish-to-pages/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 프레젠테이션 'ideas.pptx'를 'my-ideas'라는 이름의 GitHub Pages 웹사이트로 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 필요한 소프트웨어가 설치되어 있는지 확인합니다. 그다음 파일(PPTX, PDF, Google Slides)을 웹사이트 형식(HTML)으로 변환하고, GitHub 저장소에 업로드한 뒤 GitHub Pages를 활성화해 링크로 접근할 수 있게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

publish-to-pages

Publish any presentation or web content to GitHub Pages in one shot.

1. Prerequisites Check

Run these silently. Only surface errors:

command -v gh >/dev/null || echo "MISSING: gh CLI — install from https://cli.github.com"
gh auth status &>/dev/null || echo "MISSING: gh not authenticated — run 'gh auth login'"
command -v python3 >/dev/null || echo "MISSING: python3 (needed for PPTX conversion)"

poppler-utils is optional (PDF conversion via pdftoppm). Don't block on it.

2. Input Detection

Determine input type from what the user provides:

Input Detection
HTML file Extension .html or .htm
PPTX file Extension .pptx
PDF file Extension .pdf
Google Slides URL URL contains docs.google.com/presentation

Ask the user for a repo name if not provided. Default: filename without extension.

3. Conversion

Large File Handling

Both conversion scripts automatically detect large files and switch to external assets mode:

  • PPTX: Files >20MB or with >50 images → images saved as separate files in assets/
  • PDF: Files >20MB or with >50 pages → page PNGs saved in assets/
  • Files >150MB print a warning (PPTX suggests PDF path instead)

This keeps individual files well under GitHub's 100MB limit. Small files still produce a single self-contained HTML.

You can force the behavior with --external-assets or --no-external-assets.

HTML

No conversion needed. Use the file directly as index.html.

PPTX

Run the conversion script:

python3 SKILL_DIR/scripts/convert-pptx.py INPUT_FILE /tmp/output.html
# For large files, force external assets:
python3 SKILL_DIR/scripts/convert-pptx.py INPUT_FILE /tmp/output.html --external-assets

If python-pptx is missing, tell the user: pip install python-pptx

PDF

Convert with the included script (requires poppler-utils for pdftoppm):

python3 SKILL_DIR/scripts/convert-pdf.py INPUT_FILE /tmp/output.html
# For large files, force external assets:
python3 SKILL_DIR/scripts/convert-pdf.py INPUT_FILE /tmp/output.html --external-assets

Each page is rendered as a PNG and embedded into HTML with slide navigation. If pdftoppm is missing, tell the user: apt install poppler-utils (or brew install poppler on macOS).

Google Slides

  1. Extract the presentation ID from the URL (the long string between /d/ and /)
  2. Download as PPTX:
curl -L "https://docs.google.com/presentation/d/PRESENTATION_ID/export/pptx" -o /tmp/slides.pptx
  1. Then convert the PPTX using the convert script above.

4. Publishing

Visibility

Repos are created public by default. If the user specifies private (or wants a private repo), use --private — but note that GitHub Pages on private repos requires a Pro, Team, or Enterprise plan.

Publish

bash SKILL_DIR/scripts/publish.sh /path/to/index.html REPO_NAME public "Description"

Pass private instead of public if the user requests it.

The script creates the repo, pushes index.html (plus assets/ if present), and enables GitHub Pages.

Note: When external assets mode is used, the output HTML references files in assets/. The publish script automatically detects and copies the assets/ directory alongside the HTML file. Make sure the HTML file and its assets/ directory are in the same parent directory.

5. Output

Tell the user:

  • Repository: https://github.com/USERNAME/REPO_NAME
  • Live URL: https://USERNAME.github.io/REPO_NAME/
  • Note: Pages takes 1-2 minutes to go live.

Error Handling

  • Repo already exists: Suggest appending a number (my-slides-2) or a date (my-slides-2026).
  • Pages enablement fails: Still return the repo URL. User can enable Pages manually in repo Settings.
  • PPTX conversion fails: Tell user to run pip install python-pptx.
  • PDF conversion fails: Suggest installing poppler-utils (apt install poppler-utils or brew install poppler).
  • Google Slides download fails: The presentation may not be publicly accessible. Ask user to make it viewable or download the PPTX manually.
자주 묻는 질문

파일이 너무 크면 어떻게 하나요?

파일이 매우 크면(예: 20MB를 넘거나 이미지와 페이지가 많은 경우), 도구가 파일을 작은 부분으로 나눠 GitHub가 문제없이 호스팅하도록 합니다. 링크는 계속 작동합니다.

GitHub에 같은 웹사이트 이름이 이미 있으면 어떻게 되나요?

도구가 원래 이름에 숫자나 날짜를 덧붙이는 등 새 이름을 제안하여, 새 사이트를 만들 수 있게 합니다.

GitHub Pages는 무엇인가요?

GitHub에서 제공하는 무료 서비스로, 저장소에서 바로 정적 웹사이트를 호스팅할 수 있습니다. 프로젝트, 프레젠테이션, 문서를 공유하기에 좋습니다.

상세 정보

작성자의 원본 설명

Publish presentations and web content to GitHub Pages. Converts PPTX, PDF, HTML, or Google Slides to a live GitHub Pages URL. Handles repo creation, file conversion, Pages enablement, and returns the live URL. Use when the user wants to publish, deploy, or share a presentation or HTML file via GitHub Pages.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7348
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬