Repository: logging-log4j2
Updated Branches:
  refs/heads/master e4733bac2 -> 332383104


LOG4J2-1802: Add prettyprint support for asciidoc output


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7bd1c464
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7bd1c464
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7bd1c464

Branch: refs/heads/master
Commit: 7bd1c4646e0d9b81580478361443baca50c47c38
Parents: e4733ba
Author: Matt Sicker <boa...@gmail.com>
Authored: Fri Apr 6 16:41:17 2018 -0500
Committer: Matt Sicker <boa...@gmail.com>
Committed: Fri Apr 6 16:41:17 2018 -0500

----------------------------------------------------------------------
 src/site/resources/js/site.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7bd1c464/src/site/resources/js/site.js
----------------------------------------------------------------------
diff --git a/src/site/resources/js/site.js b/src/site/resources/js/site.js
index 72a0f8c..50bff12 100644
--- a/src/site/resources/js/site.js
+++ b/src/site/resources/js/site.js
@@ -52,6 +52,12 @@ $(document).ready(function() {
                        $(this).addClass('linenums');
                }
        });
+
+       // decorator for prettyprint support in asciidoc
+       $('pre.highlight > code').each(function() {
+        var parent = $(this).parent();
+               parent.addClass('prettyprint')
+       });
        
        // Hack to add default visuals to tables
        $('table').each(function() {

Reply via email to