Leaflet / Leafdoc

A lightweight NaturalDocs-like LeafletJS-style documentation generator
54 stars 19 forks source link

Use a module relative default path for templates #16

Closed perliedman closed 8 years ago

perliedman commented 8 years ago

In prosthetic-hand, gobble-leafdoc fails on Windows with NPM 3, since the template path it sets, node_modules/gobble-leafdoc/node_modules/leafdoc/templates/basic, does not exist. NPM 3 will flatten node_modules so that leafdoc now exists on the same level as gobble-leafdoc.

I think it would be nicer if the default template path would always point to the correct directory, which AFAIK can only be done from inside Leafdoc, by using a path relative to the module instead.