ramnathv / slidify

Generate reproducible html5 slides from R markdown
http://www.slidify.org
844 stars 338 forks source link

Rethink Mode #127

Open ramnathv opened 12 years ago

ramnathv commented 12 years ago

I am using a config variable called mode to generate draft/publishable decks

  1. draft: library files are directly read and served from the package library so that working directory stays uncluttered.
  2. selfcontained: library files are copied to the slide directory and read and served from there, so that the working directory is standalone and can work offline as well. This mode is useful for publishing to github or dropbox.
  3. standalone: library files are read from the package library or working directory based on url$lib, and served from GoogleCode as CDN. Images are embedded inline using base64. Custom assets are combined and minified and inlined in the HTML. This mode is useful for publishing to RPubs or sharing a standalone HTML file.
ramnathv commented 12 years ago

Things to Do

  1. Combine, minify and inline custom assets in standalone mode.
  2. Rethink mode names so that they more accurately represent what they do.
  3. Think about the default value of mode.
ramnathv commented 11 years ago

Here is another idea.

  1. By default serve library files from R package library location.
  2. Save an Rdata file with the payload, page, layouts and partials.
  3. Modify payload according to location to publish
  4. Re-render and publish presentation.