docus
docus copied to clipboard
[Request] Ability to add custom buttons in header
It would be great to be able to add custom buttons (or any elements or components) in the top right section of the header, alongside the theme button. For example, a locale select, or preferred programming language select.
You can copy AppHeader.vue
from the docus project and create a component with the same name in your project.
The later will overwrite the former. You will then be able to customize the header to your need.
As an example you can add your custom my-custom-comp
component on the right side:
<div class="section right">
<AppSearch v-if="hasDocSearch" />
<ThemeSelect />
<div class="social-icons">
<AppSocialIcons />
</div>
<my-custom-comp />
</div>
@PhE Thanks a lot, that's a good workaround, so I'm gonna do that for now.
Still, I think it would be good to have an actually implemented solution without working around the template.