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

Merge pull request #15 from nats-io/logo

Logo
This commit is contained in:
Ginger Collison 2019-05-30 17:22:35 -05:00 committed by GitHub
commit 67853151a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 1 deletions

View File

@ -3,6 +3,7 @@ _book/
_docs/
_examples/
_tools/
docs/
Makefile
building_the_book.md

View File

@ -1,4 +1,5 @@
build: init examples
rm -rf _.docs
gitbook build . _docs
init:

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(/assets/images/nats.svg);
background-size: 16px 16px;
}
div.graphviz {
background: transparent;
border: 0;

BIN
assets/images/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

1
assets/images/nats.svg Normal file
View 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

View File

@ -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"
}
}