quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.97k stars 327 forks source link

auto generate ordered side navigation with subfolders #4290

Closed KaiWaldrant closed 1 year ago

KaiWaldrant commented 1 year ago

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/4265

Originally posted by **KaiWaldrant** February 7, 2023 We are creating a website with quarto and wanted to make use of the auto generating side bar navigation. Because we want to define the order of the layout we have added the `order` in the metadata of the `.qmd` files. For some reason the the directory with subfolders (`contribute`) is ordered last in the navigation bar although we specified it to be higher then the `code of conduct`. `_quarto.yaml` ```yaml sidebar: - id: documentation collapse-level: 3 title: Documentation contents: documentation - id: neurips2021_docs title: NeurIPS2021 contents: competitions/neurips_2021_docs ``` `documentation/code_of_conduct/index.qmd` ```yaml --- title: Code of conduct engine: knitr order: 60 --- ``` `documentation/contribute/index.qmd` ```yaml --- title: Contribute order: 4 --- ``` Can anybody see what we are doing wrong or is this a bug ? You can view a preview of the website here: [website](https://restructure-docs--openproblems-experimental.netlify.app/documentation/) You can find the code here: [github](https://github.com/openproblems-bio/website-experimental/tree/restructure-docs) cc @rcannood
dragonstyle commented 1 year ago

We currently appear to have code that is explicitly nudging section with children down in the order when sorting. I will see if I can sort out why that is there!

dragonstyle commented 1 year ago

I found the issue - the next pre-release of Quarto 1.3 should allow this to work properly!

rcannood commented 1 year ago

Awesome, thanks! :+1: looking forward to that release.

@KaiWaldrant can you verify by building quarto from source and rendering the site?