openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1777006 - in /openwebbeans/meecrowave/trunk/meecrowave-doc/src/main: java/org/apache/meecrowave/doc/JBake.java jbake/assets/assets/css/styles.css jbake/assets/assets/js/main.js jbake/templates/footer.gsp jbake/templates/header.gsp
Date Mon, 02 Jan 2017 20:14:55 GMT
Author: rmannibucau
Date: Mon Jan  2 20:14:55 2017
New Revision: 1777006

URL: http://svn.apache.org/viewvc?rev=1777006&view=rev
Log:
using highlight.js for highlighting

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/JBake.java
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/css/styles.css
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/js/main.js
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/footer.gsp
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/header.gsp

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/JBake.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/JBake.java?rev=1777006&r1=1777005&r2=1777006&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/JBake.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/JBake.java
Mon Jan  2 20:14:55 2017
@@ -79,7 +79,8 @@ public class JBake {
                     final CompositeConfiguration config = new CompositeConfiguration();
                     config.addConfiguration(new MapConfiguration(new HashMap<String, Object>()
{{
                         put("asciidoctor.attributes", new ArrayList<String>() {{
-                            add("source-highlighter=coderay");
+                            add("source-highlighter=highlightjs");
+                            add("highlightjs-theme=idea");
                             add("context_rootpath=/meecrowave");
                         }});
                     }}));

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/css/styles.css
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/css/styles.css?rev=1777006&r1=1777005&r2=1777006&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/css/styles.css
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/css/styles.css
Mon Jan  2 20:14:55 2017
@@ -49,16 +49,6 @@ a:hover {
 a:focus {
   text-decoration: none;
 }
-code {
-  background: #222;
-  color: #fff;
-  font-size: 14px;
-  font-weight: bold;
-  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
-  padding: 2px 8px;
-  padding-top: 4px;
-  display: inline-block;
-}
 .btn,
 a.btn {
   -webkit-transition: all 0.4s ease-in-out;
@@ -1266,3 +1256,8 @@ select {
 /* Small devices (tablets, 768px and up) */
 /* Medium devices (desktops, 992px and up) */
 /* Large devices (large desktops, 1200px and up) */
+
+
+pre {
+    padding: 0;
+}

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/js/main.js
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/js/main.js?rev=1777006&r1=1777005&r2=1777006&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/js/main.js (original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/assets/assets/js/main.js Mon
Jan  2 20:14:55 2017
@@ -45,5 +45,5 @@ $(document).ready(function() {
         $(this).ekkoLightbox();
     });    
 
-
+    hljs.initHighlightingOnLoad();
 });
\ No newline at end of file

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/footer.gsp
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/footer.gsp?rev=1777006&r1=1777005&r2=1777006&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/footer.gsp (original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/footer.gsp Mon Jan
 2 20:14:55 2017
@@ -19,6 +19,7 @@
     <script type="text/javascript" src="/meecrowave/assets/plugins/jquery-1.12.3.min.js"></script>
     <script type="text/javascript" src="/meecrowave/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
     <script type="text/javascript" src="/meecrowave/assets/plugins/jquery-match-height/jquery.matchHeight-min.js"></script>
+    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
     <script type="text/javascript" src="/meecrowave/assets/js/main.js"></script>
 
 </body>

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/header.gsp
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/header.gsp?rev=1777006&r1=1777005&r2=1777006&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/header.gsp (original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/templates/header.gsp Mon Jan
 2 20:14:55 2017
@@ -17,6 +17,8 @@
     <!-- Plugins CSS -->
     <link rel="stylesheet" href="/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css">
     <link rel="stylesheet" href="/meecrowave/assets/plugins/elegant_font/css/style.css">
+    <!-- highlighting -->
+    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/idea.min.css">
 
     <!-- Theme CSS -->
     <link id="theme-style" rel="stylesheet" href="/meecrowave/assets/css/styles.css">



Mime
View raw message