ここにテキストを挿入する必要があります。
helper.h('a.icon', {
href:'/docs',
title: 'Document'
}, ["test", iconNode("book")]),
リンクのCSSを調整する必要があります。
たとえば:
padding-inline-end: 2em;
justify-content: space-between;
color: currentcolor;

右側を意味する場合、次のように試すことができます。
api.decorateWidget('home-logo:after', helper => {
return helper.h('div.d-header-icons', [
helper.h('a.icon.btn-flat.doc', {
href:'/docs',
title: 'Document'
}, [iconNode("book"), "Doc"]),
]);
});
.d-header-icons .icon.doc {
width: auto;
gap: 0.5em;
margin-inline: 1em;
& .d-icon {
width: 1em;
}
}
簡単にテストしましたが、多少の癖があるかもしれませんが、大まかなアイデアはつかめるはずです!
