-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
53 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,7 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | ||
<title>RapiPdf</title> | ||
<style> | ||
rapi-pdf { | ||
<!doctype html><html lang="en"><head><meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes"><title>RapiPdf</title><style>rapi-pdf { | ||
margin:2px; | ||
width:600px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<!-- | ||
Some sample spec to try | ||
http://10.21.83.83:8080/api/swagger.json | ||
https://api.apis.guru/v2/specs/stripe.com/2019-08-14/swagger.json | ||
https://api.apis.guru/v2/specs/github.com/v3/swagger.json | ||
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json | ||
https://petstore.swagger.io/v2/swagger.json | ||
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown | ||
--> | ||
|
||
<!-- | ||
<rapi-pdf id='rapipdf' spec-url="./examples/specs/test.json" include-info="false" include-security="false" include-toc="false"> </rapi-pdf> | ||
--> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/petstore.json" pdf-schema-style="table"> </rapi-pdf> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/petstore.json" pdf-schema-style="object"> </rapi-pdf> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/bitbucket.json"> </rapi-pdf> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/data-types.yaml"> </rapi-pdf> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/data-types.yaml" include-example="true", button-label="WITH EXAMPLE"> </rapi-pdf> | ||
<rapi-pdf id='rapipdf' spec-url="./specs/data-types.yaml" hide-input="true"> </rapi-pdf> | ||
|
||
|
||
<button onclick="changeSpec()">Change Spec</button> | ||
<script type="text/javascript"> | ||
function changeSpec(){ | ||
}</style></head><body><rapi-pdf id="rapipdf" spec-url="./specs/petstore.json" pdf-schema-style="table"></rapi-pdf><rapi-pdf id="rapipdf" spec-url="./specs/petstore.json" pdf-schema-style="object"></rapi-pdf><rapi-pdf id="rapipdf" spec-url="./specs/bitbucket.json"></rapi-pdf><rapi-pdf id="rapipdf" spec-url="./specs/data-types.yaml"></rapi-pdf><rapi-pdf id="rapipdf" spec-url="./specs/data-types.yaml" include-example="true" , button-label="WITH EXAMPLE"></rapi-pdf><rapi-pdf id="rapipdf" spec-url="./specs/data-types.yaml" hide-input="true"></rapi-pdf><button onclick="changeSpec()">Change Spec</button><script>function changeSpec(){ | ||
let el = document.getElementById("rapipdf"); | ||
el.setAttribute('spec-url', 'set new attrib'); | ||
} | ||
</script> | ||
|
||
|
||
<script type="text/javascript" src="rapipdf-min.js"></script></body> | ||
|
||
</html> | ||
}</script><script src="rapipdf-min.js"></script></body></html> |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rapipdf", | ||
"version": "2.1.1", | ||
"version": "2.2.1", | ||
"description": "RapiPdf - Generate PDF from Open API spec", | ||
"author": "Mrinmoy Majumdar <[email protected]>", | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters