After wondering on twitter what the best HTML5 presentation system was, I had a few people mention that big was a solid presentation generator.
However, I wanted to use markdown to curate and handle my presentations and big didn't handle markdown. There was a fork that use markdown. I wanted to keep my content separate for curation purposes, so it didn't work for me.
Instead, I wrote a helper: big.py.
Get the source:
git clone https://github.com/harperreed/bigpy.git cd bigpy
Install some dependencies:
pip install -r requirements.txt
Put the script in your virtualenv:
python setup.py develop
You'll now be able to type:
You can always just run it from the source directory like this if you prefer:
python big.py -h
$ bigpy --help
Generate all in one
$ bigpy -s slides.md
Attempting to open slide file: slides.md Remote css/js selected Pulling css from: https://raw.github.com/tmcw/big/gh-pages/big.css Pulling js from: https://raw.github.com/tmcw/big/gh-pages/big.js Parsing markdown file Title: Example Slides Author: Harper Reed Date: November 24, 2012 Number of slides: 15 Allinone template mode Writing HTML: slides.html
This will output a
slides.html that pulls the latest
big.js from tmcw/big embedded in it.
Generate all in one
slides.html from local js/css
$ bigpy -s slides.md --mode local
Attempting to open slide file: slides.md Local css/js selected Parsing markdown file Title: Example Slides Author: Harper Reed Date: November 24, 2012 Number of slides: 15 Allinone template mode Writing HTML: slides.html
This will output
slides.html with a local copy of
big.js embeded in it.
slides.html calling remote js/css
$ bigpy -s slides.md --template_mode light
$ python big.py -s slides.md --template_mode allinone
Mix and match to your delight!
% Example Slides % Harper Reed % November 24, 2012 # use ↔ to navigate # Big.py # Big+Python+Markdown # Big # *Presentation software* for busy busy hackers # +text # +markdown formatting # as *big* as it can be # no config # *1.5k* # ![Images](http://farm3.static.flickr.com/2506/5757000880_509440308e_z.jpg) images too # JS+CSS [github.com/ tmcw/ big](https://github.com/tmcw/big) # Big.py # Helper script to generate slides from markdown # PY+MD [github.com/ harperreed/ bigpy](https://github.com/harperreed/bigpy)
No idea. I don't know if i will use this. I just wanted a way to generate big html with a script. It seemed like it should be easy. It was. Only one movie of hacking.
Feel free to fix things as you need them.