Skip to content

Rendering R package vignette with centralized CSSΒ #284

@LiNk-NY

Description

@LiNk-NY

Hi Christophe, @cderv
Thank you for all your work on the quarto-r package and beyond.
I was wondering if there is a way to use CSS styling files dynamically rather than statically to reduce duplication.
This would be especially useful on the Bioconductor Build System where it has access to the appropriate BiocStyle files.
Essentially, we would like to use a "standardized" styling file:

---
title: "Example R Package"
author:
- name: Marcel Ramos
date: last-modified
format:
  html:
    toc: true
    toc-location: left
    number-sections: true
    embed-resources: true
    mainfont: "Atkinson Hyperlegible"
    link-external-newwindow: true
    css: "`r system.file('resources', 'html', 'biocstyle.css', package = 'BiocStyle')`"
vignette: >
  %\VignetteIndexEntry{Example Overview}
  %\VignetteEngine{quarto::format}
  %\VignetteEncoding{UTF-8}
---

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions