Permalink
Browse files

Make sure doc scripts current directory is right

  • Loading branch information...
1 parent af49f9c commit cd928126e459d34a03e9ee0a4f9914049c152a4f @devongovett committed Apr 14, 2014
Showing with 4 additions and 0 deletions.
  1. +2 −0 docs/generate.coffee
  2. +2 −0 docs/generate_website.coffee
@@ -5,6 +5,8 @@ coffee = require 'coffee-script'
CodeMirror = require 'codemirror/addon/runmode/runmode.node'
PDFDocument = require '../'
+process.chdir(__dirname)
+
# setup code mirror coffeescript mode
filename = require.resolve('codemirror/mode/coffeescript/coffeescript')
coffeeMode = fs.readFileSync filename, 'utf8'
@@ -6,6 +6,8 @@ coffee = require 'coffee-script'
{exec} = require 'child_process'
PDFDocument = require '../'
+process.chdir(__dirname)
+
files = [
'../README.md'
'getting_started.coffee.md'

0 comments on commit cd92812

Please sign in to comment.