From 8978e066b5f7fd0fac273b470b90fe4f9bef48c2 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Mon, 17 Oct 2011 15:26:10 -0700 Subject: fix(gen-docs): require files without touching PATH So that it works on latest revision of node... New version of Node (v0.5.x) does not support require.paths.push(). --- docs/src/ngdoc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 34a4dfcf..c5da18e6 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -2,9 +2,9 @@ * All parsing/transformation code goes here. All code here should be sync to ease testing. */ -var Showdown = require('showdown').Showdown; -var DOM = require('dom.js').DOM; -var htmlEscape = require('dom.js').htmlEscape; +var Showdown = require('../../lib/showdown').Showdown; +var DOM = require('./dom.js').DOM; +var htmlEscape = require('./dom.js').htmlEscape; var NEW_LINE = /\n\r?/; exports.trim = trim; -- cgit v1.2.3