You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dj...@apache.org on 2021/12/16 16:20:31 UTC
[camel-kafka-connector] 02/02: local/partial build setup
This is an automated email from the ASF dual-hosted git repository.
djencks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit 873bb1c7e49e5ea4899b27696f72e2679768121d
Author: David Jencks <dj...@apache.org>
AuthorDate: Wed Dec 15 21:32:12 2021 -0800
local/partial build setup
---
docs/local-build.sh | 37 +++++++++++++++++++++++++++++++++++++
docs/source-map.yml | 25 +++++++++++++++++++++++++
docs/source-watch.yml | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 96 insertions(+)
diff --git a/docs/local-build.sh b/docs/local-build.sh
new file mode 100755
index 0000000..46bdf28
--- /dev/null
+++ b/docs/local-build.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+#
+# 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.
+#
+
+CW=./../../camel-website
+LOCAL=./../camel-kafka-connector
+
+cd $CW || (echo 'camel-website not in expected location $CW' && exit)
+cp antora-playbook.yml local-antora-playbook-full.yml
+cat $LOCAL/docs/source-map.yml >> local-antora-playbook-full.yml
+cat playbook-patch-full.yml >> local-antora-playbook-full.yml
+
+cp antora-playbook.yml local-antora-playbook-partial.yml
+cat $LOCAL/docs/source-map.yml >> local-antora-playbook-partial.yml
+cat $LOCAL/docs/source-watch.yml >> local-antora-playbook-partial.yml
+
+if [ "$1" = "full" ] || [ "$1" = "1" ]
+then
+ yarn build:antora-local-full
+else
+ yarn build:antora-local-partial
+fi
\ No newline at end of file
diff --git a/docs/source-map.yml b/docs/source-map.yml
new file mode 100644
index 0000000..c50d804
--- /dev/null
+++ b/docs/source-map.yml
@@ -0,0 +1,25 @@
+#
+# 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.
+#
+
+ - require: '@djencks/antora-source-map'
+# log_level: trace
+ source-map:
+ - url: 'https://github.com/apache/camel-kafka-connector.git'
+ mapped-url: './../camel-kafka-connector'
+ branches:
+ - branch: main
+ mapped-branch: HEAD
diff --git a/docs/source-watch.yml b/docs/source-watch.yml
new file mode 100644
index 0000000..e03193c
--- /dev/null
+++ b/docs/source-watch.yml
@@ -0,0 +1,34 @@
+#
+# 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.
+#
+
+ - require: '@djencks/antora-source-watch'
+# log_level: trace
+ sources:
+ - url: ./../camel-kafka-connector
+ component: camel-kafka-connector
+ version: next
+
+ - require: "@djencks/antora-site-manifest"
+ import-manifests:
+ - primary-site-manifest-url: ./documentation/site-manifest.json
+ partial-components: true
+ local-urls: true
+
+ - require: '@djencks/antora-timer'
+ log_level: info
+
+ generator: '@djencks/antora-source-watch'
\ No newline at end of file