Skip to content

Commit

Permalink
Reorganize and cleanup examples
Browse files Browse the repository at this point in the history
  • Loading branch information
blikblum committed Jul 11, 2021
1 parent dd6569e commit 5fbdfd6
Show file tree
Hide file tree
Showing 40 changed files with 91,455 additions and 156 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ src/
playground/
build/
js/
demo/bundle.js
*.html
!demo/browser.html
.vscode
coverage
Binary file removed demo/accessible.pdf
Binary file not shown.
30 changes: 0 additions & 30 deletions demo/png-benchmark.js

This file was deleted.

6 changes: 3 additions & 3 deletions docs/publish_website.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ ghpages.publish(
'docs/*.html',
'docs/img/*.png',
'docs/guide.pdf',
'demo/browser.html',
'demo/bundle.js',
'demo/out.pdf'
'examples/browserify/browser.html',
'examples/browserify/bundle.js',
'examples/kitchen-sink.pdf'
],
add: true,
message
Expand Down
4 changes: 2 additions & 2 deletions docs/template.pug
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ html
li
a(href='/docs/guide.pdf') PDF Guide
li
a(href='/demo/out.pdf') Example PDF
a(href='/examples/kitchen-sink.pdf') Example PDF
li
a(href='/demo/browser.html') Interactive Browser Demo
a(href='/examples/browserify/browser.html') Interactive Browser Demo
li
a(href='http://github.com/foliojs/pdfkit') Source Code

Expand Down
File renamed without changes.
Binary file renamed demo/attachment.pdf → examples/attachment.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions demo/browser.html → examples/browserify/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
margin: 0;
}


a {
color: blue;
}
Expand All @@ -33,6 +34,7 @@

<body>
<h1>PDFKit Browser Demo</h1>
<p>Bundled with Browserify</p>
<p><a href="http://pdfkit.org/">Website</a> | <a href="http://github.com/foliojs/pdfkit">Github</a></p>
<div id="editor"></div>
<iframe width="600" height="775"></iframe>
Expand Down
2 changes: 1 addition & 1 deletion demo/browser.js → examples/browserify/browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var PDFDocument = require('../');
var PDFDocument = require('../..');
var blobStream = require('blob-stream');
var ace = require('brace');
require('brace/mode/javascript');
Expand Down

0 comments on commit 5fbdfd6

Please sign in to comment.