fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.92k stars 487 forks source link

ERROR: Project _quarto.yml validation failed: Key contents has value tutorials/* #1195

Closed bkowshik closed 1 year ago

bkowshik commented 1 year ago

Forked the fastai/nbdev repository into bkowshik/nbdev and then ran the nbdev_preview command and got the following error after running nbdev_install_hooks in the repository.

$ nbdev_preview

ERROR: Project _quarto.yml validation failed.

In file _quarto.yml
(line 23, columns 19--30) Key contents has value tutorials/*, which must be an array of values, where each element must be at least one of: navigation-item, a string, an object
22:       - section: Tutorials
23:         contents: tutorials/*
                      ~~~~~~~~~~~
24:       - section: Explanations
✖ The value tutorials/* is string.
ℹ The error happened in location website:sidebar:contents:1:contents.

In file _quarto.yml
(line 25, columns 19--33) Key contents has value explanations/*, which must be an array of values, where each element must be at least one of: navigation-item, a string, an object
24:       - section: Explanations
25:         contents: explanations/*
                      ~~~~~~~~~~~~~~
26:       - section: API
✖ The value explanations/* is string.
ℹ The error happened in location website:sidebar:contents:2:contents.

In file _quarto.yml
(line 27, columns 19--24) Key contents has value api/*, which must be an array of values, where each element must be at least one of: navigation-item, a string, an object
26:       - section: API
27:         contents: api/*
                      ~~~~~
28:   favicon: favicon.png
✖ The value api/* is string.
ℹ The error happened in location website:sidebar:contents:3:contents.
deven-gqc commented 1 year ago

Hi @bkowshik, nbdev uses latest quarto prerelease for nbdev, since it has auto-sidebar functionality

hamelsmu commented 1 year ago

correct, use the latest pre-release of quarto