Created
December 11, 2008 17:48
-
-
Save rue/34798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Directory in which the wiki pages live | |
Giraffe.wikiroot = "/Users/ruerue/code/rubinius/master/doc" | |
# Directory in which .git lives | |
Giraffe.reporoot = "#{Giraffe.wikiroot}/.." | |
# Append extension to *all* page name candidates | |
Giraffe.to_filename = lambda {|uri| uri + ".txt" } | |
Giraffe.to_uri = lambda {|file| file.chomp ".txt" } | |
# No showing stuff other than .txt for now | |
Giraffe.list_filter = lambda {|file| file =~ /\.txt$/ } | |
# Resource files allowed | |
RESOURCES = { "png" => {:mime => "image/png"} | |
} | |
Giraffe.resource_filter = lambda {|uri| | |
uri.match /.+\.(.+)$/ | |
RESOURCES[$1] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment