This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 6dbd96862a7ead8cb049ce70a8cf2a3ea42e2d08 Author: aashnajena <[email protected]> AuthorDate: Sat Aug 15 18:09:35 2020 +0530 add sitemap to camel website --- antora-ui-camel/src/css/site.css | 1 + antora-ui-camel/src/css/sitemap.css | 18 +++++++++++ antora-ui-camel/src/partials/footer-content.hbs | 3 ++ content/sitemap/_index.md | 3 ++ layouts/download/download.html | 2 +- layouts/partials/footer.html | 3 ++ layouts/sitemap/sitemap.html | 41 +++++++++++++++++++++++++ 7 files changed, 70 insertions(+), 1 deletion(-) diff --git a/antora-ui-camel/src/css/site.css b/antora-ui-camel/src/css/site.css index e00ed3e..2b831d0 100644 --- a/antora-ui-camel/src/css/site.css +++ b/antora-ui-camel/src/css/site.css @@ -24,3 +24,4 @@ @import 'misc.css'; @import 'community.css'; @import 'docs.css'; +@import 'sitemap.css'; diff --git a/antora-ui-camel/src/css/sitemap.css b/antora-ui-camel/src/css/sitemap.css new file mode 100644 index 0000000..2f64647 --- /dev/null +++ b/antora-ui-camel/src/css/sitemap.css @@ -0,0 +1,18 @@ +.sitemap h1 { + text-align: center; +} + +.sitemap ul.sitemap-list { + list-style-type: none; + -webkit-columns: 2; + -moz-columns: 2; + columns: 2; + padding: 0; + column-gap: 25%; +} + +@media screen and (max-width: 626px) { + .sitemap ul.sitemap-list { + columns: 1; + } +} diff --git a/antora-ui-camel/src/partials/footer-content.hbs b/antora-ui-camel/src/partials/footer-content.hbs index c4c3953..63e8c44 100644 --- a/antora-ui-camel/src/partials/footer-content.hbs +++ b/antora-ui-camel/src/partials/footer-content.hbs @@ -61,6 +61,9 @@ <div class="context"> <a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/policies/conduct">Code of Conduct</a> </div> + <div class="context"> + <a href="{{siteRootPath}}/sitemap/">Sitemap</a> + </div> </div> <div class="footer-icons"> <a rel="noopener noreferrer nofollow" href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use xlink:href="{{uiRootPath}}/img/brand-logos.svg#github" /></svg></a> diff --git a/content/sitemap/_index.md b/content/sitemap/_index.md new file mode 100644 index 0000000..1d825fe --- /dev/null +++ b/content/sitemap/_index.md @@ -0,0 +1,3 @@ +--- +title: "Camel Website Sitemap" +--- \ No newline at end of file diff --git a/layouts/download/download.html b/layouts/download/download.html index a37d93b..b27d5c1 100644 --- a/layouts/download/download.html +++ b/layouts/download/download.html @@ -2,7 +2,7 @@ <div class="body"> <main role="main"> - <article class="static doc"> + <article class="static doc docs"> <h1>{{ .Title }}</h1> <h2>Latest releases</h2> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0bfdfd9..074eefc 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -67,6 +67,9 @@ <div class="context"> <a target="_blank" rel="noopener noreferrer nofollow" href="https://www.apache.org/foundation/policies/conduct">Code of Conduct</a> </div> + <div class="context"> + <a href="/sitemap/">Sitemap</a> + </div> </div> <div class="footer-icons"> <a rel="noopener noreferrer nofollow" href="https://github.com/apache/camel/" title="Collaborate on GitHub"><svg class="brand-icon"><use href="{{ "_/img/brand-logos.svg#github" | relURL }}" /></svg></a> diff --git a/layouts/sitemap/sitemap.html b/layouts/sitemap/sitemap.html new file mode 100644 index 0000000..d2853b7 --- /dev/null +++ b/layouts/sitemap/sitemap.html @@ -0,0 +1,41 @@ +{{ partial "header.html" . }} + +<div class="body"> + <main class="article"> + <div class="content"> + <article class="doc static sitemap"> + <h1 class="page">{{ .Title }} </h1> + <a href="/"><h2>Overview</h2></a> + <ul class="sitemap-list"> + {{ $currentPage := .Permalink }} + {{ range .Site.Sections }} + {{ if not (eq $currentPage .Permalink) }} + <li><a href = "{{ .Permalink }}" >{{.Title}}</a></li> + {{end}} + {{ end }} + <li><a href = "/community/">Community</a></li> + </ul> + <a href="/docs/"><h2>Documentation</h2></a> + <ul class="sitemap-list"> + <li><a href = "/manual/latest/getting-started.html">Getting Started</a></li> + <li><a href = "/manual/latest/">User Manual</a></li> + <li><a href = "/manual/latest/faq/">FAQ</a></li> + <li><a href = "/components/latest/">Component Reference</a></li> + <li><a href = "/components/latest/dataformats/">Data Formats</a></li> + <li><a href = "/components/latest/eips/enterprise-integration-patterns.html">EIP</a></li> + </ul> + <a href="/docs/"><h2>Sub Projects</h2></a> + <ul class="sitemap-list"> + <li><a href = "/manual/latest/">Camel Core</a></li> + <li><a href = "/camel-k/latest/">Camel K</a></li> + <li><a href = "/camel-quarkus/latest/">Camel Quarkus</a></li> + <li><a href = "/camel-spring-boot/latest/">Camel Spring Boot</a></li> + <li><a href = "/camel-kafka-connector/latest/">Camel Kafka Connector</a></li> + <li><a href = "/camel-karaf/latest/">Camel Karaf</a></li> + </ul> + </article> + </div> + </main> +</div> + +{{ partial "footer.html" . }} \ No newline at end of file
