Guest User

Untitled

a guest
Feb 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # Directory in which the wiki pages live
  2. Giraffe.wikiroot = "/Users/ruerue/code/rubinius/master/doc"
  3.  
  4. # Directory in which .git lives
  5. Giraffe.reporoot = "#{Giraffe.wikiroot}/.."
  6.  
  7. # Append extension to *all* page name candidates
  8. Giraffe.to_filename = lambda {|uri| uri + ".txt" }
  9. Giraffe.to_uri = lambda {|file| file.chomp ".txt" }
  10.  
  11. # No showing stuff other than .txt for now
  12. Giraffe.list_filter = lambda {|file| file =~ /\.txt$/ }
  13.  
  14. # Resource files allowed
  15. RESOURCES = { "png" => {:mime => "image/png"}
  16. }
  17.  
  18. Giraffe.resource_filter = lambda {|uri|
  19. uri.match /.+\.(.+)$/
  20. RESOURCES[$1]
  21. }
Add Comment
Please, Sign In to add comment