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

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 7506a37  Add artifactHub widget to resources and downloads. (#30)
7506a37 is described below

commit 7506a3790123c01298a0cdb0fed7a0f9be758f67
Author: Houston Putman <[email protected]>
AuthorDate: Thu Aug 12 11:40:29 2021 -0400

    Add artifactHub widget to resources and downloads. (#30)
---
 content/pages/operator/resources.md           | 18 ++++++++
 content/pages/resources.md                    | 18 ++++++++
 themes/solr/static/css/base.css               |  4 ++
 themes/solr/static/css/operator.css           |  4 ++
 themes/solr/templates/operator/downloads.html | 63 +++++++++++++++------------
 themes/solr/templates/operator/resources.html |  1 +
 themes/solr/templates/resources.html          |  1 +
 7 files changed, 80 insertions(+), 29 deletions(-)

diff --git a/content/pages/operator/resources.md 
b/content/pages/operator/resources.md
index a732dad..3051e06 100644
--- a/content/pages/operator/resources.md
+++ b/content/pages/operator/resources.md
@@ -16,6 +16,24 @@ Users who have completed the tutorial are encouraged to 
review the [other docume
 
 ***
 
+## Helm Charts ##
+
+If you want to run Solr on Kubernetes, the easiest way to get started is via 
installing the Helm charts below.
+
+* **Solr Operator** - A management layer that runs independently in 
Kubernetes. Only deploy 1 per Kubernetes cluster or namespace.
+<!-- Uncomment when v0.4.0 is released
+* **Solr** - A SolrCloud cluster. In order to deploy this Helm chart 
successfully, you must first install the Solr Operator and Solr CRDs. Follow 
the instructions on the ArtifactHub page below.
+-->
+
+<div style="display:flex; justify-content: space-evenly">
+  <div class="artifacthub-widget" 
data-url="https://artifacthub.io/packages/helm/apache-solr/solr-operator"; 
data-theme="light" data-header="false" data-responsive="true"></div><script 
async src="https://artifacthub.io/artifacthub-widget.js";></script>
+  <!-- Uncomment when v0.4.0 is released
+  <div class="artifacthub-widget" 
data-url="https://artifacthub.io/packages/helm/apache-solr/solr"; 
data-theme="light" data-header="false" data-responsive="true"></div><script 
async src="https://artifacthub.io/artifacthub-widget.js";></script>
+  -->
+</div>
+
+***
+
 ## Documentation ##
 
 <h3 class="offset" id="the-apache-solr-reference-guide">The Apache Solr 
Reference Guide</h3>
diff --git a/content/pages/resources.md b/content/pages/resources.md
index 5d42a42..6359dcd 100644
--- a/content/pages/resources.md
+++ b/content/pages/resources.md
@@ -45,6 +45,24 @@ Additional documentation can be found on the [Solr Community 
Wiki](https://cwiki
 
 ***
 
+## Helm Charts ##
+
+If you want to run Solr on Kubernetes, the easiest way to get started is via 
installing the Helm charts below.
+
+* **[Solr Operator](/operator)** - A management layer that runs independently 
in Kubernetes. Only deploy 1 per Kubernetes cluster or namespace.
+<!-- Uncomment when v0.4.0 is released
+* **Solr** - A SolrCloud cluster. In order to deploy this Helm chart 
successfully, you must first install the Solr Operator and Solr CRDs. Follow 
the instructions on the ArtifactHub page below.
+-->
+
+<div style="display:flex; justify-content: space-evenly">
+  <div class="artifacthub-widget" 
data-url="https://artifacthub.io/packages/helm/apache-solr/solr-operator"; 
data-theme="light" data-header="false" data-responsive="true"></div><script 
async src="https://artifacthub.io/artifacthub-widget.js";></script>
+  <!-- Uncomment when v0.4.0 is released
+  <div class="artifacthub-widget" 
data-url="https://artifacthub.io/packages/helm/apache-solr/solr"; 
data-theme="light" data-header="false" data-responsive="true"></div><script 
async src="https://artifacthub.io/artifacthub-widget.js";></script>
+  -->
+</div>
+
+***
+
 ## Solr Books ##
 
 If you have a Solr book that you would like to see listed here, please [edit 
this website and submit a Pull Request](/editing-website.html).
diff --git a/themes/solr/static/css/base.css b/themes/solr/static/css/base.css
index 9c57719..4c44a99 100644
--- a/themes/solr/static/css/base.css
+++ b/themes/solr/static/css/base.css
@@ -415,6 +415,10 @@ section {
   text-align:center;
 }
 
+.artifacthub-widget > section {
+  padding: 0;
+}
+
 section.gray {
   background-color: #f9f8f8;
 }
diff --git a/themes/solr/static/css/operator.css 
b/themes/solr/static/css/operator.css
index 0946a2b..64f52ca 100644
--- a/themes/solr/static/css/operator.css
+++ b/themes/solr/static/css/operator.css
@@ -415,6 +415,10 @@ section {
   text-align:center;
 }
 
+.artifacthub-widget > section {
+  padding: 0;
+}
+
 section.gray {
   background-color: #f9f8f8;
 }
diff --git a/themes/solr/templates/operator/downloads.html 
b/themes/solr/templates/operator/downloads.html
index 372bf5f..47378db 100644
--- a/themes/solr/templates/operator/downloads.html
+++ b/themes/solr/templates/operator/downloads.html
@@ -21,35 +21,40 @@
 
   <p>Solr Operator {{ SOLR_OPERATOR_LATEST_RELEASE }} is the most recent 
Apache Solr Operator release.</p>
 
-  <ul>
-    <li>Source release:
-      <a href="https://www.apache.org/dyn/closer.lua/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz">solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE }}.tgz</a>
-      [<a href="https://downloads.apache.org/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz.asc">PGP</a>]
-      [<a href="https://downloads.apache.org/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz.sha512">SHA512</a>]
-    </li>
-
-    <li>Docker releases:
-      <a 
href="https://hub.docker.com/r/apache/solr-operator";>apache/solr-operator</a>
-    </li>
-
-    <li>Helm Chart release:
-      <a 
href="https://artifacthub.io/packages/helm/apache-solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE  | replace("v", "") }}">Artifact Hub</a><br/>
-      <i>Use <code>{{ SOLR_OPERATOR_LATEST_RELEASE  | replace("v", "") 
}}</code> as the version of the Helm Chart.</i>
-    </li>
-
-    <li>CRDs:
-      <ul>
-        <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/all.yaml">All</a></li>
-        <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/all-with-dependencies.yaml">All with 
Dependencies (Zookeeper)</a></li>
-        <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrclouds.yaml">Solr Cloud</a></li>
-        <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrprometheusexporters.yaml">Solr Prometheus 
Exporter</a></li>
-        <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrbackups.yaml">Solr Backup</a></li>
-      </ul>
-    </li>
-
-    <!-- TODO: Put change log in site -->
-    <li><a href="https://github.com/apache/solr-operator/releases/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}">Change log</a></li>
-  </ul>
+  <div style="display:flex">
+    <ul style="margin: 0.75rem; flex-shrink: 0">
+      <li>Source release:
+        <a href="https://www.apache.org/dyn/closer.lua/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz">solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE }}.tgz</a>
+        [<a href="https://downloads.apache.org/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz.asc">PGP</a>]
+        [<a href="https://downloads.apache.org/solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solr-operator-{{ SOLR_OPERATOR_LATEST_RELEASE 
}}.tgz.sha512">SHA512</a>]
+      </li>
+
+      <li>Docker releases:
+        <a 
href="https://hub.docker.com/r/apache/solr-operator";>apache/solr-operator</a>
+      </li>
+
+      <li>Helm Chart release:
+        <a 
href="https://artifacthub.io/packages/helm/apache-solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE  | replace("v", "") }}">Artifact Hub</a><br/>
+        <i>Use <code>{{ SOLR_OPERATOR_LATEST_RELEASE  | replace("v", "") 
}}</code> as the version of the Helm Chart.</i>
+      </li>
+
+      <li>CRDs:
+        <ul>
+          <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/all.yaml">All</a></li>
+          <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/all-with-dependencies.yaml">All with 
Dependencies (Zookeeper)</a></li>
+          <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrclouds.yaml">Solr Cloud</a></li>
+          <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrprometheusexporters.yaml">Solr Prometheus 
Exporter</a></li>
+          <li><a href="{{ SITEURL }}/operator/downloads/crds/{{ 
SOLR_OPERATOR_LATEST_RELEASE }}/solrbackups.yaml">Solr Backup</a></li>
+        </ul>
+      </li>
+
+      <!-- TODO: Put change log in site -->
+      <li><a 
href="https://artifacthub.io/packages/helm/apache-solr/solr-operator/{{ 
SOLR_OPERATOR_LATEST_RELEASE  | replace("v", "") }}?modal=changelog">Change 
log</a></li>
+    </ul>
+
+    <div class="artifacthub-widget" 
data-url="https://artifacthub.io/packages/helm/apache-solr/solr-operator"; 
data-theme="light" data-header="true" data-responsive="true"></div>
+    <script async src="https://artifacthub.io/artifacthub-widget.js";></script>
+  </div>
 
   <h3 id="solr-{{ SOLR_OPERATOR_PREVIOUS_MAJOR_RELEASE | replace(".", "") 
}}">Solr Operator {{ SOLR_OPERATOR_PREVIOUS_MAJOR_RELEASE }}
     <a class="headerlink" href="#solr-{{ SOLR_OPERATOR_PREVIOUS_MAJOR_RELEASE 
| replace(".", "") }}" title="Permanent link">ΒΆ</a>
diff --git a/themes/solr/templates/operator/resources.html 
b/themes/solr/templates/operator/resources.html
index fc4395e..5f9e335 100644
--- a/themes/solr/templates/operator/resources.html
+++ b/themes/solr/templates/operator/resources.html
@@ -4,6 +4,7 @@
 {% block subnav_subtitle %}Find everything you need about the Solr 
Operator<sup>&trade;</sup> here.{% endblock %}
 {% block subnav_nav_items %}
 <dd><a data-scroll href="#tutorials">Tutorials</a></dd>
+<dd><a data-scroll href="#helm-charts">Helm Charts</a></dd>
 <dd><a data-scroll href="#documentation">Docs</a></dd>
 <dd><a data-scroll href="#presentations">Presentations</a></dd>
 <dd><a data-scroll href="#videos">Videos</a></dd>
diff --git a/themes/solr/templates/resources.html 
b/themes/solr/templates/resources.html
index 61b9f65..2e1f081 100644
--- a/themes/solr/templates/resources.html
+++ b/themes/solr/templates/resources.html
@@ -5,6 +5,7 @@
 {% block subnav_nav_items %}
 <dd><a data-scroll href="#tutorials">Tutorials</a></dd>
 <dd><a data-scroll href="#documentation">Docs</a></dd>
+<dd><a data-scroll href="#helm-charts">Helm Charts</a></dd>
 <dd><a data-scroll href="#solr-books">Books</a></dd>
 <dd><a data-scroll href="#presentations">Presentations</a></dd>
 <dd><a data-scroll href="#videos">Videos</a></dd>

Reply via email to