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:
parent
d37c8a9ae2
commit
9603c6ddf9
@ -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;
|
||||
|
@ -4,6 +4,7 @@
|
||||
"author": "The NATS Maintainers",
|
||||
"plugins" : [
|
||||
"prism",
|
||||
"-sharing",
|
||||
"-highlight",
|
||||
"include-html",
|
||||
"toggle-chapters",
|
||||
|
1
nats.svg
Normal file
1
nats.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="2.42 -0.33 280.40 289.90"><style>svg {enable-background:new 0 0 288 288}</style><style>.st3{fill:#375c93}.st4{fill:#8dc63f}</style><path fill="#34a574" d="M142.8 5.3h134.7v109.2H142.8z"/><path fill="#27aae1" d="M8.1 5.3h134.7v109.2H8.1z"/><path d="M142.8 114.6h134.7v109.2H142.8z" class="st4"/><path d="M8.1 114.6h134.7v109.2H8.1z" class="st3"/><path d="M123 223.2l65.9 61v-61z" class="st4"/><path d="M142.8 223.2l.7 19.2-21.1-19.7z" class="st3"/><g><path fill="#fff" d="M198.6 146.5V56.1h32.2V173H182L83.5 81v92.1H51.2v-117h50.5l96.9 90.4z"/></g></svg>
|
After Width: | Height: | Size: 613 B |
Loading…
x
Reference in New Issue
Block a user