You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature improvement request: support multiple inheritance #2624
Now, I have to "chain" the inheritance (<-- = inherit value): mkdocs.yml <-- ./config/0_md_extensions.yml <-- ./config/1_plugins.yml <-- ./config/2_extra.yml
But it's too hard to maintain.
Reacted by Tim Vink, Álvaro Mondéjar Rubio, Yifei Ding, Andre Bossert, Luís Mendes, Dariusz Porowski, michel-schols-sioux and abhijeetoxide
This looks like a legit use-case. We need to rethink inheritance and make it more robust/flexible. Maybe using composition instead of inheritance is the way to go. This could also be solved by allowing users to add custom YAML tags, like an !include tag (for example Copier has such a feature). Maybe we should otherwise simply offload this to other tools like Ansible/Chef/etc. (I don't use them, forgive my probable ignorance), which IIUC use Jinja to build YAML.
Unsurprisingly my view here is on the same page as #3331 with this.
Single config file being a single config file is a reasonable constraint.
Plenty of scope for users to do fancy compositions in their own toolchains if absolutely needed.
Reacted by Timothée Mazzucotelli and Manuel Kaufmann
Activity
anb0s commentedon Mar 14, 2022
Is multiple inheritance supported? can we use multiple INHERIT entries ?
pawamoy commentedon Apr 17, 2024
This looks like a legit use-case. We need to rethink inheritance and make it more robust/flexible. Maybe using composition instead of inheritance is the way to go. This could also be solved by allowing users to add custom YAML tags, like an
!includetag (for example Copier has such a feature). Maybe we should otherwise simply offload this to other tools like Ansible/Chef/etc. (I don't use them, forgive my probable ignorance), which IIUC use Jinja to build YAML.lovelydinosaur commentedon Apr 17, 2024
Unsurprisingly my view here is on the same page as #3331 with this.
Single config file being a single config file is a reasonable constraint.
Plenty of scope for users to do fancy compositions in their own toolchains if absolutely needed.