divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
67 stars 5 forks source link

How to use Asciidoctor themes? [solved] #4

Closed fsa1803 closed 3 years ago

fsa1803 commented 3 years ago

Hello. I would like to insert some text in the header and at the footer of the pages. In the asciidoc documentation I see that we need to create an external theme file. Is it possible or is there another method?

Thanks

divinity666 commented 3 years ago

To do so, you need to use the provided asciidoctor capabilities. So creating external theme files, as described here* Create the external themes as described here, is the way to go. Here are some short descriptions for different use cases:

1) Reporter with fixed setting of pdf-theme

If everything is setup properly, your style theme should be applied for the next renderings.

2) Reporter call from command line

3) Reporter call as webservice

Hope this helps.

fsa1803 commented 3 years ago

Thanks for your tips, everything works. Attributes cannot be placed in the adoc file, but that's not a problem for me, I use an external theme. But I think that being able to insert the attributes in the adoc file is a nice evolution.

Thanks