Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgdown with quarto vignette throws 'Can't find template for "content-quarto"' #2790

Closed
vjcitn opened this issue Oct 3, 2024 · 2 comments
Closed

Comments

@vjcitn
Copy link

vjcitn commented Oct 3, 2024

This is for a package that specifies quarto as VignetteBuilder.

Reading vignettes/CDNMmodgen.qmd
Running `quarto render`
Error: 
! in callr subprocess.
Caused by error in `purrr::map_chr(pieces, find_template, name = name, pkg = pkg)`:
! ℹ In index: 5.
Caused by error in `map_()`:
! Can't find template for "content-quarto".
ℹ See `$stderr` for standard error.
Type .Last.error to see the more details.

Enter a frame number, or 0 to exit   

1: pkgdown::build_site()
2: build_site_external(pkg = pkg, examples = examples, run_dont_run = run_dont
3: callr::r(function(..., cli_colors, hyperlinks, pkgdown_internet) {
    optio
4: get_result(output = out, options)
5: throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
6: base::stop(cond)

It isn't clear to me that pkgdown supports quarto at this time, in which case, just close.

> packageVersion("pkgdown")
[1] '2.1.1.9000'
> packageVersion("quarto")
[1] '1.4.4.9003'
> version
               _                           
platform       aarch64-apple-darwin20      
arch           aarch64                     
os             darwin20                    
system         aarch64, darwin20           
status                                     
major          4                           
minor          4.1                         
year           2024                        
month          06                          
day            14                          
svn rev        86737                       
language       R                           
version.string R version 4.4.1 (2024-06-14)
nickname       Race for Your Life    
@maelle
Copy link
Collaborator

maelle commented Oct 3, 2024

Does your package use Bootstrap 5? https://pkgdown.r-lib.org/articles/customise.html#getting-started

There's a Quarto template but only for Bootstrap 5, that might be the issue with the build.

@vjcitn
Copy link
Author

vjcitn commented Oct 3, 2024

That worked! Thank you!

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

No branches or pull requests

2 participants