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

Added logo to top and removed share buttons.

Did NOT generate doc.
This commit is contained in:
Stephen Asbury
2019-05-30 15:01:12 -07:00
parent d37c8a9ae2
commit 9603c6ddf9
3 changed files with 23 additions and 0 deletions

View File

@@ -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 @@
<!-- Styles -->
<style>
.nats {
display: inline-block;
width: 16px;
height: 16px;
background: url(nats.svg);
background-size: 16px 16px;
}
div.graphviz {
background: transparent;
border: 0;