-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More Templates for HTML, PDF possible? #1
Comments
At the moment, there is only this one template for swagger. Although I consider it usable at the moment (we used it to provide documentation to our customers) it can certainly be improved. So if you have any improvements, feel free to create an issue with more detailed ideas or a PR. I'm going to add a section about "contributing" to the documentation soon. PDF generation is a bit tricky and it is a more general question of converting HTML to PDF. I've tried the following:
Since every option had a large drawback (links not working, file size, price), we just sent a zip-file containing the HTML- and the StyleSheets. So, PDF-generation is possible, but it's not built in (yet). |
The idea is that the HTML will contain the following:
|
Most of these values belong into the bootprint-json-schema module. I would like to encourage you to clone the repository, make your changes and submit a pull request. If you need a starting point. From what I can see,
"Examples" in the swagger-parts of the spec only seem to be possible within response definitions, which would go into the partials of this ("bootprint-swagger") module, namely swagger/responses. Also, check out the development-setup when changing partials. I may find some time to add these values myself, but a pull-request would probably be accepted faster than that. I am currently working on documentation for the template-modules. Or better, I am trying to figure out a good way to write part of the document as inline comments within partials, less-files and js-files. |
@nknapp late to the party, but you might consider https://docraptor.com for HTML to PDF. It uses PrinceXML on the backend, but has a saas-based pricing model. |
@aviadavi can you provide a simple (possibly minimal) example containing the data you'd like to see in the output? That would be a great help. |
@JamesPaden I don't think a SaaS is the right alternative for my purposes, but it might be for others, thanks for the hint. |
I've included "default-values" and examples in the JSON-Schema into the current version. |
I've extracted the two remaining TODOs into separate issues. This issue will now be closed |
Hi.
Do you have more handlebars templates for bootprint swagger (there is only 1 correct me if i'm wrong) ?
Is generating PDF possible ?
The text was updated successfully, but these errors were encountered: