Skip to content

[openapi] Export api doc to pdf #13

Description

@josejachuf

I share a simple way to export the documentation to PDF using rapipdf [1].
You must export the documentation to YAML and then use it with


<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/rapipdf/dist/rapipdf-min.js"></script>
  </head>
  <body>    
    <rapi-pdf style="width:700px; height:40px; font-size:18px;" spec-url="openapi.yaml" >
    </rapi-pdf>
  </body>
</html>

Or use it online from: http://127.0.0.1:8000/main/openapi.yaml

Best regards
Jose

[1] https://github.com/mrin9/RapiPdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions