mattmcmanus/dox-foundation

Change the root folders that get served?

Opened this issue · 0 comments

It seems like dox-foundation generates docs in the target folder in a structure that is the same things it sees relative to it's working directory. FOr exmple

dox-foundation --source src --target docs

expects the server to serve the working directoy, but a better behavior would (or at least the ability to choose the behavior) would be to assume the docs folder will be served.

Also, I'd like the root of the source to be considered as src not the working directory.

So currently do

dox-foundation --source src --target docs
serve

but I'd rather do

dox-foundation --source src --target docs
serve docs

And for file src/file.js I don't want to visit /src/file.js.html in the browser, I just want to visit /file.js.html. The reason is that usage of my files are like var foo = require('file') not var foo = require('src/file'), so I'd like to reflect that in the url structure.