You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2021/12/29 00:26:31 UTC

[incubator-mxnet] branch master updated: [website] Move trusted-by section from main page to a new page (#20788)

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

manuseth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 026f1d5  [website] Move trusted-by section from main page to a new page (#20788)
026f1d5 is described below

commit 026f1d56b9c91e8d8ada5720df03b68da3d751b2
Author: Manu Seth <22...@users.noreply.github.com>
AuthorDate: Tue Dec 28 16:24:06 2021 -0800

    [website] Move trusted-by section from main page to a new page (#20788)
    
    * add custom jenkinsfile
    
    * move users from home page
    
    * test users page
    
    * revert htaccess change
    
    * move trusted-by section from homepage to ecosystem/
    
    * Revert "move trusted-by section from homepage to ecosystem/"
    
    This reverts commit e214069a98a431c8fa1bc6d2a1a874907f1a664e.
    
    * copy powered_by to master/
    
    * update trusted-by page
    
    * remove test jenkinsfile
---
 ci/docker/runtime_functions.sh                     |  2 +-
 .../themes/mx-theme/mxtheme/header_top.html        |  1 +
 docs/static_site/src/_includes/header.html         |  1 +
 docs/static_site/src/_layouts/home.html            |  8 -----
 docs/static_site/src/_sass/minima/_home.scss       | 14 ---------
 docs/static_site/src/pages/trusted_by.html         | 34 ++++++++++++++++++++++
 6 files changed, 37 insertions(+), 23 deletions(-)

diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 61d9936..05f8003 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -1329,7 +1329,7 @@ build_docs() {
 
     # copy the full site for this version to versions folder
     mkdir -p html/versions/master
-    for f in 404.html api assets blog community ecosystem features feed.xml get_started index.html; do
+    for f in 404.html api assets blog community ecosystem features trusted_by feed.xml get_started index.html; do
         cp -r html/$f html/versions/master/
     done
 
diff --git a/docs/python_docs/themes/mx-theme/mxtheme/header_top.html b/docs/python_docs/themes/mx-theme/mxtheme/header_top.html
index 69cdf64..2234046 100644
--- a/docs/python_docs/themes/mx-theme/mxtheme/header_top.html
+++ b/docs/python_docs/themes/mx-theme/mxtheme/header_top.html
@@ -18,6 +18,7 @@
         <a class="page-link" href="{{theme_relative_url}}features">Features</a>
         <a class="page-link" href="{{theme_relative_url}}ecosystem">Ecosystem</a>
         <a class="page-link page-current" href="{{theme_relative_url}}api">Docs & Tutorials</a>
+        <a class="page-link" href="{{theme_relative_url}}trusted_by">Trusted By</a>
         <a class="page-link" href="https://github.com/apache/incubator-mxnet">GitHub</a>
         <div class="dropdown">
           <span class="dropdown-header">master
diff --git a/docs/static_site/src/_includes/header.html b/docs/static_site/src/_includes/header.html
index bbaac28..c498a61 100644
--- a/docs/static_site/src/_includes/header.html
+++ b/docs/static_site/src/_includes/header.html
@@ -85,6 +85,7 @@
         <a class="page-link" href="{{'/features' | relative_url }}">Features</a>
         <a class="page-link" href="{{'/ecosystem' | relative_url }}">Ecosystem</a>
         <a class="page-link" href="{{'/api' | relative_url }}">Docs & Tutorials</a>
+        <a class="page-link" href="{{'/trusted_by' | relative_url }}">Trusted By</a>
         <a class="page-link" href="https://github.com/apache/incubator-mxnet">GitHub</a>
         <div class="dropdown">
           <span class="dropdown-header">master
diff --git a/docs/static_site/src/_layouts/home.html b/docs/static_site/src/_layouts/home.html
index 9823d43..430c03f 100644
--- a/docs/static_site/src/_layouts/home.html
+++ b/docs/static_site/src/_layouts/home.html
@@ -178,14 +178,6 @@
             </div>
         </div>
     </div>
-    <div class="trusted-by-section section ">
-        <div class="wrapper">
-            <div class="trusted-by">
-                <h2>Already trusted by</h2>
-                <img src="{{'/assets/img/logos.png' | relative_url}}">
-            </div>
-        </div>
-    </div>
 </main>
 
 {%- include footer.html -%}
diff --git a/docs/static_site/src/_sass/minima/_home.scss b/docs/static_site/src/_sass/minima/_home.scss
index bdb4f93..5acc7f3 100644
--- a/docs/static_site/src/_sass/minima/_home.scss
+++ b/docs/static_site/src/_sass/minima/_home.scss
@@ -171,20 +171,6 @@ a.btn {
 }
 
 // ===
-// trusted-by
-// ===
-
-.trusted-by-section {
-  background-color: white;
-  color: $grey-color-dark;
-}
-
-.trusted-by {
-  margin-top: 30px;
-
-}
-
-// ===
 // news
 // ===
 .news-section {
diff --git a/docs/static_site/src/pages/trusted_by.html b/docs/static_site/src/pages/trusted_by.html
new file mode 100644
index 0000000..a49b3d8
--- /dev/null
+++ b/docs/static_site/src/pages/trusted_by.html
@@ -0,0 +1,34 @@
+---
+layout: page
+title: Trusted By
+subtitle: These are some of the organizations that use MXNet.
+action: Get Started
+action_url: /get_started
+permalink: /trusted_by/
+---
+
+<!---
+  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.
+-->
+
+<div class="trusted-by-page">
+    <div class="row">
+        <img src="{{'/assets/img/logos.png' | relative_url}}">
+    </div>
+    <br><br>
+</div>