Closed ratnanil closed 1 year ago
You cannot have parts without chapters. Parts require chapters.
book:
title: "Issue6474"
author: "Norah Jones"
date: "8/10/2023"
chapters:
- index.qmd
- part: intro.qmd
chapters:
- summary.qmd
- references.qmd
I don't believe this to be a bug. @dragonstyle in case you have a different opinion.
Is there a reason that a chapter
is mandatory for a part
? Note that the only thing missing is the hyperlink to References
in the sidebar. The page itself exists already. The hyperlink does exist if the part
does have chapters
(see example below)
book:
title: "Quarto-test"
author: "Norah Jones"
date: "8/10/2023"
chapters:
- index.qmd
- part: intro.qmd
chapters:
- summary.qmd
- part: references.qmd
I don't understand why do you need a part? Isn't the following enough?
Part is about nesting chapters which is not what you want.
book:
title: "Issue6474"
author: "Norah Jones"
date: "8/10/2023"
chapters:
- index.qmd
- part: intro.qmd
chapters:
- summary.qmd
- references.qmd
OMG I completely missed that. I was so stuck in the part
→ chapter
hierarchical system that I did not know that this works. Thanks for the solution!
The "Preface" (from index.qmd
) was maybe too obvious^^
I am going ahead and close this.
Bug description
I have a book containing parts. One part, namely my References.qmd, does not contain chapters. The qmd File is rendered, but regretfully not linked in the sidebar.
Steps to reproduce
Create a book project
In the file
_quarto.yml
, do the following changesRender the project
Expected behavior
"References" in the sidebar panel should be a Hyperlink to
/References.html
Actual behavior
"References" in the sidebar panel is not a Hyperlink
(Note the colour of
References
in the screenshot below)Your environment
Quarto check output
R
is not probably not detected because I'm working with a docker container. If I runR --version
in the termial, I get: