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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user