Skip to content

Convert to Quarto website with multi-format support#2

Open
Copilot wants to merge 8 commits intomainfrom
copilot/convert-project-to-quarto-website
Open

Convert to Quarto website with multi-format support#2
Copilot wants to merge 8 commits intomainfrom
copilot/convert-project-to-quarto-website

Conversation

Copy link

Copilot AI commented Feb 5, 2026

Converted from book to website template following ucdavis/win pattern. Added simultaneous HTML, DOCX, and RevealJS rendering to website profile.

Configuration

Profile-based architecture:

  • _quarto.yml - profile selector (default: website)
  • _quarto-website.yml - HTML + DOCX + RevealJS outputs
  • _quarto-revealjs.yml - standalone slides profile
  • _quarto-handout.yml - standalone PDF profile

Multi-format website rendering:

# _quarto-website.yml
format:
  html:
    # website configuration
  docx:
    # Word documents
  revealjs:
    output-file: "{stem}-slides.html"
    chalkboard: false

Per-file output specifications:
Each .qmd file includes YAML front matter to prevent filename conflicts:

---
title: "Chapter Title"
format:
  html: default
  revealjs:
    output-file: chapter-slides.html
  pdf:
    output-file: chapter-handout.pdf
  docx:
    output-file: chapter.docx
---

Single quarto render produces:

  • _site/index.html - website page
  • _site/index.docx - Word document
  • _site/index-slides.html - presentation slides
  • _site/index-handout.pdf - PDF handout

Structure Changes

  • Project type: bookwebsite
  • Output directory: docs/_site/
  • Navigation: book sidebar → navbar with dropdown menus
  • Chapters: root → chapters/ subdirectory

Document Metadata

Added appendix-document-metadata.qmd included at end of all pages via {{< include >}}. Contains git commit metadata, visible only in DOCX format for version tracking.

Package Management

R packages (knitr, rmarkdown) managed by CI using setup-r-dependencies:

- uses: r-lib/actions/setup-r@v2
  with:
    use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
  with:
    packages: |
      any::knitr
      any::rmarkdown

License

Changed from CC0 to MIT License.

Original prompt

This section details on the original issue you should resolve

<issue_title>convert this project to a quarto website</issue_title>
<issue_description>use https://github.com/ucdavis/win as an example</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 5, 2026 04:48
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copilot AI changed the title [WIP] Convert project to a Quarto website Convert from Quarto book to website template Feb 5, 2026
Copilot AI requested a review from d-morrison February 5, 2026 04:55
Copy link
Member

@d-morrison d-morrison left a comment

Choose a reason for hiding this comment

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

also {{< include >}} a version of https://github.com/UCD-SERG/lab-manual/blob/main/appendix-document-metadata.qmd at the end of each website page

Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copy link
Author

Copilot AI commented Feb 5, 2026

also {{< include >}} a version of https://github.com/UCD-SERG/lab-manual/blob/main/appendix-document-metadata.qmd at the end of each website page

Added appendix-document-metadata.qmd and included it at the end of all website pages using {{< include >}} (commit 81e7aeb).

The metadata section is configured to only display in DOCX format and includes instructions for enabling automated git metadata retrieval with R/knitr.

Document metadata section visible in TOC

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cloud.r-project.org
    • Triggering command: /opt/R/4.5.2/lib/R/bin/exec/R /opt/R/4.5.2/lib/R/bin/exec/R -e install.packages(c(&#39;knitr&#39;,~&#43;~&#39;rmarkdown&#39;),~&#43;~repos=&#39;REDACTED&#39;) (dns block)
    • Triggering command: /opt/R/4.5.2/lib/R/bin/exec/R /opt/R/4.5.2/lib/R/bin/exec/R -e source(&#39;renv/activate.R&#39;);~&#43;~renv::restore(prompt~&#43;~=~&#43;~FALSE) 64.list ist defaults:amd64.list st rep fo/libcolord2:amquarto fo/grub-efi-amd6--version fo/crun.list fo/libharfbuzz-subset0:amd64.list fo/p�� fo/libdata-dpath-perl.list fo/libtext-wrapi18n-perl.list t-sass/src/dart e/jupyter/jupyterm fo/python3-pyasn-Rf fo/libc6-i386.li/tmp/RtmpmbCI4H t-sass/src/dart (dns block)
  • packagemanager.posit.co
    • Triggering command: /opt/R/4.5.2/lib/R/bin/exec/R /opt/R/4.5.2/lib/R/bin/exec/R -e source(&#39;renv/activate.R&#39;);~&#43;~renv::restore(prompt~&#43;~=~&#43;~FALSE) 64.list ist defaults:amd64.list st rep fo/libcolord2:amquarto fo/grub-efi-amd6--version fo/crun.list fo/libharfbuzz-subset0:amd64.list fo/p�� fo/libdata-dpath-perl.list fo/libtext-wrapi18n-perl.list t-sass/src/dart e/jupyter/jupyterm fo/python3-pyasn-Rf fo/libc6-i386.li/tmp/RtmpmbCI4H t-sass/src/dart (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copilot AI changed the title Convert from Quarto book to website template Convert from Quarto book to website template with multi-format support Feb 5, 2026
Copilot AI requested a review from d-morrison February 5, 2026 05:22
@d-morrison d-morrison marked this pull request as ready for review February 5, 2026 05:23
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copilot AI changed the title Convert from Quarto book to website template with multi-format support Convert to Quarto website with multi-format support Feb 5, 2026
Copy link
Member

@d-morrison d-morrison left a comment

Choose a reason for hiding this comment

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

use https://github.com/r-lib/actions/tree/v2-branch/setup-r-dependencies in the github actions workflows instead of the setup-renv step.

to get revealjs output to work in the website profile, we'll need to add a specific output-file for each format in each chapter, like we did in https://github.com/ucdavis/win/blob/main/chapters/01-introduction.qmd for example. otherwise, the html and revealjs output files have the same names by default

.Rprofile Outdated
Copy link
Member

Choose a reason for hiding this comment

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

add this back

DESCRIPTION Outdated
person("Your Name", email = "your.email@example.com", role = c("aut", "cre"))
Description: A template for creating websites with Quarto. Includes support for
multiple output formats including HTML, DOCX, RevealJS slides, and PDF handouts.
License: CC0
Copy link
Member

Choose a reason for hiding this comment

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

use mit license

…setup-r-dependencies

Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
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.

convert this project to a quarto website

2 participants