jashkenas / docco

Literate Programming can be Quick and Dirty.
http://ashkenas.com/docco/
Other
3.55k stars 571 forks source link

Added an option to strip path prefixes #385

Open elaberge opened 6 years ago

elaberge commented 6 years ago

I have an issue where my files are organized like the following:

Folder1/Folder2/src/fileA.js Folder1/Folder2/src/fileB.js Folder1/Folder2/src/subfolder/fileC.js

When I generate doc through docco through some automated build scripts, I have the full paths, where I'd like everything up to "src" to be trimmed, so I only get: fileA.js fileB.js subfolder/fileC.js

This PR adds an option to remove unwanted path prefixes.