-
Notifications
You must be signed in to change notification settings - Fork 335
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
Brand: logo paths are resolved incorrectly for documents in sub directories #11982
Comments
What about adding a leading Edit: following Quarto's convention on paths Screen.Recording.2025-01-29.at.16.38.14.mov |
Side note, the following content in defaults:
bootstrap:
# bootstrap variable definitions
quarto:
format:
# basic format-specific settings
html:
revealjs:
shiny:
# shiny specific settings ERROR: Brand validation failed for /Users/mcanouil/Projects/misc/try-quarto-brand/_brand.yml.
In file _brand.yml
(line 56, columns 5--37) Field "bootstrap" has value # bootstrap variable definitions, which must instead be an object
55: bootstrap:
56: # bootstrap variable definitions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57: quarto:
✖ The value # bootstrap variable definitions is of type a null value.
ℹ The error happened in location defaults:bootstrap.
Stack trace:
In file _brand.yml
(line 56, columns 5--37) Field "bootstrap" has value # bootstrap variable definitions, which must instead be an object
55: bootstrap:
56: # bootstrap variable definitions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57: quarto:
✖ The value # bootstrap variable definitions is of type a null value.
ℹ The error happened in location defaults:bootstrap.
at readAndValidateYamlFromFile (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/schema/validated-yaml.ts:51:11)
at async projectResolveBrand (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/project/project-shared.ts:536:21)
at async websiteNavigationConfig (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/project/types/website/website-shared.ts:167:24)
at async initWebsiteNavigation (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/project/types/website/website-navigation.ts:167:7)
at async Object.preRender (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/project/types/website/website.ts:120:5)
at async renderProject (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/project.ts:397:5)
at async Command.actionHandler (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/cmd.ts:248:26)
at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1948:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1780:14)
at async quarto (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/quarto.ts:190:5) |
The trick question now is: does all tools using |
No, in Python and R, paths inside If Quarto wants to keep the leading |
This is a bug. Relative paths should be resolved relative to the path of the file defining the paths. |
Bug description
Originally posted in posit-dev/brand-yml#66 (comment) by @szimmer:
Steps to reproduce
See https://github.com/szimmer/try-quarto-brand, which contains a
_brand.yml
file with (essentially)a
_quarto.yml
and two slides files
Both slide files are identical
Expected behavior
Both slides, when rendered, should show the logo in the slides.
Actual behavior
Only the
slides.qmd
has the logo,slides/slides.qmd
has a broken image.Your environment
ubuntu-latest
Quarto check output
quarto v1.6.40
The text was updated successfully, but these errors were encountered: