Skip to content

Commit

Permalink
Make width a per-wiki configurable option
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Apr 25, 2012
1 parent 18e64e3 commit 83b2373
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/wiki.rb
Expand Up @@ -13,7 +13,7 @@

markdown = Redcarpet::Markdown.new(Redcarpet::Render::XHTML)

_html _width: 80 do
_html _width: $WIDTH do
_head_ do
_title file
_style %{
Expand Down Expand Up @@ -252,6 +252,9 @@
# Customize where the wiki data is stored
WIKIDATA = '/full/path/to/data/directory'

# Width to wrap lines in output HTML produced (remove to disable wrapping)
$WIDTH = 80

# git author e-mail address override
require 'wunderbar'
require 'etc'
Expand Down

0 comments on commit 83b2373

Please sign in to comment.