Skip to content

Commit d8d4c6d

Browse files
committed
Docs update for reveal 4.x
1 parent f3b1dbc commit d8d4c6d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
# PdfExport
22

3-
A [reveal.js](https://github.com/hakimel/reveal.js/) plugin to easly switch to the built-in PDF export mode and back by pressing a shortcut key.
3+
A [reveal.js](https://github.com/hakimel/reveal.js/) 3.x / 4.x plugin to easly switch to the built-in PDF export mode and back by pressing a shortcut key.
44

55
## Installation
66

7-
Copy this repository into the plugins folder of your reveal.js presentation, ie ```plugin/pdfexport```.
7+
Copy this repository into the plugin folder of your reveal.js presentation, ie ```plugin/pdfexport```.
88

9-
Add the plugin to the dependencies in your presentation, as below.
9+
Add the plugin to the initialization of your presentation, as below.
10+
11+
### reveal 4.x
12+
13+
```javascript
14+
<script src="plugin/pdfexport/pdfexport.js"></script>
15+
// ..
16+
Reveal.initialize({
17+
// ...
18+
plugins: [
19+
// ..
20+
PdfExport,
21+
]
22+
});
23+
```
24+
25+
### reveal 3.x
1026

1127
```javascript
1228
Reveal.initialize({
@@ -18,7 +34,7 @@ Reveal.initialize({
1834
});
1935
```
2036

21-
You need to remove all of the following or similar lines from your presentation. Paper- or PDF-stylesheets will be set by the plugin.
37+
For **reveal 3.x only** you need to remove all of the following or similar lines from your presentation. Paper- or PDF-stylesheets will be set by the plugin.
2238

2339
```html
2440
<!-- Printing and PDF exports -->

0 commit comments

Comments
 (0)