tzulitai commented on a change in pull request #73: [FLINK-16758][docs] Port 
StateFun Documentation to Jekyll 
URL: https://github.com/apache/flink-statefun/pull/73#discussion_r397615411
 
 

 ##########
 File path: docs/_layouts/plain.html
 ##########
 @@ -0,0 +1,78 @@
+---
+layout: base
+---
+<!--
+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.
+-->
+
+{%- assign active_pages = site.array -%}
+{%- assign active = page -%}
+
+{%- for i in (1..10) -%}
+  {%- assign active_pages = active_pages | push: active -%}
+  {%- if active.nav-parent_id -%}
+    {%- assign next = site.pages_by_language[page.language] | where: "nav-id" 
, active.nav-parent_id -%}
+    {%- if next.size > 0 -%}
+      {%- assign active = next[0] -%}
+    {%- else -%}
+      {%- break -%}
+    {%- endif -%}
+  {%- else -%}
+    {%- break -%}
+  {%- endif -%}
+{%- endfor -%}
+
+{% assign active_pages = active_pages | reverse %}
+
+<ol class="breadcrumb">
+{%- for p in active_pages %}
+  {% capture title %}{% if p.nav-title %}{{ p.nav-title }}{% else %}{{ p.title 
}}{% endif %}{% endcapture -%}
+  {%- if forloop.last == true %}
+    <li class="active">{{ title }}</li>
+  {%- elsif p.nav-show_overview %}
+    <li><a href="{{ site.baseurl }}{{ p.url }}">{{ title }}</a></li>
+  {%- else %}
+    <li>{{ title }}</li>
+  {%- endif -%}
+{%- endfor %}
+</ol>
+
+<h1>{{ page.title }}{% if page.is_beta %} <span class="beta">Beta</span>{% 
endif %}</h1>
+{% if site.show_outdated_warning %}
+<div class="alert alert-danger" role="alert">
+  {%- if page.language == "en" %}
+    <strong>This documentation is for an out-of-date version of Apache Flink. 
We recommend you use <a 
href="https://ci.apache.org/projects/flink/flink-docs-stable/";>the latest 
stable version</a>.</strong>
 
 Review comment:
   ```suggestion
       <strong>This documentation is for an out-of-date version of Apache Flink 
Stateful Functions. We recommend you use <a 
href="https://ci.apache.org/projects/flink/flink-statefun-docs-stable/";>the 
latest stable version</a>.</strong>
   ```

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


With regards,
Apache Git Services

Reply via email to