Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 35AE6200C3D for ; Tue, 28 Feb 2017 04:46:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 34555160B6C; Tue, 28 Feb 2017 03:46:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A358160B60 for ; Tue, 28 Feb 2017 04:46:36 +0100 (CET) Received: (qmail 36577 invoked by uid 500); 28 Feb 2017 03:46:35 -0000 Mailing-List: contact commits-help@zeppelin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zeppelin.apache.org Delivered-To: mailing list commits@zeppelin.apache.org Received: (qmail 36568 invoked by uid 99); 28 Feb 2017 03:46:35 -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; Tue, 28 Feb 2017 03:46:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 24AA0DFDCF; Tue, 28 Feb 2017 03:46:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ahyoungryu@apache.org To: commits@zeppelin.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: zeppelin git commit: [gh-pages][ZEPPELIN-2061] Add Medium blog section to the main page Date: Tue, 28 Feb 2017 03:46:35 +0000 (UTC) archived-at: Tue, 28 Feb 2017 03:46:38 -0000 Repository: zeppelin Updated Branches: refs/heads/gh-pages a9d94a96c -> 51692967a [gh-pages][ZEPPELIN-2061] Add Medium blog section to the main page ### What is this PR for? There is "[Apache Zeppelin Stories](https://medium.com/apache-zeppelin-stories)" channel in [Medium](https://medium.com/). So I wanted to show the blog posts in this Medium channel via Zeppelin website. To do this, I used AWS Lambda function: [fetch-zeppelin-medium-story](https://github.com/AhyoungRyu/fetch-zeppelin-medium-story) (read RSS feed -> converted it to JSON) and make it run per every 1 day. So the result file [medium.js](https://s3.amazonaws.com/apache-zeppelin/post/medium.js)(used js file format to easily load to Zeppelin website) will be refreshed everyday. Using this file I added "APACHE ZEPPELIN STORIES" section below the main page of Zeppelin website. The reason I did this way to read posts' info is 1. As [Medium/medium-api-docs/issues/49](https://github.com/Medium/medium-api-docs/issues/49#issuecomment-229206837) said, currently there is no API provided by Medium to get the list of blog post info in Story channel ("Apache Zeppelin Stories" is _**Story**_ channel). Instead Medium suggests to [use **RSS feed**](https://help.medium.com/hc/en-us/articles/214874118-RSS-Feeds-of-publications-and-profiles). 2. and simple :) ### What type of PR is it? gh-pages ### What is the Jira issue? [ZEPPELIN-2061](https://issues.apache.org/jira/browse/ZEPPELIN-2061) ### How should this be tested? Build `gh-pages` branch as described in [here](https://github.com/apache/zeppelin/tree/gh-pages#build-website). Or see the below gif screenshot img :) ### Screenshots (if appropriate) ![record](https://cloud.githubusercontent.com/assets/10060731/22653640/60e06a3e-eccd-11e6-8946-9614930541dc.gif) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu Closes #1980 from AhyoungRyu/add/mediumBlogPostSection and squashes the following commits: d72efc8 [AhyoungRyu] Define several font-family & set max-width fa5f6b0 [AhyoungRyu] Remove unused CSS classes 82cc48e [AhyoungRyu] Add Medium blog post section to Zeppelin website 1cbbc28 [AhyoungRyu] Add moment.min.js for date formatting Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/51692967 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/51692967 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/51692967 Branch: refs/heads/gh-pages Commit: 51692967a6b3a9948ef09c748adb3fbd836eef94 Parents: a9d94a9 Author: AhyoungRyu Authored: Wed Feb 8 14:28:17 2017 +0900 Committer: ahyoungryu Committed: Tue Feb 28 12:46:27 2017 +0900 ---------------------------------------------------------------------- _includes/themes/zeppelin/default.html | 4 + assets/themes/zeppelin/css/style.css | 89 +++- assets/themes/zeppelin/js/medium.controller.js | 33 ++ assets/themes/zeppelin/js/moment.min.js | 551 ++++++++++++++++++++ medium.md | 53 ++ 5 files changed, 724 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/51692967/_includes/themes/zeppelin/default.html ---------------------------------------------------------------------- diff --git a/_includes/themes/zeppelin/default.html b/_includes/themes/zeppelin/default.html index 66a61a1..b6cf9a2 100644 --- a/_includes/themes/zeppelin/default.html +++ b/_includes/themes/zeppelin/default.html @@ -32,10 +32,13 @@ + + + @@ -55,6 +58,7 @@ {% if page.title == "Zeppelin" %} {% include_relative twitter.md %} + {% include_relative medium.md %} {% endif %}