rstudio / blogdown

Create Blogs and Websites with R Markdown
https://pkgs.rstudio.com/blogdown/
1.74k stars 331 forks source link

Ignore qmd file as Rmd in case quarto is used to produced `.md` for Hugo. #692

Closed cderv closed 2 years ago

cderv commented 2 years ago

Quarto can be used to produce Hugo markdown files: https://quarto.org/docs/output-formats/hugo.html

In case this is used within a blogdown project, maybe we should help user know these file should be ignored. to have

ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "\\.qmd$", "_cache$"]

Probably only in check function : https://github.com/rstudio/blogdown/blob/3588e02fbc8aa6c3a693aae913e3ee539ee036f7/R/check.R#L54-L57 so the conf files are updated.

Unless I have missed another spot 🤔

Also, maybe there is more to do for Quarto support (like render a qmd to md using quarto::quarto_render() ?) but this is another topic.

yihui commented 2 years ago

I wonder why people would use quarto inside blogdown projects, i.e., what are the advantages of using .qmd and quarto (compared to generating .md from .Rmd with blogdown)? I feel quarto and blogdown are quite independent, and I'm not sure if people would mix them.

cderv commented 2 years ago

Regarding Quarto and Blogdown, I am thinking that this is not so unlikely to use :

Probably not a topic for now (nor later maybe). I'll close this and we'll reopen one if we think there should be some dependance between the two.

yihui commented 2 years ago

Sounds good! We can definitely add the support for quarto once we figure out the benefits.

cderv commented 2 years ago

Hi @kent-orr,

Are you specifically referring to add .qmd in the list of ignore file in config (which this issue is about), or are you interested in broader support regarding Quarto / Blogdown ?

In the latter case, we would appreciate a new issue where you could detail your workflow and how you are thinking the two should work together. We could then discuss in this new issue.

You can already use Quarto and Hugo together to manage a website, and blogdown is not really useful in this process that does not involve Rmd files. This is why we are interested in how you see things if you think blogdown could help R users with this. Thanks !