brew install python
brew install ruby
echo "gem: --user-install -n~/bin" >> $HOME/.gemrc
gem install http_parser livereload asciidoctor tilt thread_safe haml guard guard-shell guard-livereload slim pygments.rb
asciidoctor -T asciidoctor-deck.js/templates/haml/ reactive.adoc
asciidoctor -T asciidoctor-reveal.js/templates/slim/ reactive.adoc
guard start
edit reactive.adoc
- Reveal.js specific syntax for asciidoc
- Asciidoc writers' guide
- Asciidoc quick reference
- Asciidoc cheat sheet
- Deck.js specific syntax for asciidoc
open reactive.html
- Syntax highlighting does not work when using guard!, use the
rungen.sh
script - The best code highlighter is pygments
- Callouts are currently broken, don't use them
- Don't try to use [%step] with code blocks, it trashes code highlighting
- To list the available styles
$(dirname $(gem which pygments.rb))/../vendor/pygments-main/pygmentize -L styles
The following would be needed assuming the backend code and templates are already there, which is currently the case for deckjs and revealjs:
- The guard file: comment/uncomment the corresponding line
- reactive.adoc: comment/uncomment the line specifying the backend
- In case running once from command line, specify the template location corresponding to the currently configured backend