This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit a00df9bf7847c1befdb370620b089289c30c5368 Author: Zoran Regvart <zregv...@apache.org> AuthorDate: Wed Feb 12 13:21:56 2020 +0100 Setup Antora partials This configures Antora component structure and makes sure that the starter documentation is copied over to it. The `:page-partial:` attribute is required for the `include::` directive to be able to include this when added in the component documentation. --- docs/antora.yml | 19 +++++++ docs/pom.xml | 63 ++++++++++++++++++++++ pom.xml | 1 + .../spring-boot-auto-configure-options.mvel | 2 + 4 files changed, 85 insertions(+) diff --git a/docs/antora.yml b/docs/antora.yml new file mode 100644 index 0000000..340c725 --- /dev/null +++ b/docs/antora.yml @@ -0,0 +1,19 @@ +# +# 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-spring-boot +version: latest diff --git a/docs/pom.xml b/docs/pom.xml new file mode 100644 index 0000000..c246ab4 --- /dev/null +++ b/docs/pom.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>spring-boot</artifactId> + <version>3.1.0-SNAPSHOT</version> + <relativePath>..</relativePath> + </parent> + + <groupId>org.apache.camel.springboot</groupId> + <artifactId>docs</artifactId> + <packaging>pom</packaging> + + <name>Camel SB Starters :: Docs</name> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>copy-docs</id> + <phase>package</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <copy todir="${project.basedir}/modules/ROOT/pages" flatten="true"> + <fileset dir="${project.basedir}/../components-starter/"> + <include name="*/src/main/docs/*.adoc"/> + </fileset> + </copy> + </target> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom.xml b/pom.xml index 8690438..512531c 100644 --- a/pom.xml +++ b/pom.xml @@ -78,6 +78,7 @@ <module>catalog</module> <module>tests</module> <module>examples</module> + <module>docs</module> </modules> <scm> diff --git a/tooling/camel-spring-boot-generator-maven-plugin/src/main/resources/spring-boot-auto-configure-options.mvel b/tooling/camel-spring-boot-generator-maven-plugin/src/main/resources/spring-boot-auto-configure-options.mvel index a6fe578..6156f18 100644 --- a/tooling/camel-spring-boot-generator-maven-plugin/src/main/resources/spring-boot-auto-configure-options.mvel +++ b/tooling/camel-spring-boot-generator-maven-plugin/src/main/resources/spring-boot-auto-configure-options.mvel @@ -1,3 +1,5 @@ +:page-partial: + == Spring Boot Auto-Configuration When using @{title} with Spring Boot make sure to use the following Maven dependency to have support for auto configuration: