1. Making documentation page expansion by default
Open theme.js located inside theme folder “manual/js/” and search for below JS code.
jQuery("#list-manual").each(function(e){
if( jQuery( "#list-manual > li > a" ).hasClass( "open-ul-first" ) ){
jQuery( "#list-manual > li > a.open-ul-first" ).addClass('dataicon').next("ul").slideDown(300);
}
});
REPLACE ABOVE JS CODE WITH BELOW
jQuery("#list-manual").each(function(e){
if( jQuery( "#list-manual > li > a" ).hasClass( "open-ul-first" ) ){
jQuery( "#list-manual > li > a.open-ul-first" ).addClass('dataicon').next("ul").slideDown(300);
}
jQuery("#list-manual li a").addClass('dataicon');
jQuery(".doc-expandall").hide();
jQuery(".doc-collapseall").show();
jQuery("#list-manual li").children('ul').slideDown(300);
});
The result will look something like below after applying above code.
2. Making documentation page collapsed by default
Open theme.js located inside theme folder “manual/js/”. Search and remove below JS code.
jQuery("#list-manual").each(function(e){
if( jQuery( "#list-manual > li > a" ).hasClass( "open-ul-first" ) ){
jQuery( "#list-manual > li > a.open-ul-first" ).addClass('dataicon').next("ul").slideDown(300);
}
});
The result will look something like below after applying above code.