mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 10:03:31 +00:00
Define specific action for toggling summary
This commit is contained in:
@@ -26,6 +26,16 @@ keyboard, navigation, progress, sidebar, toolbar){
|
||||
// Init navigation
|
||||
navigation.init();
|
||||
|
||||
|
||||
// Add action to toggle sidebar
|
||||
toolbar.createButton({
|
||||
icon: 'fa fa-align-justify',
|
||||
onClick: function(e) {
|
||||
e.preventDefault();
|
||||
sidebar.toggle();
|
||||
}
|
||||
});
|
||||
|
||||
events.trigger('start', config);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user