Skip to content

Commit

Permalink
Parameterize link to camel-k version. Fix the kamelets index page dis…
Browse files Browse the repository at this point in the history
…play
  • Loading branch information
djencks committed Oct 26, 2021
1 parent 4e2ad86 commit 38b3907
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
22 changes: 22 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# 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.
#

name: camel-kamelets
title: Kamelet Catalog
version: next
Expand All @@ -6,3 +23,8 @@ display-version: Next (Pre-release)

nav:
- modules/ROOT/nav.adoc

# Update to appropriate released camel-k version on release
asciidoc:
attributes:
camel-k-version: next
6 changes: 2 additions & 4 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
= Kamelet Catalog

This page contains the default Apache Camel Kamelets catalog.
**We love contributions for this catalog**: you can follow the xref:next@camel-k::kamelets/kamelets-dev.adoc[Kamelets Developer Guide]
**We love contributions for this catalog**: you can follow the xref:{camel-k-version}@camel-k::kamelets/kamelets-dev.adoc[Kamelets Developer Guide]
for information on how to create new Kamelets and contribute them to the official https://github.com/apache/camel-kamelets/[github.com/apache/camel-kamelets] repository.

//The `relative=!nav.adoc` filter is needed only to work around a bug or limitation in xref-checker.
//The filter should be removed when xref-checker is no longer used (i.e. Antora 3 alpha.9 upgrade is complete).
[indexBlock,xref,relative=!nav.adoc]
[indexBlock,'xref=$xref']
----
[.catalog]
[.item]#{xref}#
Expand Down

0 comments on commit 38b3907

Please sign in to comment.