diff --git a/src/main/resources/static/assets/js/code.js b/src/main/resources/static/assets/js/code.js new file mode 100644 index 00000000..0fbbe144 --- /dev/null +++ b/src/main/resources/static/assets/js/code.js @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2011-2017 Pivotal Software Inc, All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +$(function(){ + + $('pre code').each(function(i, block) { + hljs.highlightBlock(block); + }); + +}); \ No newline at end of file diff --git a/src/main/resources/static/templates/home.html b/src/main/resources/static/templates/home.html index c660e52b..82af5204 100644 --- a/src/main/resources/static/templates/home.html +++ b/src/main/resources/static/templates/home.html @@ -83,6 +83,24 @@

Non blocking IO

+
+
+
+

Code Sample: lorem ipsum sit dolor

+
+
+
Flux.range(5, 3)
+    .map(i -> i + 3)
+    .filter(i -> i % 2 == 0)
+    .buffer(3)
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +
+
+
+
+
diff --git a/src/main/resources/static/templates/layout.html b/src/main/resources/static/templates/layout.html index 61f96110..e161c3b0 100644 --- a/src/main/resources/static/templates/layout.html +++ b/src/main/resources/static/templates/layout.html @@ -167,7 +167,9 @@

Project Reactor

--> + +