Skip to content

Commit

Permalink
updated package version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Sep 13, 2019
1 parent 8e59328 commit a702360
Show file tree
Hide file tree
Showing 12 changed files with 174 additions and 10 deletions.
37 changes: 37 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!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>
</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-02-19/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="./examples/specs/petstore.json"> </rapi-pdf>


<button onclick="changeSpec()">Change Spec</button>
<script type="text/javascript">
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>
Binary file added dist/index.html.gz
Binary file not shown.
55 changes: 55 additions & 0 deletions dist/rapipdf-min.js

Large diffs are not rendered by default.

Binary file added dist/rapipdf-min.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions dist/rapipdf-min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/rapipdf-min.js.map.gz
Binary file not shown.
64 changes: 64 additions & 0 deletions dist/report.html

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,19 @@ <h2> Quickstart & Demo</h2>
&lt;body&gt;
&lt;rapi-pdf
style = "width:700px; height:40px; font-size:18px;"
spec-url = "https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
spec-url = "https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
button-bg = "#b44646"
&gt; &lt;/rapi-pdf&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>
Go ahead, provide your Open API spec and click <span style="font-weight:bold">GENERATE PDF
</span> !!!
</p>

<rapi-pdf id='rapipdf' style="width:730px; height:40px; font-size:18px;"
spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
spec-url="https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
button-bg="#b44646"
pdf-title="My API Reference"
> </rapi-pdf>
Expand Down
4 changes: 2 additions & 2 deletions docs/rapipdf-min.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions docs/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,19 @@ <h2> Quickstart & Demo</h2>
&lt;body&gt;
&lt;rapi-pdf
style = "width:700px; height:40px; font-size:18px;"
spec-url = "https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
spec-url = "https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
button-bg = "#b44646"
&gt; &lt;/rapi-pdf&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>
Go ahead, provide your Open API spec and click <span style="font-weight:bold">GENERATE PDF
</span> !!!
</p>

<rapi-pdf id='rapipdf' style="width:730px; height:40px; font-size:18px;"
spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
spec-url="https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
button-bg="#b44646"
pdf-title="My API Reference"
> </rapi-pdf>
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<script type="text/javascript">
function changeSpec(){
let el = document.getElementById("rapipdf");
//el.specUrl = 'abcd'
el.setAttribute('spec-url', 'set new attrib');
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapipdf",
"version": "1.1.1",
"version": "1.2.0",
"description": "RapiPdf - Generate PDF from Open API spec",
"author": "Mrinmoy Majumdar <[email protected]>",
"repository": {
Expand Down

0 comments on commit a702360

Please sign in to comment.