quarto-dev / quarto-dev/quarto-cli

Rendering a document in subfolder with `-o` flag leads to libs not found

Open
#5,765 15 comments 5 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 20, 2024.

bug files projects websites
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I recently also ran into this problem and tried to create a minimal project to reproduce the error: project.zip

When rendering the document using quarto render report/report.qmd -o alternate_name.html I observed the following:

  • If self-contained: false the libs are not recognized by the final document
  • If self-contained: true the above could not fetch resource warning comes up
  • It only happens if the qmd file is in a subdirectory of the project, top-level documents seem fine
$ quarto --version
1.3.353

Originally posted by @p-gw in https://github.com/quarto-dev/quarto-cli/discussions/4041#discussioncomment-6049811

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.