diff --git a/.bookignore b/.bookignore index ca876ab..b5108a2 100644 --- a/.bookignore +++ b/.bookignore @@ -3,6 +3,7 @@ _book/ _docs/ _examples/ _tools/ +docs/ Makefile building_the_book.md diff --git a/Makefile b/Makefile index 292d1ed..c575269 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ build: init examples + rm -rf _.docs gitbook build . _docs init: diff --git a/_layouts/website/page.html b/_layouts/website/page.html index e1695a7..cfa403d 100644 --- a/_layouts/website/page.html +++ b/_layouts/website/page.html @@ -93,6 +93,19 @@ } function pageChanged() { + var logos = document.querySelectorAll(".nats"); + if (logos && logos.length == 0) { + gitbook.toolbar.createButton({ + icon: 'nats', + label: 'NATS Home Page', + position: 'right', + onClick: function () { + var win = window.open("https://nats.io/", '_blank'); + win.focus(); + } + }); + } + document.querySelectorAll('.js-copy').forEach(elem => { elem.addEventListener("click", function () { var el = this; @@ -157,6 +170,14 @@ \ No newline at end of file diff --git a/book.json b/book.json index d7cdf3a..cfffb96 100644 --- a/book.json +++ b/book.json @@ -4,7 +4,9 @@ "author": "The NATS Maintainers", "plugins" : [ "prism", + "-sharing", "-highlight", + "custom-favicon", "include-html", "toggle-chapters", "anchors" @@ -15,6 +17,7 @@ "ascii": "markup", "text": "markup" } - } + }, + "favicon": "assets/images/favicon.ico" } } \ No newline at end of file