GitHub user minahlee opened a pull request:

    https://github.com/apache/zeppelin/pull/1865

    [ZEPPELIN-1723] Math formula support library path error

    ### What is this PR for?
    When user set `ZEPPELIN_SERVER_CONTEXT_PATH`, web cannot find MathJax 
library because root location is set to `/`.
    
    ### What type of PR is it?
    Bug Fix
    
    ### What is the Jira issue?
    [ZEPPELIN-1723](https://issues.apache.org/jira/browse/ZEPPELIN-1723)
    
    ### How should this be tested?
    1. Checkout remote branch, and cherry-pick one commit from #1863 which is 
needed to try out this PR:
        ```
        $ ./dev/test_zeppelin_pr.py 1865
        $ git cherry-pick dbae64d
        $ mvn clean package -DskipTests -pl 
'!zeppelin-distribution,!alluxio,!ignite,!lens,!kylin,!scio,!hbase,!pig,!file,!flink,!cassandra,!elasticsearch,!bigquery,!postgresql,!jdbc,!python,!angular,!sh,!livy'
        ```
    2. Set `ZEPPELIN_SERVER_CONTEXT_PATH` in conf/zeppelin-env.sh and start 
Zeppelin
    3. See if error occurs in browser inspection console.
    4. Test if you can use Math function with pegdown md interpreter:
       ```
       %md
       When \\(a \\ne 0\\), there are two solutions to \\(ax^2 + bx + c = 0\\) 
and they are
       $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
       ```
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/minahlee/zeppelin ZEPPELIN-1723

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1865.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1865
    
----
commit ccf449448ba1f1cf788640b60ffa6b60fe32bff3
Author: Mina Lee <[email protected]>
Date:   2017-01-07T11:10:13Z

    Add MathJax root location config

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to