Skip to content

add BiocStyle quarto engine - #115

Closed
LiNk-NY wants to merge 4 commits into
develfrom
quarto
Closed

LiNk-NY wants to merge 4 commits into
develfrom
quarto

Conversation

@LiNk-NY

@LiNk-NY LiNk-NY commented Aug 18, 2025

Copy link
Copy Markdown
Contributor

@federicomarini

Feel free to take a look and test

@federicomarini

Copy link
Copy Markdown
Contributor

First rounds of test, here comes some results, for the records.

  • As anticipated, one would need the
vignette: >
  %\VignetteIndexEntry{title of vignette}
  %\VignetteEngine{BiocStyle::html}

and VignetteBuilder: BiocStyle in the DESCRIPTION

  • RStudio is not really able to pick up on the custom engine (in this case, BiocStyle::html) and renders the qmd document in a fairly vanilla manner, which makes it a bit chaotic to understand how the vignette really would look like if realized with our engine

  • this is circumvented with the classical R CMD BUILD . and opening the rendered qmd vignette one should find in the inst/doc folder

  • we might not be there yet with the styling as this is still squished in its width, see screenshot below

image

Still: I think this is a very good step in understanding how we can simplify the creation of Bioc-flavoured quarto docs, in the simplest way for many developers.
Happy to follow up once new developments come in 👍

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for building BiocStyle vignettes with Quarto (.qmd) by registering a new vignette engine at package load time and providing Quarto-specific HTML theme assets.

Changes:

  • Register a BiocStyle Quarto vignette engine during .onLoad()
  • Add Quarto weaving helpers and Quarto metadata defaults (HTML/PDF)
  • Add new Quarto HTML styling assets (biocstyle.scss and biocstyle.css) and declare Quarto in package metadata

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
R/zzz.R Registers the new vignette engine during package load.
R/utils-vignettes.R Implements Quarto-based vignette weaving and format metadata helpers.
inst/resources/html/biocstyle.scss Adds SCSS theme rules intended for Quarto HTML output.
inst/resources/html/biocstyle.css Adds compiled CSS used by the Quarto HTML format metadata.
DESCRIPTION Declares quarto in Suggests and as a system requirement.

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

Comment thread R/utils-vignettes.R Resolved
Comment thread R/utils-vignettes.R Resolved
Comment thread R/utils-vignettes.R Resolved
Comment thread R/utils-vignettes.R Resolved
Comment thread inst/resources/html/biocstyle.css Resolved
Comment thread inst/resources/html/biocstyle.css Resolved
@seandavi

Copy link
Copy Markdown
Contributor

Closing in favor of #132, now merged, which builds directly on this PR: the engine is adapted from yours (credited in the commit), and the SCSS palette comes from #114. Differences from this PR: it uses only the exported quarto API, bundles a Quarto extension (biocstyle-html and biocstyle-pdf, with the PDF format reusing Bioconductor.sty), and adds use_vignette_quarto() and an authoring vignette. Thanks a lot @LiNk-NY for getting this going. Please try it out (BiocStyle::use_vignette_quarto()) and open issues for anything that looks off.

@seandavi seandavi closed this Nov 17, 2026
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.

4 participants