-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sphinx-bootstrap-theme styling (#167)
The introduction of the page hierarchies broke the bootstrap tree for any project that does not use `page`. Solution is to only select / apply the `treeview` functions if the id anchors are found.
- Loading branch information
Showing
3 changed files
with
75 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 24 additions & 11 deletions
35
exhale/data/treeView-bootstrap/bootstrap-treeview/apply-bootstrap-treview.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
$(document).ready(function() { | ||
// apply the class view hierarchy | ||
$("#class-treeView").treeview({ | ||
data: getClassViewTree(), | ||
enableLinks: true | ||
}); | ||
|
||
// apply the directory view hierarchy | ||
$("#directory-treeView").treeview({ | ||
data: getDirectoryViewTree(), | ||
enableLinks: true | ||
}); | ||
// apply the page view hierarchy if it exists | ||
var page_view = $("#page-treeView"); | ||
if (page_view.length) { | ||
page_view.treeview({ | ||
data: getPageHierarchyTree(), | ||
enableLinks: true | ||
}); | ||
} | ||
// apply the class view hierarchy if it exists | ||
var class_view = $("#class-treeView"); | ||
if (class_view.length) { | ||
class_view.treeview({ | ||
data: getClassViewTree(), | ||
enableLinks: true | ||
}); | ||
} | ||
// apply the directory view hierarchy if it exists | ||
var dir_view = $("#directory-treeView"); | ||
if (dir_view.length) { | ||
dir_view.treeview({ | ||
data: getDirectoryViewTree(), | ||
enableLinks: true | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters