This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new aead3fa fix(doc): broken links
aead3fa is described below
commit aead3fa5be0d34b3285eaf6b59cc6c878c4579ef
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue May 11 15:48:53 2021 +0200
fix(doc): broken links
* Excluded a private struct so it's no longer linked in the gen docs
* Workaround an issue reported to convert urlencoded chars
Fixes #2280
---
docs/modules/ROOT/pages/apis/crds-html.adoc | 30 +++--------------------------
script/gen_crd/gen-crd-api-config.json | 3 ++-
script/gen_crd/gen_crd_api.sh | 3 +++
3 files changed, 8 insertions(+), 28 deletions(-)
diff --git a/docs/modules/ROOT/pages/apis/crds-html.adoc
b/docs/modules/ROOT/pages/apis/crds-html.adoc
index 3afe876..faf1fd5 100644
--- a/docs/modules/ROOT/pages/apis/crds-html.adoc
+++ b/docs/modules/ROOT/pages/apis/crds-html.adoc
@@ -1,10 +1,10 @@
<p>Packages:</p>
<ul>
<li>
-<a href="#camel.apache.org%2fv1">camel.apache.org/v1</a>
+<a href="#camel.apache.org/v1">camel.apache.org/v1</a>
</li>
<li>
-<a href="#camel.apache.org%2fv1alpha1">camel.apache.org/v1alpha1</a>
+<a href="#camel.apache.org/v1alpha1">camel.apache.org/v1alpha1</a>
</li>
</ul>
<h2 id="camel.apache.org/v1">camel.apache.org/v1</h2>
@@ -5307,18 +5307,6 @@ ErrorHandlerParameters
</tr>
</thead>
<tbody>
-<tr>
-<td>
-<code>baseErrorHandler</code></br>
-<em>
-<a href="#camel.apache.org/v1alpha1.baseErrorHandler">
-baseErrorHandler
-</a>
-</em>
-</td>
-<td>
-</td>
-</tr>
</tbody>
</table>
<h3
id="camel.apache.org/v1alpha1.ErrorHandlerParameters">ErrorHandlerParameters
@@ -5367,18 +5355,6 @@ RawMessage
<tbody>
<tr>
<td>
-<code>baseErrorHandler</code></br>
-<em>
-<a href="#camel.apache.org/v1alpha1.baseErrorHandler">
-baseErrorHandler
-</a>
-</em>
-</td>
-<td>
-</td>
-</tr>
-<tr>
-<td>
<code>RawMessage</code></br>
<em>
<a href="#camel.apache.org/v1.RawMessage">
@@ -6500,5 +6476,5 @@ be used to delay JSON decoding or precompute a JSON
encoding.</p>
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
-on git commit <code>bd0a199c</code>.
+on git commit <code>cca9858d</code>.
</em></p>
diff --git a/script/gen_crd/gen-crd-api-config.json
b/script/gen_crd/gen-crd-api-config.json
index 9324aa2..5e4031c 100644
--- a/script/gen_crd/gen-crd-api-config.json
+++ b/script/gen_crd/gen-crd-api-config.json
@@ -1,6 +1,7 @@
{
"hideMemberFields": [
- "TypeMeta"
+ "TypeMeta",
+ "baseErrorHandler"
],
"hideTypePatterns": [
"ParseError$",
diff --git a/script/gen_crd/gen_crd_api.sh b/script/gen_crd/gen_crd_api.sh
index 93f4cea..2f1e219 100755
--- a/script/gen_crd/gen_crd_api.sh
+++ b/script/gen_crd/gen_crd_api.sh
@@ -32,6 +32,9 @@ $TMPDIR/gen-crd-api-reference-docs \
-api-dir "github.com/apache/camel-k/pkg/apis/camel" \
-out-file $rootdir/docs/modules/ROOT/pages/apis/crds-html.adoc
+# Workaround: https://github.com/ahmetb/gen-crd-api-reference-docs/issues/33
+sed -i -E "s/%2f/\//" $rootdir/docs/modules/ROOT/pages/apis/crds-html.adoc
+
echo "Cleaning the gen-crd-api-reference-docs binary..."
rm $TMPFILE
rm -rf $TMPDIR
\ No newline at end of file