divinity666 / ruby-grafana-reporter

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

Unable to select an Asciidoctor theme when running as a webservice [solved] #6

Closed hvostail closed 3 years ago

hvostail commented 3 years ago

Hello,

It would be good to have a possibility to pass the name of the theme inside the URL when running as a webservice, example:

http://127.0.0.1:8815/render?var-template=demo_report&var-theme=demo_theme

Perhaps, you could include similar functionality in the upcoming releases?

divinity666 commented 3 years ago

Hi,

this is already possible. You can use an URL specifying the respective asciidoctor variables. So your URL would look like:

http://127.0.0.1:8815/render?var-template=demo_report&pdf-theme=demo_theme

So the variable needs to be named pdf-theme instead of var-theme. Keep in mind that the theme filename in the URL has to exactly match the theme filename including extension (e.g. ˋ.ymlˋ).

Would you kindly confirm if that fits your need?

hvostail commented 3 years ago

Hello,

thanks, this is fine with me.