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/19 00:18:33 UTC
[camel] branch main updated: 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.git
The following commit(s) were added to refs/heads/main by this push:
new 48f92b0 local/partial build setup
48f92b0 is described below
commit 48f92b083d0e1da2f010d39bd52e2c8095d81b77
Author: David Jencks <dj...@apache.org>
AuthorDate: Fri Dec 17 12:54:02 2021 -0800
local/partial build setup
---
docs/local-build.sh | 37 +++++++++++++++++++++++++++++++++++++
docs/source-map.yml | 25 +++++++++++++++++++++++++
docs/source-watch.yml | 41 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 103 insertions(+)
diff --git a/docs/local-build.sh b/docs/local-build.sh
new file mode 100755
index 0000000..c8dd05d
--- /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
+
+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..b294c1d
--- /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.git'
+ mapped_url: './../camel'
+ branches:
+ - branch: main
+ mapped_branch: HEAD
diff --git a/docs/source-watch.yml b/docs/source-watch.yml
new file mode 100644
index 0000000..ddea893
--- /dev/null
+++ b/docs/source-watch.yml
@@ -0,0 +1,41 @@
+#
+# 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: debug
+ sources:
+ - url: ./../camel
+ - url: https://github.com/apache/camel-spring-boot.git
+ branch_includes: main
+ start_path_includes: docs/components,components-starter
+ components:
+# uncomment to work only on components
+# - name: components
+# version: next
+# uncomment to work only on the user manual
+# - name: manual
+
+ - 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