En tu ejemplo, necesitas insertar tu texto aquí:
helper.h('a.icon', {
href:'/docs',
title: 'Documento'
}, ["prueba", iconNode("book")]),
Necesitarás ajustar el CSS del enlace.
Por ejemplo:
padding-inline-end: 2em;
justify-content: space-between;
color: currentcolor;

Si te refieres a la derecha, puedes intentar:
api.decorateWidget('home-logo:after', helper => {
return helper.h('div.d-header-icons', [
helper.h('a.icon.btn-flat.doc', {
href:'/docs',
title: 'Documento'
}, [iconNode("book"), "Doc"]),
]);
});
.d-header-icons .icon.doc {
width: auto;
gap: 0.5em;
margin-inline: 1em;
& .d-icon {
width: 1em;
}
}
¡Lo probé rápidamente. Puede que encuentres algunas peculiaridades, pero deberías captar la idea general!
