mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
commit
67853151a0
@ -3,6 +3,7 @@ _book/
|
|||||||
_docs/
|
_docs/
|
||||||
_examples/
|
_examples/
|
||||||
_tools/
|
_tools/
|
||||||
|
docs/
|
||||||
|
|
||||||
Makefile
|
Makefile
|
||||||
building_the_book.md
|
building_the_book.md
|
||||||
|
1
Makefile
1
Makefile
@ -1,4 +1,5 @@
|
|||||||
build: init examples
|
build: init examples
|
||||||
|
rm -rf _.docs
|
||||||
gitbook build . _docs
|
gitbook build . _docs
|
||||||
|
|
||||||
init:
|
init:
|
||||||
|
@ -93,6 +93,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function pageChanged() {
|
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 => {
|
document.querySelectorAll('.js-copy').forEach(elem => {
|
||||||
elem.addEventListener("click", function () {
|
elem.addEventListener("click", function () {
|
||||||
var el = this;
|
var el = this;
|
||||||
@ -157,6 +170,14 @@
|
|||||||
|
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
<style>
|
<style>
|
||||||
|
.nats {
|
||||||
|
display: inline-block;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
background: url(/assets/images/nats.svg);
|
||||||
|
background-size: 16px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
div.graphviz {
|
div.graphviz {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
BIN
assets/images/favicon.ico
Normal file
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
1
assets/images/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 |
@ -4,7 +4,9 @@
|
|||||||
"author": "The NATS Maintainers",
|
"author": "The NATS Maintainers",
|
||||||
"plugins" : [
|
"plugins" : [
|
||||||
"prism",
|
"prism",
|
||||||
|
"-sharing",
|
||||||
"-highlight",
|
"-highlight",
|
||||||
|
"custom-favicon",
|
||||||
"include-html",
|
"include-html",
|
||||||
"toggle-chapters",
|
"toggle-chapters",
|
||||||
"anchors"
|
"anchors"
|
||||||
@ -15,6 +17,7 @@
|
|||||||
"ascii": "markup",
|
"ascii": "markup",
|
||||||
"text": "markup"
|
"text": "markup"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"favicon": "assets/images/favicon.ico"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user