FAQ - itz-d0dgy-2nd/ReportForge GitHub Wiki
Frequently Asked Questions
How do I customise my own template?
Great question. To edit the layout and order of content you're going to want to edit the HTML in the engine/template/html/template.html
file. To customised fonts, colours etc edit the css in the engine/template/html/css/template.css
. You will probably also want your own logo and page-front files in engine/template/html/images/
.
Can I use my own custom risk matrix?
Yes - but currently you have to edit the raw Go files engine/utils/handler_severity_files.go
and engine/utils/process_severity.go
, and then update the hardcoded risk matrix labels in engine/template/html/template.html
How do I add X visual element to the title page or all other pages?
We're working on this. Take a look at how the draft watermark is currently implemented to give you a starting point.
@media print{...
stuff in the css file?
What's the deal with the The @media print{...
contents add additional formatting to the page, but only when printed to a PDF (so you wont see it in the raw HTML).
Changes made here will apply to all pages in the document (regardless of section).
Can I see/inspect the raw HTML?
Yeah - just comment out line 59 in engine/utils/generator_pdf.go
- and you will be able to inspect the HTML used to generate the PDF in its interim state. Then use inspect element in your browser to customise/play with it more.