UCSB-MEDS / creating-quarto-websites

learn how to build a quarto website
https://ucsb-meds.github.io/creating-quarto-websites/
15 stars 0 forks source link

Collapsible TOC #8

Open MarcoPortmann opened 4 months ago

MarcoPortmann commented 4 months ago

I came across your Quarto document with the description of how to create Quarto websites. The feature that interests me most for my project is the collapsible TOC:

image

I forked the repository. Unfortunately, I don't get a foldable TOC when I render the document. Could you tell me how to create such a TOC?

samanthacsik commented 1 week ago

Hi @MarcoPortmann! Embarrassingly, I wasn't actually watching this repo and missed a couple of these issues from way too long ago now 😅

Truthfully, I still am not sure why my TOC is collapsing -- it's a behavior that I actually would prefer not to have. I haven't been able to recreate it on any other quarto document, even when using similar YAML options (e.g. see this hosted quarto doc + source code).

If you've found any solutions to this, I'd love to know!

MarcoPortmann commented 1 week ago

Thanks for your answer, @samanthacsik . Unfortunately, I could not find out how to accomplish this behavior with a simple html document. I have therefore resorted to a website project.