diff --git a/markdown/src/main/java/com/nflabs/zeppelin/markdown/Markdown.java b/markdown/src/main/java/com/nflabs/zeppelin/markdown/Markdown.java index 35a6e903..0d652df6 100644 --- a/markdown/src/main/java/com/nflabs/zeppelin/markdown/Markdown.java +++ b/markdown/src/main/java/com/nflabs/zeppelin/markdown/Markdown.java @@ -49,9 +49,7 @@ public InterpreterResult interpret(String st, InterpreterContext interpreterCont String html; try { html = md.process(st); - } catch (IOException e) { - return new InterpreterResult(Code.ERROR, e.getMessage()); - } catch (java.lang.RuntimeException e) { + } catch (IOException | java.lang.RuntimeException e) { return new InterpreterResult(Code.ERROR, e.getMessage()); } return new InterpreterResult(Code.SUCCESS, "%html " + html); diff --git a/zeppelin-web/Gruntfile.js b/zeppelin-web/Gruntfile.js index 064f8546..dfb2c389 100644 --- a/zeppelin-web/Gruntfile.js +++ b/zeppelin-web/Gruntfile.js @@ -58,6 +58,7 @@ module.exports = function (grunt) { files: [ '<%= yeoman.app %>/{,*/}*.html', '.tmp/styles/{,*/}*.css', + '.tmp/styles_noncocat/{,*/}*.css', '<%= yeoman.app %>/{,*/}*.{png,jpg,jpeg,gif,webp,svg}' ] } @@ -167,6 +168,7 @@ module.exports = function (grunt) { }, app: { src: ['<%= yeoman.app %>/index.html'], + exclude: [ 'bower_components/highlightjs/styles/default.css' ], ignorePath: /\.\.\// } }, @@ -215,15 +217,19 @@ module.exports = function (grunt) { // By default, your `index.html`'s will take care of // minification. These next options are pre-configured if you do not wish // to use the Usemin blocks. - // cssmin: { - // dist: { - // files: { - // '<%= yeoman.dist %>/styles/main.css': [ - // '.tmp/styles/{,*/}*.css' - // ] - // } - // } - // }, + + // Explicit processing for special css directories + cssmin: { + dist: { + files: [{ + expand: true, + dot: true, + cwd: '.tmp/styles_nonconcat/', + dest: '<%= yeoman.dist %>', + src: 'styles/{,*/}*.css' + }] + } + }, // uglify: { // dist: { // files: { @@ -302,7 +308,7 @@ module.exports = function (grunt) { expand : true, dot : true, cwd: '<%= yeoman.app %>', - dest: '<%= yeoman.dist %>', + dest: '.tmp/styles_nonconcat/', src: ['styles/looknfeel/*'] }, { expand: true, @@ -319,6 +325,16 @@ module.exports = function (grunt) { cwd: 'bower_components/jquery-ui/themes/base/images', src: '{,*/}*.{png,jpg,jpeg,gif}', dest: '<%= yeoman.dist %>/styles/images' + }, { + expand: true, + cwd: 'bower_components/highlightjs/styles', + src: '{,*/}*.css', + dest: '.tmp/styles_nonconcat/styles/highlightjs' + }, { + expand: true, + cwd: 'bower_components/highlightjs/styles', + src: '{,*/}*.{png,jpg,jpeg,gif}', + dest: '<%= yeoman.dist %>/styles/highlightjs' }] }, styles: { diff --git a/zeppelin-web/app/index.html b/zeppelin-web/app/index.html index ab4bfc85..96ea3673 100644 --- a/zeppelin-web/app/index.html +++ b/zeppelin-web/app/index.html @@ -48,7 +48,55 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-