You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2019/11/27 02:32:04 UTC

[incubator-apisix-website] branch feature-downloads created (now a8212fd)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a change to branch feature-downloads
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-website.git.


      at a8212fd  added downloads

This branch includes the following new commits:

     new a8212fd  added downloads

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-apisix-website] 01/01: added downloads

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch feature-downloads
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-website.git

commit a8212fdfba69ce2c7888ff801636e887cbcac28d
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Wed Nov 27 10:31:49 2019 +0800

    added downloads
---
 assets/downloads.scss | 145 ++++++++++++++++++++++++++++++++++++++++++++++++++
 assets/style.sass     |   3 +-
 config.yaml           |   4 ++
 content/downloads.md  | 100 ++++++++++++++++++++++++++++++++++
 4 files changed, 251 insertions(+), 1 deletion(-)

diff --git a/assets/downloads.scss b/assets/downloads.scss
new file mode 100644
index 0000000..9fe5407
--- /dev/null
+++ b/assets/downloads.scss
@@ -0,0 +1,145 @@
+$table-header: #1976D2;
+$table-header-border: #1565C0;
+$table-border: #d9d9d9;
+$row-bg: #f4f2f1;
+
+.downloads {
+  div {
+    box-sizing: border-box;
+  }
+
+  .table-container {
+    display: block;
+    margin: 2em auto;
+    width: 90%;
+    max-width: 600px;
+  }
+
+  .flag-icon {
+    margin-right: 0.1em;
+  }
+
+  .flex-table {
+    display: flex;
+    flex-flow: row wrap;
+    border-left: solid 1px $table-border;
+    transition: 0.5s;
+
+    &:first-of-type {
+      border-top: solid 1px $table-header-border;
+      border-left: solid 1px $table-header-border;
+    }
+
+    &:first-of-type .flex-row {
+      background: $table-header;
+      color: white;
+      border-color: $table-header-border;
+    }
+
+    &.row:nth-child(odd) .flex-row {
+      background: $row-bg;
+    }
+
+    &:hover {
+      background: #F5F5F5;
+      transition: 500ms;
+    }
+  }
+
+  .flex-row {
+    width: calc(100% / 3);
+    text-align: center;
+    padding: 0.5em 0.5em;
+    border-right: solid 1px $table-border;
+    border-bottom: solid 1px $table-border;
+  }
+
+  .rowspan {
+    display: flex;
+    flex-flow: row wrap;
+    align-items: flex-start;
+    justify-content: center;
+  }
+
+  .column {
+    display: flex;
+    flex-flow: column wrap;
+    width: 75%;
+    padding: 0;
+
+    .flex-row {
+      display: flex;
+      flex-flow: row wrap;
+      width: 100%;
+      padding: 0;
+      border: 0;
+      border-bottom: solid 1px $table-border;
+
+      &:hover {
+        background: #F5F5F5;
+        transition: 500ms;
+      }
+    }
+  }
+
+  .flex-cell {
+    width: calc(100% / 3);
+    text-align: center;
+    padding: 0.5em 0.5em;
+    border-right: solid 1px $table-border;
+  }
+
+  @media all and (max-width: 767px) {
+    .flex-row {
+      width: calc(100% / 3);
+
+      &.first {
+        width: 100%;
+      }
+    }
+
+    .column {
+      width: 100%;
+    }
+  }
+
+  @media all and (max-width: 430px) {
+
+    .flex-table {
+      .flex-row {
+        border-bottom: 0;
+      }
+
+      .flex-row:last-of-type {
+        border-bottom: solid 1px $table-border;
+      }
+    }
+
+    .header {
+      .flex-row {
+        border-bottom: solid 1px;
+      }
+    }
+
+    .flex-row {
+      width: 100%;
+
+      &.first {
+        width: 100%;
+        border-bottom: solid 1px $table-border;
+      }
+    }
+
+    .column {
+      width: 100%;
+
+      .flex-row {
+        border-bottom: solid 1px $table-border;
+      }
+    }
+
+    .flex-cell {
+      width: 100%;
+    }
+  }
+}
\ No newline at end of file
diff --git a/assets/style.sass b/assets/style.sass
index b9b1d83..f73e6f9 100644
--- a/assets/style.sass
+++ b/assets/style.sass
@@ -1,2 +1,3 @@
 @import "bulma/bulma"
