Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative path+filename instead of filename [in jumpto menu] #252

Closed
gauravmeena0708 opened this issue Nov 22, 2013 · 1 comment
Closed

Comments

@gauravmeena0708
Copy link

we already have file name in title as well as in jumpto menu.
It would be a good feature if we are able to replace it with relative path.

an example for angular application

server.js -> ROOT/server.js
app.js -> ROOT/app/scripts/apps.js
mainctrl.js-> ROOT/app/scripts/controllers/mainctrl.js

it can be done by changing
docco.js[131]: title = hasTitle ? first.text : path.dirname(source)+'/'+path.basename(source);
and
templates: <%= path.dirname(source) %>/<%= path.basename(source) %>

@Truffula
Copy link

I believe the functionality you are looking for has been done (see PR). The change just uses source instead of path.dirname(source) %>/<%= path.basename(source) - is there a use case where using dirname and basename would create a different output than source?

The change above applies to the jump list, but not the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants