nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)
http://natureofcode.com
1.94k stars 365 forks source link

Adding p5 sketch plugin #149

Closed nelliemckesson closed 6 years ago

nelliemckesson commented 6 years ago

Created a plugin to insert the p5 sketch iframes and remove the old figure elements, for the HTML build only. Also updated the magicbook.json file to call the plugin.

nelliemckesson commented 6 years ago

Alright, I went ahead and made that change, and also added support for the two-col and three-col classes (iframes will get shrunk down and appear inline, copying the current handling), and accompanying captions (e.g., https://github.com/shiffman/The-Nature-of-Code/blob/master/chapters/03_oscillation.html#L834).

There's a corresponding pull request coming on the natureofcode.com repo with some more notes!

nelliemckesson commented 6 years ago

(And yeah! Go ahead and pick a chapter and start testing and building and previewing, etc!)

vagabesz commented 6 years ago

Bug bit v15&&4

Daniel Shiffman notifications@github.com ezt írta (2018. augusztus 9., csütörtök):

Merged #149 https://github.com/shiffman/The-Nature-of-Code/pull/149 into master.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shiffman/The-Nature-of-Code/pull/149#event-1779013151, or mute the thread https://github.com/notifications/unsubscribe-auth/AhAGhV6uLOUXcK2pNFrN4xIMbV_ylwjBks5uO3RTgaJpZM4VoofE .