Return-Path: X-Original-To: apmail-flink-commits-archive@minotaur.apache.org Delivered-To: apmail-flink-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3ACBF18449 for ; Fri, 8 May 2015 08:19:12 +0000 (UTC) Received: (qmail 1585 invoked by uid 500); 8 May 2015 08:19:12 -0000 Delivered-To: apmail-flink-commits-archive@flink.apache.org Received: (qmail 1546 invoked by uid 500); 8 May 2015 08:19:12 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 1537 invoked by uid 99); 8 May 2015 08:19:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 08:19:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F2DC2E17F2; Fri, 8 May 2015 08:19:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: trohrmann@apache.org To: commits@flink.apache.org Date: Fri, 08 May 2015 08:19:11 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] flink git commit: [ml] [docs] Adds distance formulas to documentation. Automatically include latex_commands.html with mathjax markdown files. Repository: flink Updated Branches: refs/heads/master ce2163e6c -> f0b45c450 [ml] [docs] Adds distance formulas to documentation. Automatically include latex_commands.html with mathjax markdown files. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/778cda7a Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/778cda7a Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/778cda7a Branch: refs/heads/master Commit: 778cda7a57540a65b9f5e0c48e32bcadbc2022b7 Parents: ce2163e Author: Till Rohrmann Authored: Thu May 7 16:09:26 2015 +0200 Committer: Till Rohrmann Committed: Fri May 8 10:18:55 2015 +0200 ---------------------------------------------------------------------- docs/_includes/latex_commands.html | 35 ++++++++++++++++++ docs/_layouts/base.html | 4 +++ docs/libs/ml/distance_metrics.md | 64 +++++++++++++++++++++++++++++---- 3 files changed, 96 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/778cda7a/docs/_includes/latex_commands.html ---------------------------------------------------------------------- diff --git a/docs/_includes/latex_commands.html b/docs/_includes/latex_commands.html new file mode 100644 index 0000000..a070b68 --- /dev/null +++ b/docs/_includes/latex_commands.html @@ -0,0 +1,35 @@ + +$$ +\newcommand{\R}{\mathbb{R}} +\newcommand{\E}{\mathbb{E}} +\newcommand{\x}{\mathbf{x}} +\newcommand{\y}{\mathbf{y}} +\newcommand{\wv}{\mathbf{w}} +\newcommand{\av}{\mathbf{\alpha}} +\newcommand{\bv}{\mathbf{b}} +\newcommand{\N}{\mathbb{N}} +\newcommand{\id}{\mathbf{I}} +\newcommand{\ind}{\mathbf{1}} +\newcommand{\0}{\mathbf{0}} +\newcommand{\unit}{\mathbf{e}} +\newcommand{\one}{\mathbf{1}} +\newcommand{\zero}{\mathbf{0}} +\newcommand\rfrac[2]{^{#1}\!/_{#2}} +$$ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flink/blob/778cda7a/docs/_layouts/base.html ---------------------------------------------------------------------- diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html index e283354..b5a2e7b 100644 --- a/docs/_layouts/base.html +++ b/docs/_layouts/base.html @@ -51,6 +51,10 @@ under the License. {% comment %} Includes are found in the _includes directory. {% endcomment %} {% include navbar.html %} + {% if page.mathjax %} + {% include latex_commands.html %} + {% endif %} +
{% comment %} http://git-wip-us.apache.org/repos/asf/flink/blob/778cda7a/docs/libs/ml/distance_metrics.md ---------------------------------------------------------------------- diff --git a/docs/libs/ml/distance_metrics.md b/docs/libs/ml/distance_metrics.md index 9d87fa1..4dfd1af 100644 --- a/docs/libs/ml/distance_metrics.md +++ b/docs/libs/ml/distance_metrics.md @@ -1,4 +1,5 @@ --- +mathjax: include title: Distance Metrics ---