Skip to content

Commit

Permalink
Add data bubble to sitemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Wu Fei authored and Carlos Wu Fei committed Oct 19, 2023
1 parent c6dc06f commit 11b7ed2
Show file tree
Hide file tree
Showing 18 changed files with 68 additions and 37 deletions.
4 changes: 2 additions & 2 deletions templates/data/docs/mongodb/iaas/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/mongodb/iaas/search",
siteSearch="/data/docs/mongodb/iaas",
search_action="https://canonical.com/data/docs/mongodb/iaas/search",
siteSearch="https://canonical.com/data/docs/mongodb/iaas",
placeholder="Search Charmed MongoDB on IaaS docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/mongodb/iaas/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed MongoDB on IaaS Docs",
query=query,
results=results,
search_action="/data/docs/mongodb/iaas/search",
siteSearch="/data/docs/mongodb/iaas",
search_action="https://canonical.com/data/docs/mongodb/iaas/search",
siteSearch="https://canonical.com/data/docs/mongodb/iaas",
placeholder="Search Charmed MongoDB on IaaS Docs",
search_path="/data/docs/mongodb/iaas/search",
search_path="https://canonical.com/data/docs/mongodb/iaas/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/mongodb/k8s/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/mongodb/k8s/search",
siteSearch="/data/docs/mongodb/k8s",
search_action="https://canonical.com/data/docs/mongodb/k8s/search",
siteSearch="https://canonical.com/data/docs/mongodb/k8s",
placeholder="Search Charmed MongoDB on Kubernetes docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/mongodb/k8s/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed MongoDB on Kubernetes Docs",
query=query,
results=results,
search_action="/data/docs/mongodb/k8s/search",
siteSearch="/data/docs/mongodb/k8s",
search_action="https://canonical.com/data/docs/mongodb/k8s/search",
siteSearch="https://canonical.com/data/docs/mongodb/k8s",
placeholder="Search Charmed MongoDB on Kubernetes Docs",
search_path="/data/docs/mongodb/k8s/search",
search_path="https://canonical.com/data/docs/mongodb/k8s/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/mysql/iaas/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/mysql/iaas/search",
siteSearch="/data/docs/mysql/iaas",
search_action="https://canonical.com/data/docs/mysql/iaas/search",
siteSearch="https://canonical.com/data/docs/mysql/iaas",
placeholder="Search Charmed MySQL on IaaS docs",
navigation=navigation,
disable_title=true
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/mysql/iaas/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title="Charmed MySQL on IaaS Docs",
query=query,
results=results,
search_action="/data/docs/mysql/iaas/search",
siteSearch="/data/docs/mysql/iaas",
search_action="https://canonical.com/data/docs/mysql/iaas/search",
siteSearch="https://canonical.com/data/docs/mysql/iaas",
placeholder="Search Charmed MySQL on IaaS Docs",
search_path="/data/docs/mysql/iaas/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/mysql/k8s/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/mysql/k8s/search",
siteSearch="/data/docs/mysql/k8s",
search_action="https://canonical.com/data/docs/mysql/k8s/search",
siteSearch="https://canonical.com/data/docs/mysql/k8s",
placeholder="Search Charmed MySQL on Kubernetes docs",
navigation=navigation,
disable_title=true
Expand Down
2 changes: 1 addition & 1 deletion templates/data/docs/mysql/k8s/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
query=query,
results=results,
search_action="/data/docs/mysql/k8s/search",
siteSearch="/data/docs/mysql/k8s",
siteSearch="https://canonical.com/data/docs/mysql/k8s",
placeholder="Search Charmed MySQL on Kubernetes Docs",
search_path="/data/docs/mysql/k8s/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/opensearch/iaas/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/opensearch/iaas/search",
siteSearch="/data/docs/opensearch/iaas",
search_action="https://canonical.com/data/docs/opensearch/iaas/search",
siteSearch="https://canonical.com/data/docs/opensearch/iaas",
placeholder="Search Charmed OpenSearch on IaaS docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/opensearch/iaas/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed OpenSearch on IaaS Docs",
query=query,
results=results,
search_action="/data/docs/opensearch/iaas/search",
siteSearch="/data/docs/opensearch/iaas",
search_action="https://canonical.com/data/docs/opensearch/iaas/search",
siteSearch="https://canonical.com/data/docs/opensearch/iaas",
placeholder="Search Charmed OpenSearch on IaaS Docs",
search_path="/data/docs/opensearch/iaas/search",
search_path="https://canonical.com/data/docs/opensearch/iaas/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/postgresql/iaas/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/postgresql/iaas/search",
siteSearch="/data/docs/postgresql/iaas",
search_action="https://canonical.com/data/docs/postgresql/iaas/search",
siteSearch="https://canonical.com/data/docs/postgresql/iaas",
placeholder="Search Charmed PostgreSQL on IaaS docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/postgresql/iaas/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed PostgreSQL on IaaS Docs",
query=query,
results=results,
search_action="/data/docs/postgresql/iaas/search",
siteSearch="/data/docs/postgresql/iaas",
search_action="https://canonical.com/data/docs/postgresql/iaas/search",
siteSearch="https://canonical.com/data/docs/postgresql/iaas",
placeholder="Search Charmed PostgreSQL on IaaS Docs",
search_path="/data/docs/postgresql/iaas/search",
search_path="https://canonical.com/data/docs/postgresql/iaas/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/postgresql/k8s/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/postgresql/k8s/search",
siteSearch="/data/docs/postgresql/k8s",
search_action="https://canonical.com/data/docs/postgresql/k8s/search",
siteSearch="https://canonical.com/data/docs/postgresql/k8s",
placeholder="Search Charmed PostgreSQL on Kubernetes docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/postgresql/k8s/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed PostgreSQL on K8s Docs",
query=query,
results=results,
search_action="/data/docs/postgresql/k8s/search",
siteSearch="/data/docs/postgresql/k8s",
search_action="https://canonical.com/data/docs/postgresql/k8s/search",
siteSearch="https://canonical.com/data/docs/postgresql/k8s",
placeholder="Search Charmed PostgreSQL on K8s Docs",
search_path="/data/docs/spark/search",
search_path="https://canonical.com/data/docs/spark/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
4 changes: 2 additions & 2 deletions templates/data/docs/spark/k8s/document.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% with
document=document,
nav_items=nav_items,
search_action="/data/docs/spark/k8s/search",
siteSearch="/data/docs/spark-k8s",
search_action="https://canonical.com/data/docs/spark/k8s/search",
siteSearch="https://canonical.com/data/docs/spark/k8s",
placeholder="Search Charmed Spark docs",
navigation=navigation,
disable_title=true
Expand Down
6 changes: 3 additions & 3 deletions templates/data/docs/spark/k8s/search-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title="Charmed Spark on K8s Docs",
query=query,
results=results,
search_action="/data/docs/spark/k8s/search",
siteSearch="/data/docs/spark-k8s",
search_action="https://canonical.com/data/docs/spark/k8s/search",
siteSearch="https://canonical.com/data/docs/spark",
placeholder="Search Charmed Spark on K8s Docs",
search_path="/data/docs/spark/k8s/search",
search_path="https://canonical.com/data/docs/spark/k8s/search",
forum_link="https://discourse.charmhub.io/c/charm/41"
%}
{% include "docs/shared/_search-results.html" %}
Expand Down
27 changes: 27 additions & 0 deletions templates/data/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://canonical.com/data</loc>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://canonical.com/data/spark</loc>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://canonical.com/data/mongodb</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>https://canonical.com/data/kafka</loc>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://canonical.com/data/opensearch</loc>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://canonical.com/data/docs</loc>
<changefreq>monthly</changefreq>
</url>
</urlset>
4 changes: 4 additions & 0 deletions templates/sitemap-links.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
<loc>https://canonical.com/press-centre</loc>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://canonical.com/data</loc>
<changefreq>monthly</changefreq>
</url>
</urlset>

0 comments on commit 11b7ed2

Please sign in to comment.