Extract slidebreak shortcode into standalone Quarto extension with live demo - #1
Conversation
Agent-Logs-Url: https://github.com/d-morrison/slidebreak/sessions/2873edd9-08ef-4309-b444-e91184749190 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
|
@copilot adapt github actions workflows from https://github.com/d-morrison/equation-anchors and configure the repo to deploy example.qmd as a live demo |
Agent-Logs-Url: https://github.com/d-morrison/slidebreak/sessions/fdec3478-b8cf-494d-836e-1dead3f4bbf7 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Agent-Logs-Url: https://github.com/d-morrison/slidebreak/sessions/fdec3478-b8cf-494d-836e-1dead3f4bbf7 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Done in commit
R setup and the complex Python diff/highlighting scripts from equation-anchors were omitted since slidebreak has no R or Python dependencies. One bug from the upstream template was also fixed: the To enable the live demo, ensure GitHub Pages is configured to deploy from the |
…e step to publish workflow Agent-Logs-Url: https://github.com/d-morrison/slidebreak/sessions/d9c76d59-16b2-4f8c-9e1b-0e53e4d31f74 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Fixed in commit The root cause: Fix: added Also added an "Ensure index page exists" step to |
|
@copilot set up the example page so html and revealjs both render, and html is default view |
…lides link Agent-Logs-Url: https://github.com/d-morrison/slidebreak/sessions/2db9193e-3869-4dbd-a909-9a21136e2a34 Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Done in commit
A "View as slides" button on the HTML page links to the presentation. The HTML output is explicitly named |
|
Extracts the
slidebreakshortcode from UCD-SERG/rpt into an independent, installable Quarto extension, following the structure of d-morrison/equation-anchors.Extension structure
_extensions/slidebreak/_extension.yml— metadata: name, author, version, quarto-required, shortcode declaration_extensions/slidebreak/slidebreak.lua— shortcode implementation: emitsHorizontalRule(slide separator) forrevealjs/pptx/beamer; no-op for all other formatsSupporting files
example.qmd— dual-format demo: renders to HTML (index.html, default view) and RevealJS (example-slides.html); includes a "View as slides" button linking between the two_quarto.yml— Quarto project config; setsoutput-dir: _siteREADME.md— installation/usage docs.gitignore— excludes Quarto build artifactsGitHub Actions workflows
Adapted from
d-morrison/equation-anchors(R setup and complex Python diff/highlighting scripts were omitted — slidebreak has no R or Python dependencies):.github/workflows/publish.yml— triggers on push tomainandworkflow_dispatch; sets up Quarto, rendersexample.qmd, and deploys to GitHub Pages viaJamesIves/github-pages-deploy-action.github/workflows/preview.yml— triggers on PR open/reopen/synchronize/close; renders and deploys a live PR preview to thegh-pagesbranch usingrossjrw/pr-preview-action, with a sticky PR comment linking to the preview URL.github/workflows/copilot-setup-steps.yml— preinstalls Quarto for Copilot agent sessionsUsage
Install into any Quarto project:
Then use in a presentation document:
The shortcode has no effect in non-presentation formats (HTML, DOCX).
Original prompt