Open IULibScholComm opened 4 weeks ago
Could you properly format your post using code blocks for code and terminal outputs? Thanks.
If your code contains code blocks, you need to enclose it using more backticks, i.e., usually four ````
.
See https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us.
My yml is below; please let me know if I should provide anything further.
We always do need a full reproduction, and not just the part you think causes the bug.
@mcanouil @cscheid I apologize for my errors (I'm new at this and hoping to learn); have I fixed them? Thank you!
@cscheid I believe this bug report is ready to be looked into, as I think I've provided a full reproduction. Please let me know if anything further is needed.
Thank you, and sorry for my earlier error!
The repro isn't full, unfortunately - I'm trying to figure out how you got the first screenshot, and I can't (I tried to replace type: book
with type: website
in your provided _quarto.yml
.
Can you give us a git repository with two separate Quarto projects so we can render them from your git repository without having to guess your file structure? This feels strict, but we otherwise do not know how you've arrived at what you're looking at.
@cscheid I am sorry about that (I am new at this), and thank you for bearing with me!
The information you requested should now be both in the issue above and at this repository. Please let me know if you have everything needed. Thank you!
@cscheid Hi--I'm just checking in about this issue; have I provided above everything that you need? Thank you!
We will get back to you when we have time to do so. Please be patient.
So I can repro but I am not sure the sidebar.contents
is actually supported in Book format as the chapters are sent to the sidebar.
To me it's a documentation issue: the first link is auto-generated and might not have the right scope for all options such as sidebar.contents
(no where to be found in book codebase), the second link is for websites not books.
Now, what I don't understand is why not using parts? https://quarto.org/docs/books/book-structure.html#parts-appendices
Now, what I don't understand is why not using parts? https://quarto.org/docs/books/book-structure.html#parts-appendices
Thank you for looking into this! Treating it as a documentation issue makes sense. I would use Parts, but this book will be published as and EPUB as well as HTML, and Parts unfortunately do not work in EPUB format.
Bug description
My book has 50+ chapters, so I'm hoping to use Sidebar Contents described here and here to display in the book's sidebar a hierarchy of chapters. However, while the Contents option works in Website projects (see screenshot), it is not working in Book projects (see screenshot), despite the documentation claiming that it does. Basically, to my eyes it looks like in book projects, the yml Chapter metadata interferes with the sidebar customization (despite the documentation saying otherwise), whereas in website projects, the absence of yml Chapter metadata enables the sidebar to be customized.
Steps to reproduce
Screenshot 2: Book (Error)
Screenshot 1: Website (Works Correctly)
Expected behavior
The chapters in the sidebar of the book should be rendered as they are in the website: i.e., in a hierarchy with customized names.
Actual behavior
The sidebar contents option does not work in the book project.
Your environment
Quarto check output