Skip to content

Commit

Permalink
local build setup
Browse files Browse the repository at this point in the history
fix tooling enough so it doesn't break build
  • Loading branch information
djencks committed Dec 15, 2021
1 parent cf55c4f commit 2241acf
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 183 deletions.
62 changes: 0 additions & 62 deletions docs/antora-playbook-dev.yml

This file was deleted.

80 changes: 0 additions & 80 deletions docs/antora-playbook.yml

This file was deleted.

37 changes: 37 additions & 0 deletions docs/local-build.sh
Original file line number Diff line number Diff line change
@@ -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-quarkus

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
78 changes: 39 additions & 39 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,45 +85,45 @@
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<nodeVersion>v14.16.0</nodeVersion>
<yarnVersion>v1.22.5</yarnVersion>
</configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>verify</phase>
<configuration>
<arguments>install --immutable</arguments>
</configuration>
</execution>
<!-- TODO: Enable checks once docs issues are fixed https://github.com/apache/camel-quarkus/issues/3307
<execution>
<id>antora-xref-check</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>verify</phase>
<configuration>
<arguments>run checks</arguments>
</configuration>
</execution>
-->
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.github.eirslett</groupId>-->
<!-- <artifactId>frontend-maven-plugin</artifactId>-->
<!-- <version>${frontend-maven-plugin.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>install node and yarn</id>-->
<!-- <goals>-->
<!-- <goal>install-node-and-yarn</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <nodeVersion>v14.16.0</nodeVersion>-->
<!-- <yarnVersion>v1.22.5</yarnVersion>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- <execution>-->
<!-- <id>yarn install</id>-->
<!-- <goals>-->
<!-- <goal>yarn</goal>-->
<!-- </goals>-->
<!-- <phase>verify</phase>-->
<!-- <configuration>-->
<!-- <arguments>install &#45;&#45;immutable</arguments>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- &lt;!&ndash; TODO: Enable checks once docs issues are fixed https://github.com/apache/camel-quarkus/issues/3307-->
<!-- <execution>-->
<!-- <id>antora-xref-check</id>-->
<!-- <goals>-->
<!-- <goal>yarn</goal>-->
<!-- </goals>-->
<!-- <phase>verify</phase>-->
<!-- <configuration>-->
<!-- <arguments>run checks</arguments>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- &ndash;&gt;-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
</build>
</profile>
Expand Down
25 changes: 25 additions & 0 deletions docs/source-map.yml
Original file line number Diff line number Diff line change
@@ -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-quarkus.git'
mapped-url: './../camel-quarkus'
branches:
- branch: main
mapped-branch: HEAD
37 changes: 37 additions & 0 deletions docs/source-watch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# 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-quarkus
component: camel-quarkus
version: next
- url: https://github.com/apache/camel-quarkus-examples.git
component: camel-quarkus-examples
version: latest

- 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'
2 changes: 0 additions & 2 deletions tooling/scripts/update-antora-config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import java.util.regex.Matcher
final Path treeRootDir = Paths.get(properties['maven.multiModuleProjectDirectory'])

final List<Path> replaceInFiles = [
treeRootDir.resolve('docs/antora-playbook.yml'),
treeRootDir.resolve('docs/antora-playbook-dev.yml'),
treeRootDir.resolve('docs/antora.yml')
] as List

Expand Down

0 comments on commit 2241acf

Please sign in to comment.