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

Cannot open static class in navigation bar #22

Open
sttk opened this issue Sep 4, 2014 · 0 comments
Open

Cannot open static class in navigation bar #22

sttk opened this issue Sep 4, 2014 · 0 comments

Comments

@sttk
Copy link

sttk commented Sep 4, 2014

A navigation bar menu of static class (tagged @Class and @static) don't expand.
This cause is a mismatch between the class name (ex. aaa.bbb.ccc#Ddd) and the file name (ex. aaa.bbb.ccc_Ddd) of the static class in main.js.
Modify following part of main.js (line 32-36):

// Show an item related a current documentation automatically
var filename = $('.page-title').data('filename').replace(/\.[a-z]+$/, '');
var $currentItem = $('.navigation .item[data-name*="' + filename + '"]:eq(0)');

if ($currentItem.length) {
...

to:

// Show an item related a current documentation automatically
var filename = $('.page-title').data('filename').replace(/\.[a-z]+$/, '');
var $linkItem = $('.navigation .item .title a[href="'+filename+'.html"]:eq(0)');
if ($linkItem.length) {
    $currentItem = $linkItem.parent().parent();
...
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

1 participant