punkave/dox-foundation — pull request #24 by phun-ky (2013-01-29 19:51:47+00:00)
Title: Fix for #20

See #20

Basically, I edited `lib/dox-foundation.js` to pass one extra variable that defines current file we're rendering a template to, so we can figure out how deep the links should be.

```js
// How deep is your love?
if(file.currentFile.split('/').length > 1 ){
targetLink = Array(file.currentFile.split('/').length).join('../') + file.targetFile;
} else {
targetLink = file.targetFile;
}
```