Skip to content

Add PDF download link to slides doc page#19842

Merged
pelikhan merged 2 commits intomainfrom
copilot/update-slides-doc-file
Mar 6, 2026
Merged

Add PDF download link to slides doc page#19842
pelikhan merged 2 commits intomainfrom
copilot/update-slides-doc-file

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

The slides doc page only linked to the web-based Marp viewer but not to the pre-generated PDF in docs/slides/.

Changes

  • docs/src/content/docs/introduction/slides.mdx — Added a "Download PDF" LinkButton pointing to slides/github-agentic-workflows.pdf
  • docs/package.json — Extended build:slides to copy the PDF into public/slides/ so it's served as a static asset alongside the compiled HTML
<LinkButton href={`${import.meta.env.BASE_URL}slides/github-agentic-workflows.pdf`} icon="download" variant="secondary">
  Download PDF
</LinkButton>
Original prompt

Update the slides doc file to link to the pdf slides in the docs/slides folder


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update slides doc file with links to PDF slides Add PDF download link to slides doc page Mar 6, 2026
@pelikhan pelikhan marked this pull request as ready for review March 6, 2026 11:07
Copilot AI review requested due to automatic review settings March 6, 2026 11:07
@pelikhan pelikhan merged commit 70bb070 into main Mar 6, 2026
@pelikhan pelikhan deleted the copilot/update-slides-doc-file branch March 6, 2026 11:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a direct PDF download option to the documentation slides page and updates the docs build pipeline so the PDF is published as a static asset.

Changes:

  • Added a “Download PDF” LinkButton on the slides documentation page.
  • Extended build:slides to copy the pre-generated PDF into public/slides/ for static serving.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/src/content/docs/introduction/slides.mdx Adds a new button linking to the published PDF slide deck.
docs/package.json Updates the slide build script to also publish the PDF into the docs static assets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

"prebuild": "npm run generate-agent-factory && npm run build:slides",
"build": "astro build",
"build:slides": "mkdir -p public/js && cp node_modules/mermaid/dist/mermaid.min.js public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files --theme slides/gh-aw-theme.css -o public/slides/index.html",
"build:slides": "mkdir -p public/js && cp node_modules/mermaid/dist/mermaid.min.js public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files --theme slides/gh-aw-theme.css -o public/slides/index.html && mkdir -p public/slides && cp slides/github-agentic-workflows.pdf public/slides/",
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build:slides writes to public/slides/index.html before ensuring public/slides/ exists. In this repo docs/public/ currently has no slides/ directory, so this script can fail on a clean checkout. Create public/slides before running the Marp CLI (e.g., mkdir -p public/js public/slides up front) and then copy the PDF into the same directory.

Suggested change
"build:slides": "mkdir -p public/js && cp node_modules/mermaid/dist/mermaid.min.js public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files --theme slides/gh-aw-theme.css -o public/slides/index.html && mkdir -p public/slides && cp slides/github-agentic-workflows.pdf public/slides/",
"build:slides": "mkdir -p public/js public/slides && cp node_modules/mermaid/dist/mermaid.min.js public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files --theme slides/gh-aw-theme.css -o public/slides/index.html && cp slides/github-agentic-workflows.pdf public/slides/",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants