project-type and project sidebar configurations cannot always merge #9482
Labels
enhancement
New feature or request
extensions
relates to Quarto extensions mechanism
projects
websites
Issues creating websites
Milestone
Bug description
The
website.sidebar
configuration is sometimes an array and sometimes an object. When an extension defines a custom website project type and sets somewebsite.sidebar
properties, that prevents a downstream project from using a different style of sidebar configuration.For example, the extension may declare some sidebar defaults:
The project using this extension might try to use hybrid navigation, like the following:
These two types of sidebar configurations cannot be merged.
An example of an extension which attempted to define the sidebar:
We have abandoned sidebar configuration in the extension because of this issue.
Steps to reproduce
No response
Expected behavior
I do not know enough about all the sidebar configuration options to know if two configurations can always be merged. If they can, then that is what should happen. If they cannot be merged, Quarto should produce a message (warning or error) indicating that the extension and project sidebar configurations are incompatible.
Actual behavior
The extension-provided sidebar configuration appeared to win. The project sidebar configuration is not shown.
Your environment
No response
Quarto check output
The text was updated successfully, but these errors were encountered: