1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Added make deploy

Added /docs so we can host
This commit is contained in:
Stephen Asbury
2019-05-20 14:04:23 -07:00
parent e345101a88
commit c1f113449a
159 changed files with 290490 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
require(["gitbook", "jQuery"], function(gitbook, $) {
function expand(chapter) {
chapter.show();
if (chapter.parent().attr('class') != 'summary'
&& chapter.parent().attr('class') != 'book-summary'
&& chapter.length != 0
) {
expand(chapter.parent());
}
}
gitbook.events.bind("page.change", function() {
$('li.chapter').children('ul.articles').hide();
$chapter = $('li.chapter.active');
$children = $chapter.children('ul.articles');
$parent = $chapter.parent();
$siblings = $chapter.siblings().children('ul.articles');
expand($chapter);
if ($children.length > 0) {
$children.show();
}
});
});