YAMLException Error while using _brand.yml #11902
Answered
by
mcanouil
JohannHenning-LNP
asked this question in
Q&A
-
DescriptionI'm trying to compile a reveljs presentation using a snippet from the _brand.yml example. File location ---
color:
palette:
dark-grey: "#222222"
blue: "#ddeaf1"
background: blue
foreground: dark-grey
primary: black
typography:
fonts:
- family: Jura
source: google
base: Jura
headings: Jura
--- My presentation file located at ---
title: 2024 in a Nutshell
format: revealjs
brand: ./brand/brand.yml
---
# slide 1
# slide 2
# slide 3 Output Quarto 1.7.6
[✓] Checking environment information...
Quarto cache location: /home/johann/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.7.6
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2024.11
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/johann/.TinyTeX/bin/x86_64-linux
Version: 2024
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.7
Path: /home/johann/.local/share/virtualenvs/data-analysis-ZXrbRR71/bin/python3
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.4.2
Path: /usr/lib64/R
LibPaths:
- /usr/lib/R/library
knitr: (None)
rmarkdown: (None)
The knitr package is not available in this R installation.
Install with install.packages("knitr")
The rmarkdown package is not available in this R installation.
Install with install.packages("rmarkdown") The error I get when running ERROR: YAMLException: expected a single document in the stream, but found more
Stack trace:
at load$1 (file:///opt/quarto/bin/quarto.js:14828:11)
at buildJsYamlAnnotation (file:///opt/quarto/bin/quarto.js:15600:5)
at readAnnotatedYamlFromMappedString (file:///opt/quarto/bin/quarto.js:15500:16)
at readAndValidateYamlFromMappedString (file:///opt/quarto/bin/quarto.js:15864:30)
at readAndValidateYamlFromFile (file:///opt/quarto/bin/quarto.js:20490:50)
at projectResolveBrand (file:///opt/quarto/bin/quarto.js:40048:33)
at async resolveFormats (file:///opt/quarto/bin/quarto.js:80569:23)
at async renderContexts (file:///opt/quarto/bin/quarto.js:80401:21)
at async renderFormats (file:///opt/quarto/bin/quarto.js:80445:22)
at async file:///opt/quarto/bin/quarto.js:107961:24 Some system info: johann@JohannLenovolaptop
/\
/ \ Arch Linux x86_64
/ \ - Linux 5.15.153.1-microsoft-standard-WSL2
/ \ - 546 (pacman)
/ ,, \ - 2 hours, 16 mins
/ | | \ - 2.12 GiB / 7.62 GiB (28%)
/_-'' ''-_\
Γùå Γùå Γùå Γùå Γùå Γùå Γùå Γùå
|
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Jan 20, 2025
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JohannHenning-LNP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
_brand.yml
you showed is not from the documentation. Yours is not valid as it contains---
.