-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional reveal.js dependencies/plugins #118
Comments
There doesn't seem to be a way currently. I guess that means we need to design a solution. Perhaps a comma-separated list of extensions, like:
But that doesn't address the configuration for that plugin. That feels like too much for document attributes. Of course, you can achieve this today simply by providing a custom document template. Though, perhaps that shines light on what the solution should be. We should read the dependencies block from a template (or json configuration file) that you can override. That way, you get full control. Either way, we need to design a solution. |
It's not an easy one to address since the plugin can be separately installed via bower, npm or manually which changes the way you need to write the
Idea a) attribute to load external javascript fileMaybe we should allow for JSON to be injected via an external file. Quick testing shows that overriding keys would even work so we could provide default values and allow the user to override: {"a":"b","a":"c"}
> Object {a: "c"} So a new attribute
With a menu: {
side: 'right',
themes: false,
transitions: true,
}, Idea b) attribute to run individual
|
I was fiddling with that as well (with menu plugin being one of pluging I was looking for). Due to constraints @obilodeau pointed out my approach was to handle plugins externally, while building slides not in the slides themselves. I've added a 'replaceable token' in the main It's still a bit hacky and dependant on my own build environment, but as the topic emerge I'll try to get stuff together so that I can show a working example. Ideally, an npm build script with asciidoctor.js would be a natural environment for that, but as the slim and jade templates differ, that was a no go for me. |
thinking about the same issue just now. If I would know how to implement it, I would take an optional file that could replace the default text in the init section and I could provide a file (reval_plugins) with for example a content like this..
but unfortunately my slim knowledge is not existent. there is a include command for slim and theoretical is should be possible to include a file, if it is give, but I do not know how to implement this |
This feature was integrated in master. It will be part of the next release. |
This is a very nice feature. Is there already an ETA when the next release will be available? |
How can I configure additional reveal.js plugins?
Reveal.js lists a number of plugins: https://github.com/hakimel/reveal.js/wiki/Plugins,-Tools-and-Hardware
For example, to use the reveal.js-menu plugin (https://github.com/denehyg/reveal.js-menu), I'd need at least to specify additional reveal.js dependencies:
And at best, to be able to customize the plugin by specifying additional
Revial.initialize
attributes (see https://github.com/denehyg/reveal.js-menu#configuration).Is there currently any way to specify additional reveal.js dependencies?
The text was updated successfully, but these errors were encountered: