I need to put an image above the toc at the left.
I'm using multidoctor-multipage to create a html multipage manual. I need to place a logo image above the Table of Content at the left, in order that it appears at all pages.
It is there a way to do that?
Assuming you mean
asciidoctor-multipagehere's an approach that should work.The default theme for Asciidoctor doesn't have any built-in feature for branding the output. It does have a feature called Docinfo files that lets you embed custom CSS and JavaScript into every generated page.
The Docinfo files feature can be used to achieve your goal. Using JavaScript, an image can be added to the HTML wherever you want, and CSS styles can control the image presentation.
In the same folder as your AsciiDoc document, create the file
docinfo.htmlwith the following content:In your AsciiDoc file, just before the
:toc: leftattribute definition, add this line:Then, when you generate the HTML files with
asciidoctor-multipage, the image gets loaded and positioned above the table of contents.Notes:
logo.svgto whatever image filename you want to use.