Skip to content

Commit a702360

Browse files
committed
updated package version
1 parent 8e59328 commit a702360

12 files changed

+174
-10
lines changed

dist/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
6+
<title>RapiPdf</title>
7+
</head>
8+
9+
<body>
10+
<!--
11+
Some sample spec to try
12+
http://10.21.83.83:8080/api/swagger.json
13+
https://api.apis.guru/v2/specs/stripe.com/2019-02-19/swagger.json
14+
https://api.apis.guru/v2/specs/github.com/v3/swagger.json
15+
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
16+
https://petstore.swagger.io/v2/swagger.json
17+
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
18+
-->
19+
20+
<!--
21+
<rapi-pdf id='rapipdf' spec-url="./examples/specs/test.json" include-info="false" include-security="false" include-toc="false"> </rapi-pdf>
22+
-->
23+
<rapi-pdf id='rapipdf' spec-url="./examples/specs/petstore.json"> </rapi-pdf>
24+
25+
26+
<button onclick="changeSpec()">Change Spec</button>
27+
<script type="text/javascript">
28+
function changeSpec(){
29+
let el = document.getElementById("rapipdf");
30+
el.setAttribute('spec-url', 'set new attrib');
31+
}
32+
</script>
33+
34+
35+
<script type="text/javascript" src="rapipdf-min.js"></script></body>
36+
37+
</html>

dist/index.html.gz

588 Bytes
Binary file not shown.

dist/rapipdf-min.js

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapipdf-min.js.gz

1.02 MB
Binary file not shown.

dist/rapipdf-min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapipdf-min.js.map.gz

150 Bytes
Binary file not shown.

dist/report.html

Lines changed: 64 additions & 0 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,19 @@ <h2> Quickstart & Demo</h2>
124124
&lt;body&gt;
125125
&lt;rapi-pdf
126126
style = "width:700px; height:40px; font-size:18px;"
127-
spec-url = "https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
127+
spec-url = "https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
128128
button-bg = "#b44646"
129129
&gt; &lt;/rapi-pdf&gt;
130130
&lt;/body&gt;
131131
&lt;/html&gt;
132132
</code></pre>
133-
133+
<p>
134+
Go ahead, provide your Open API spec and click <span style="font-weight:bold">GENERATE PDF
135+
</span> !!!
136+
</p>
137+
134138
<rapi-pdf id='rapipdf' style="width:730px; height:40px; font-size:18px;"
135-
spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
139+
spec-url="https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
136140
button-bg="#b44646"
137141
pdf-title="My API Reference"
138142
> </rapi-pdf>

docs/rapipdf-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/welcome.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,19 @@ <h2> Quickstart & Demo</h2>
124124
&lt;body&gt;
125125
&lt;rapi-pdf
126126
style = "width:700px; height:40px; font-size:18px;"
127-
spec-url = "https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
127+
spec-url = "https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
128128
button-bg = "#b44646"
129129
&gt; &lt;/rapi-pdf&gt;
130130
&lt;/body&gt;
131131
&lt;/html&gt;
132132
</code></pre>
133-
133+
<p>
134+
Go ahead, provide your Open API spec and click <span style="font-weight:bold">GENERATE PDF
135+
</span> !!!
136+
</p>
137+
134138
<rapi-pdf id='rapipdf' style="width:730px; height:40px; font-size:18px;"
135-
spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
139+
spec-url="https://mrin9.github.io/RapiPdf/examples/specs/petstore.json"
136140
button-bg="#b44646"
137141
pdf-title="My API Reference"
138142
> </rapi-pdf>

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<script type="text/javascript">
2828
function changeSpec(){
2929
let el = document.getElementById("rapipdf");
30-
//el.specUrl = 'abcd'
3130
el.setAttribute('spec-url', 'set new attrib');
3231
}
3332
</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rapipdf",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "RapiPdf - Generate PDF from Open API spec",
55
"author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
66
"repository": {

0 commit comments

Comments
 (0)