Skip to content

css argument of html_document doesn't work with runtime: shiny + {bslib} theme #2443

Closed

Description

@cpsievert

Can reproduce by doing rmarkdown::run("index.Rmd") with the following index.Rmd

---
title: "Title"
runtime: shiny
output:
  html_document:
    css: styles.css
    theme:
      version: 5
---

### Another title

And styles.css:

body {background-color: purple;}

Which will generate the following error:

Warning in file(con, "r") :
  cannot open file 'styles.css': No such file or directory

Activity

  1. cpsievert commented on Jan 13, 2023

    @cpsievert
    ContributorAuthor

    Before anyone spends time of this, I plan on sending a PR to address this by the 17th (hopefully earlier)

  2. moved this from Backlog to To discuss / To plan in R Markdown Team Projectson Jan 17, 2023
  3. added a commit that references this issue on Jan 20, 2023
    9541eff
  4. moved this from To discuss / To plan to Next in R Markdown Team Projectson Feb 6, 2023
  5. moved this from Next / Ready for Dev to Done in R Markdown Team Projectson May 17, 2023
  6. github-actions commented on Nov 15, 2023

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  7. locked as resolved and limited conversation to collaborators on Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions