app/views/apidoco/apis/_side_bar.html.erb in apidoco-1.3.0 vs app/views/apidoco/apis/_side_bar.html.erb in apidoco-1.5.0

- old
+ new

@@ -1,5 +1,14 @@ +<!-- recursive template --> +<script type="text/ng-template" id="documentationTree"> + <a href="#{{documentation.id}}">{{documentation.name}}</a> + <ul ng-if="documentation.children"> + <li ng-repeat="documentation in documentation.children" ng-include="'documentationTree'"> + </li> + </ul> +</script> + <div id="sidebar-wrapper"> <ul class="sidebar-nav"> <li class="sidebar-brand"> <a href="#"> APIDOCO::{{currentVersion}} @@ -11,10 +20,9 @@ </select> </li> <li class="mt-10 padding-10"> <input type="text" placeholder="Search.." class="form-control input-sm" ng-model="searchKeyword" /> </li> - <li ng-repeat="x in jsonItem.apis | filter: searchKeyword"> - <a href="#api_{{$index}}" du-smooth-scroll du-scrollspy>{{x.name}}</a> + <li ng-repeat="documentation in data.apis | filter: searchKeyword" ng-include="'documentationTree'"> </li> </ul> </div>