You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/12/26 20:18:10 UTC

[camel] branch master updated: include relevant snippets from configuration file in documentation

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d3ca0b  include relevant snippets from configuration file in documentation
     new b705ba8  Merge pull request #3446 from ahus1/config-camel-fix-include
2d3ca0b is described below

commit 2d3ca0bad127a63dad48bbd60d1ea343e78e3d98
Author: Alexander Schwartz <al...@gmx.net>
AuthorDate: Thu Dec 26 21:07:46 2019 +0100

    include relevant snippets from configuration file in documentation
---
 .../resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml | 4 ++--
 docs/user-manual/modules/ROOT/pages/configuring-camel.adoc           | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/examples/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml b/docs/user-manual/modules/ROOT/examples/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml
index b3d2d54..f313a7c 100644
--- a/docs/user-manual/modules/ROOT/examples/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml
+++ b/docs/user-manual/modules/ROOT/examples/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml
@@ -24,7 +24,7 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
 
-  <!-- START SNIPPET: example -->
+  <!-- tag::example[] -->
   <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
       <jmxAgent id="agent" disabled="true"/>
   </camelContext>
@@ -36,6 +36,6 @@
       </bean>
     </property>
   </bean>
-  <!-- END SNIPPET: example -->
+  <!-- end::example[] -->
 
 </beans>
diff --git a/docs/user-manual/modules/ROOT/pages/configuring-camel.adoc b/docs/user-manual/modules/ROOT/pages/configuring-camel.adoc
index bb20ace..81abe39 100644
--- a/docs/user-manual/modules/ROOT/pages/configuring-camel.adoc
+++ b/docs/user-manual/modules/ROOT/pages/configuring-camel.adoc
@@ -51,7 +51,10 @@ injection.
 
 You can configure a component via Spring using the following mechanism:
 
-include::{examplesdir}/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml[]
+[source,xml]
+----
+include::{examplesdir}/components/camel-jms/src/test/resources/org/apache/camel/component/jms/jmsRouteUsingSpring.xml[tags=example]
+----
 
 Which allows you to configure a component using some name (activemq in the
 above example), then you can refer to the component using