Permalink
Browse files

Add missing file needed to build docs

  • Loading branch information...
1 parent 8ed8d7c commit 04f2a31df556b853b6d93d4eb07a6fc7ff753a9c @wezm committed Apr 25, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 doc/lib/default.rb
View
@@ -0,0 +1,13 @@
+# All files in the 'lib' directory will be loaded
+# before nanoc starts compiling.
+require 'pathname'
+require 'shellwords'
+include Nanoc3::Helpers::Rendering
+
+module KyotoClient
+ def self.version
+ path = (Pathname(__FILE__).dirname.parent.parent + 'lib' + 'index.js').realpath.to_s
+ `node #{path.shellescape}`.strip
+ end
+
+end

0 comments on commit 04f2a31

Please sign in to comment.