aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-04-22 15:53:31 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-04-22 15:53:31 +0200
commitad113ba69db6d700fdb86797e6caf616a9f8a546 (patch)
tree55df03bf1d338343e0f8899d942acd0d404ccbe9 /README.md
parent93cdf8cfccb005d5b14570eb8f265cb48bcb0fc5 (diff)
downloadfosdem-2021-minimalism-presentation-ad113ba69db6d700fdb86797e6caf616a9f8a546.tar
fosdem-2021-minimalism-presentation-ad113ba69db6d700fdb86797e6caf616a9f8a546.tar.gz
move notes-server plugin out of reveal.js core
Diffstat (limited to 'README.md')
-rw-r--r--README.md72
1 files changed, 27 insertions, 45 deletions
diff --git a/README.md b/README.md
index e2f6e8c..2f55cd6 100644
--- a/README.md
+++ b/README.md
@@ -54,9 +54,9 @@ This project was started and is maintained by [@hakimel](https://github.com/haki
- [Speaker Notes](#speaker-notes)
- [Share and Print Speaker Notes](#share-and-print-speaker-notes)
- [Server Side Speaker Notes](#server-side-speaker-notes)
-- [Plugins](#plugins)
- [Multiplexing](#multiplexing)
- [MathJax](#mathjax)
+- [Plugins](#plugins)
- [License](#license)
#### More reading
@@ -1399,54 +1399,12 @@ The pacing timer can be enabled by configuring the `defaultTiming` parameter in
## Server Side Speaker Notes
-In some cases it can be desirable to run notes on a separate device from the one you're presenting on. The Node.js-based notes plugin lets you do this using the same note definitions as its client side counterpart. Include the required scripts by adding the following dependencies:
-
-```javascript
-Reveal.initialize({
- // ...
-
- dependencies: [
- { src: 'socket.io/socket.io.js', async: true },
- { src: 'plugin/notes-server/client.js', async: true }
- ]
-});
-```
-
-Then:
-
-1. Install [Node.js](http://nodejs.org/) (9.0.0 or later)
-2. Run `npm install`
-3. Run `node plugin/notes-server`
-
-
-## Plugins
-
-Plugins should register themselves with reveal.js by calling `Reveal.registerPlugin( MyPlugin )`. Registered plugins _must_ expose a unique `id` property and can optionally expose an `init` function that reveal.js will call to initialize them.
-
-When reveal.js is booted up via `initialize()`, it will go through all registered plugins and invoke their `init` methods. If the `init` method returns a Promise, reveal.js will wait for that promise to be fulfilled before finishing the startup sequence and firing the [ready](#ready-event) event. Here's an example of a plugin that does some asynchronous work before reveal.js can proceed:
-
-```javascript
-let MyPlugin = {
- id: 'myPlugin',
- init: deck => new Promise( resolve => setTimeout( resolve, 3000 ) )
-};
-Reveal.initialize({
- dependencies: [ { plugin: MyPlugin } ]
-}).then( () => {
- console.log( 'Three seconds later...' )
-} );
-```
-
-Note that reveal.js will *not* wait for init Promise fulfillment if the plugin is loaded as an [async dependency](#dependencies). If the plugin's init method does _not_ return a Promise, the plugin is considered ready right away and will not hold up the reveal.js startup sequence.
-
-### Retrieving Plugins
-
-If you want to check if a specific plugin is registered you can use the `Reveal.hasPlugin` method and pass in a plugin ID, for example: `Reveal.hasPlugin( 'myPlugin' )`. If you want to retrieve a plugin instance you can use `Reveal.getPlugin( 'myPlugin' )`.
+In some cases it can be desirable to run notes on a separate device from the one you're presenting on. The Node.js-based notes plugin lets you do this using the same note definitions as its client side counterpart. See <https://github.com/reveal/notes-server>.
## Multiplexing
-The multiplex plugin allows your audience to follow the slides of the presentation you are controlling on their own phone, tablet or laptop. As of 4.0.0 this plugin has moved to its own repo at <https://github.com/reveal/multiplex>;
+The multiplex plugin allows your audience to follow the slides of the presentation you are controlling on their own phone, tablet or laptop. As of 4.0.0 this plugin has moved to its own repo at <https://github.com/reveal/multiplex>.
## MathJax
@@ -1483,6 +1441,30 @@ If you want to include math inside of a presentation written in Markdown you nee
`$$ J(\theta_0,\theta_1) = \sum_{i=0} $$`
```
+## Plugins
+
+Plugins should register themselves with reveal.js by calling `Reveal.registerPlugin( MyPlugin )`. Registered plugins _must_ expose a unique `id` property and can optionally expose an `init` function that reveal.js will call to initialize them.
+
+When reveal.js is booted up via `initialize()`, it will go through all registered plugins and invoke their `init` methods. If the `init` method returns a Promise, reveal.js will wait for that promise to be fulfilled before finishing the startup sequence and firing the [ready](#ready-event) event. Here's an example of a plugin that does some asynchronous work before reveal.js can proceed:
+
+```javascript
+let MyPlugin = {
+ id: 'myPlugin',
+ init: deck => new Promise( resolve => setTimeout( resolve, 3000 ) )
+};
+Reveal.initialize({
+ dependencies: [ { plugin: MyPlugin } ]
+}).then( () => {
+ console.log( 'Three seconds later...' )
+} );
+```
+
+Note that reveal.js will *not* wait for init Promise fulfillment if the plugin is loaded as an [async dependency](#dependencies). If the plugin's init method does _not_ return a Promise, the plugin is considered ready right away and will not hold up the reveal.js startup sequence.
+
+### Retrieving Plugins
+
+If you want to check if a specific plugin is registered you can use the `Reveal.hasPlugin` method and pass in a plugin ID, for example: `Reveal.hasPlugin( 'myPlugin' )`. If you want to retrieve a plugin instance you can use `Reveal.getPlugin( 'myPlugin' )`.
+
## License
MIT licensed