wolfe-pack / moro

Interactive documentation and programming with Scala, iPython notebook style.
http://wolfe-pack.github.io/moro
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Make reveal.js transition type a cell configuration in notebook #68

Closed rockt closed 9 years ago

rockt commented 9 years ago

I need transition=none for some cells in my moro notebook in present mode :) Would also be sufficient to have a general field in the cell configuration to add reveal.js section attributes (like transition type, background color/image etc.)

sameersingh commented 9 years ago

I can add this config option on the cells, and point you to how to access them from javascript, but you'll have to implement the part where it's used in the reveal template. Okay?

On Mon, Jun 22, 2015 at 11:50 AM, Tim Rocktäschel notifications@github.com wrote:

I need transition=none for some cells in my moro notebook in present mode :) Would also be sufficient to have a general field in the cell configuration to add reveal.js section attributes (like transition type, background color/image etc.)

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/68.

sameersingh commented 9 years ago

Added a config option, it should show up as a text field in the editor now. This should show you how to add per cell config options in the future.

To use it, see the javascript here for how the fragment is included. Note that adding it there adds it to all the static views, which might be fine if the classes are unused, but if you're adding something more complicated, you might want to do it only in the reveal template here.

Finally, if these reveal_params can be used for fragment as well, let's get ride of the fragment config option.

Let me know if you have any questions!

sameersingh commented 9 years ago

Closing since I haven't heard anything back. Reopen if still a problem.