You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/02/07 05:50:58 UTC

[GitHub] merlimat closed pull request #1041: Templatize resources page

merlimat closed pull request #1041: Templatize resources page
URL: https://github.com/apache/incubator-pulsar/pull/1041
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site/_data/resources/articles.yaml b/site/_data/resources/articles.yaml
new file mode 100644
index 000000000..bd8a76466
--- /dev/null
+++ b/site/_data/resources/articles.yaml
@@ -0,0 +1,35 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+- forum: Yahoo Engineering blog
+  forum_link: https://yahooeng.tumblr.com/
+  title: Open sourcing Pulsar, pub-sub messaging at scale
+  link: https://yahooeng.tumblr.com/post/150078336821/open-sourcing-pulsar-pub-sub-messaging-at-scale
+- forum: Streamlio blog
+  forum_link: https://blog.streaml.io
+  title: Introduction to Apache Pulsar
+  link: https://streaml.io/blog/intro-to-pulsar/
+- forum: Streamlio blog
+  forum_link: https://blog.streaml.io
+  title: Why Apache Pulsar? Part 1
+  link: https://streaml.io/blog/why-apache-pulsar/
+- forum: Streamlio blog
+  forum_link: https://blog.streaml.io
+  title: Why Apache Pulsar? Part 2
+  link: https://streaml.io/blog/why-apache-pulsar-part-2
\ No newline at end of file
diff --git a/site/_data/resources/presentations.yaml b/site/_data/resources/presentations.yaml
new file mode 100644
index 000000000..6dc5da9ac
--- /dev/null
+++ b/site/_data/resources/presentations.yaml
@@ -0,0 +1,31 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+- forum: Bay Area Hadoop Meetup
+  forum_link: https://www.meetup.com/hadoop
+  presenter: Matteo Merli (Pulsar co-creator)
+  date: October 2016
+  title: "Pulsar: a highly scalable, low-latency pub-sub messaging system"
+  link: https://www.slideshare.net/ydn/october-2016-hug-pulsar-a-highly-scalable-low-latency-pubsub-messaging-system
+- forum:
+  forum_link:
+  presenter: Matteo Merli (Pulsar co-creator)
+  date: November 2016
+  title: "Pulsar: a distributed pub-sub platform"
+  link: https://www.slideshare.net/merlimat/pulsar-distributed-pubsub-platform
diff --git a/site/_includes/navbar.html b/site/_includes/navbar.html
index 1bbc69320..2f6711466 100644
--- a/site/_includes/navbar.html
+++ b/site/_includes/navbar.html
@@ -101,7 +101,7 @@ <h3 class="dropdown-header">Get in touch</h3>
           <a class="dropdown-item" href="https://github.com/apache/incubator-pulsar/issues">Issue tracking</a>
           <div class="dropdown-divider"></div>
           <h3 class="dropdown-header">Resources</h3>
-          <a class="dropdown-item" href="{{ site.baseurl }}presentations">Presentations</a>
+          <a class="dropdown-item" href="{{ site.baseurl }}resources">Resources</a>
           <a class="dropdown-item" href="{{ site.baseurl }}team">Team</a>
           <div class="dropdown-divider"></div>
           <h3 class="dropdown-header">Apache</h3>
diff --git a/site/_includes/resources/articles.html b/site/_includes/resources/articles.html
new file mode 100644
index 000000000..db8d0d548
--- /dev/null
+++ b/site/_includes/resources/articles.html
@@ -0,0 +1,37 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
+<table>
+  <thead>
+    <tr>
+      <th>Forum</th>
+      <th>Link</th>
+    </tr>
+  </thead>
+  <tbody>
+    {% for article in site.data.resources.articles %}
+    <tr>
+      <td><a href="{{ article.forum_link }}">{{ article.forum }}</a></td>
+      <td><a href="{{ article.link }}">{{ article.title }}</a></td>
+    </tr>
+    {% endfor %}
+  </tbody>
+</table>
\ No newline at end of file
diff --git a/site/_includes/resources/presentations.html b/site/_includes/resources/presentations.html
new file mode 100644
index 000000000..df3a1b52a
--- /dev/null
+++ b/site/_includes/resources/presentations.html
@@ -0,0 +1,49 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
+<table>
+  <thead>
+    <tr>
+      <th>Forum</th>
+      <th>Date</th>
+      <th>Presenter</th>
+      <th>Link</th>
+    </tr>
+  </thead>
+  <tbody>
+    {% for presentation in site.data.resources.presentations %}
+      <tr>
+        <td>
+          <a href="{{ presentation.forum_link }}">{{ presentation.forum }}</a>
+        </td>
+        <td>
+          {{ presentation.date }}
+        </td>
+        <td>
+          {{ presentation.presenter }}
+        </td>
+        <td>
+          <a href="{{ presentation.link }}">{{ presentation.title }}</a>
+        </td>
+      </tr>
+    {% endfor %}
+  </tbody>
+</table>
\ No newline at end of file
diff --git a/site/presentations.md b/site/resources.md
similarity index 51%
rename from site/presentations.md
rename to site/resources.md
index a6cd94f99..a8ba1d591 100644
--- a/site/presentations.md
+++ b/site/resources.md
@@ -1,5 +1,5 @@
 ---
-title: Presentations
+title: Resources
 layout: content
 ---
 
@@ -26,12 +26,8 @@ layout: content
 
 ## Articles
 
- * Yahoo Engineering blog post --- [Open-sourcing Pulsar, Pub-sub Messaging at Scale](https://yahooeng.tumblr.com/post/150078336821/open-sourcing-pulsar-pub-sub-messaging-at-scale)
- * Streamlio --- [Introduction to Apache Pulsar](https://streaml.io/blog/intro-to-pulsar/)
- * Streamlio --- [Why Apache Pulsar? Part 1](https://streaml.io/blog/why-apache-pulsar/)
- * Streamlio --- [Why Apache Pulsar? Part 2](https://streaml.io/blog/why-apache-pulsar-part-2/)
+{% include resources/articles.html %}
 
 ## Presentations
 
- * October 2016 Hadoop User Group --- [Pulsar, a highly scalable, low latency pub-sub messaging system](https://www.slideshare.net/ydn/october-2016-hug-pulsar-a-highly-scalable-low-latency-pubsub-messaging-system)
- * November 2016 --- [Pulsar - Distributed pub/sub platform](https://www.slideshare.net/merlimat/pulsar-distributed-pubsub-platform)
+{% include resources/presentations.html %}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services