-@import "fresh/core"
\ No newline at end of file
+@import "fresh/core"
+@import "./downloads"
\ No newline at end of file
diff --git a/config.yaml b/config.yaml
index 512de76..df88f42 100644
--- a/config.yaml
+++ b/config.yaml
@@ -34,6 +34,8 @@ languages:
       navbar:
       - title: Home
         url: /
+      - title: Downloads
+        url: /downloads
       language:
         name: 中
         link: /zh
@@ -108,6 +110,8 @@ languages:
     navbar:
     - title: 首页
       url: /
+    - title: 下载
+      url: /downloads
     language:
         name: EN
         link: /
diff --git a/content/downloads.md b/content/downloads.md
new file mode 100644
index 0000000..5c04935
--- /dev/null
+++ b/content/downloads.md
@@ -0,0 +1,100 @@
+---
+title: "Downloads"
+date: 2019-11-26T23:48:02+08:00
+include_footer: true
+---
+
+<div class="downloads">
+  <section>
+    <h2 class="title">Releases</h2>
+    <p class="description">
+      Apache APISIX is released as source code tarballs. The downloads are distributed via mirror sites and should be
+      checked for tampering using GPG or SHA-512.
+    </p>
+    <div class="table-container" role="table" aria-label="Destinations">
+      <div class="flex-table header" role="rowgroup">
+        <div class="flex-row first" role="columnheader">Version</div>
+        <div class="flex-row" role="columnheader">Release date</div>
+        <div class="flex-row" role="columnheader">Source download</div>
+      </div>
+      <div class="flex-table row" role="rowgroup">
+        <div class="flex-row first" role="cell"><span class="flag-icon flag-icon-gb"></span>0.9</div>
+        <div class="flex-row" role="cell">2019 November 24</div>
+        <div class="flex-row" role="cell">
+          <a href="https://dist.apache.org/repos/dist/release/incubator/apisix/0.9/">source</a>
+          (
+          <a href="http://www.apache.org/dist/incubator/apisix/0.9/apache-apisix-0.9-incubating-src.tar.gz.asc">asc</a>
+          <a
+            href="http://www.apache.org/dist/incubator/apisix/0.9/apache-apisix-0.9-incubating-src.tar.gz.sha512">sha512</a>
+          )
+        </div>
+      </div>
+    </div>
+  </section>
+  <section>
+    <h2 class="title">Verify the releases</h2>
+    <a href="https://www.apache.org/dist/incubator/apisix/KEYS">PGP signatures KEYS</a>
+    <p>
+      It is essential that you verify the integrity of the downloaded files using the PGP or SHA signatures. The PGP
+      signatures can be verified using GPG or PGP. Please download the KEYS as well as the asc signature files for
+      relevant distribution. It is recommended to get these files from the main distribution directory and not from the
+      mirrors.
+    </p>
+
+    {{< highlight go "linenos=table" >}}
+    gpg -i KEYS
+    {{< / highlight >}}
+
+    <p>
+      or
+    </p>
+
+    {{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=1" >}}
+    pgpk -a KEYS
+    {{< / highlight >}}
+
+    <p>
+      or
+    </p>
+
+    {{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=1" >}}
+    pgp -ka KEYS
+    {{< / highlight >}}
+
+    <p>
+      To verify the binaries/sources you can download the relevant asc files for it from main distribution directory and
+      follow the below guide.
+    </p>
+
+    {{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=1" >}}
+    gpg --verify apache-apisix-incubating-********.asc apache-apisix-incubating-*********
+    {{< / highlight >}}
+
+    <p>
+      or
+    </p>
+
+    {{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=1" >}}
+    pgpv apache-apisix-incubating-********.asc
+    {{< / highlight >}}
+
+    <p>
+      or
+    </p>
+
+    {{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=1" >}}
+    pgp apache-apisix-incubating-********.asc
+    {{< / highlight >}}
+    <p />
+  </section>
+  <section>
+    <h2 class="title">Disclaimer</h2>
+    <p>
+      Apache APISIX (incubating) is an effort undergoing incubation at The Apache Software Foundation (ASF),
+      sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further
+      review indicates that the infrastructure, communications, and decision making process have stabilized in a manner
+      consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the
+      completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+    </p>
+  </section>
+</div>
\ No newline at end of file