Skip to content

Commit ae5deae

Browse files
committed
updated documentation
1 parent 6f6d288 commit ae5deae

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

docs/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,16 @@ <h2> Methods</h2>
257257
<th >Description </th>
258258
</tr>
259259
<tr>
260-
<td class="mono-bold">generatePdf()</td>
261-
<td class="gray">to programmatically generate the PDF </td>
260+
<td class="mono-bold">generatePdf(spec)</td>
261+
<td class="gray">
262+
to programmatically generate the PDF
263+
takes a single parameter that can
264+
<ul>
265+
<li> either a string containing the url of the specs</li>
266+
<li> or a JSON object representing a valid spec</li>
267+
</ul>
268+
<a href="https://github.com/mrin9/RapiPdf/blob/master/docs/examples/example1.html"> Example </a>
269+
</td>
262270
</tr>
263271
<tr>
264272
<td class="mono-bold">setAttribute(attr-name, value)</td>
@@ -329,6 +337,8 @@ <h2> Localization</h2>
329337
}
330338
}
331339

340+
341+
332342
</script>
333343
</body>
334344

docs/welcome.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,16 @@ <h2> Methods</h2>
257257
<th >Description </th>
258258
</tr>
259259
<tr>
260-
<td class="mono-bold">generatePdf(spec) </td>
261-
<td class="gray">To programatically load spec. The method takes
260+
<td class="mono-bold">generatePdf(spec)</td>
261+
<td class="gray">
262+
to programmatically generate the PDF
263+
takes a single parameter that can
262264
<ul>
263265
<li> either a string containing the url of the specs</li>
264266
<li> or a JSON object representing a valid spec</li>
265267
</ul>
268+
<a href="https://github.com/mrin9/RapiPdf/blob/master/docs/examples/example1.html"> Example </a>
266269
</td>
267-
<td> <a href="https://github.com/mrin9/RapiPdf/blob/master/docs/example1.html"> Example </a></td>
268-
</tr>
269-
<tr>
270-
<td class="mono-bold">generatePdf()</td>
271-
<td class="gray">to programmatically generate the PDF </td>
272270
</tr>
273271
<tr>
274272
<td class="mono-bold">setAttribute(attr-name, value)</td>

0 commit comments

Comments
 (0)