logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1196484 - in /logging/log4php/trunk: build.xml pom.xml src/site/cse.xml src/site/site.vm
Date Wed, 02 Nov 2011 07:38:29 GMT
Author: ihabunek
Date: Wed Nov  2 07:38:29 2011
New Revision: 1196484

URL: http://svn.apache.org/viewvc?rev=1196484&view=rev
Log:
Added google custom search to the web site.

Added:
    logging/log4php/trunk/src/site/cse.xml
Modified:
    logging/log4php/trunk/build.xml
    logging/log4php/trunk/pom.xml
    logging/log4php/trunk/src/site/site.vm

Modified: logging/log4php/trunk/build.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/build.xml?rev=1196484&r1=1196483&r2=1196484&view=diff
==============================================================================
--- logging/log4php/trunk/build.xml (original)
+++ logging/log4php/trunk/build.xml Wed Nov  2 07:38:29 2011
@@ -175,6 +175,12 @@
 		</exec>
 	</target>
 	
+	<!-- Copies google custom engine definition to site folder. -->
+	<target name="google-search">
+		<mkdir dir="target/site" />
+		<copy file="src/site/cse.xml" todir="target/site" />
+	</target>
+	
 	<!-- Performs unit testing (requires phpunit). -->
 	<target name="unit-testing">
 		<mkdir dir="${surefire.report}" />

Modified: logging/log4php/trunk/pom.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/pom.xml?rev=1196484&r1=1196483&r2=1196484&view=diff
==============================================================================
--- logging/log4php/trunk/pom.xml (original)
+++ logging/log4php/trunk/pom.xml Wed Nov  2 07:38:29 2011
@@ -189,10 +189,11 @@
 					</execution>
 
 					<execution>
-						<id>api-docs</id>
+						<id>pre-site</id>
 						<phase>pre-site</phase>
 						<configuration>
 							<target>
+								<ant target="google-search" />
 								<ant target="api-docs" />
 							</target>
 						</configuration>

Added: logging/log4php/trunk/src/site/cse.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/cse.xml?rev=1196484&view=auto
==============================================================================
--- logging/log4php/trunk/src/site/cse.xml (added)
+++ logging/log4php/trunk/src/site/cse.xml Wed Nov  2 07:38:29 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<GoogleCustomizations>
+	<CustomSearchEngine id="2bsldg43-_4" creator="016746456102595360368" keywords="log4php
PHP logging framework Apache logger appender" language="en" encoding="UTF-8">
+		<Title>Apache log4php</Title>
+		<Description>Engine for searching the Apache log4php web site.</Description>
+		<Context>
+			<BackgroundLabels>
+				<Label name="_cse_2bsldg43-_4" mode="FILTER" />
+				<Label name="_cse_exclude_2bsldg43-_4" mode="ELIMINATE" />
+			</BackgroundLabels>
+		</Context>
+		<LookAndFeel nonprofit="true" />
+		<AdSense />
+		<EnterpriseAccount />
+		<commerce_search_security_setting />
+		<autocomplete_settings />
+	</CustomSearchEngine>
+	<Annotations>
+		<!-- Include log4php web -->
+		<Annotation about="logging.apache.org/log4php*">
+			<Label name="_cse_2bsldg43-_4" />
+		</Annotation>
+		<!-- Exclude code coverage -->
+		<Annotation about="logging.apache.org/log4php/coverage-report*">
+			<Label name="_cse_exclude_2bsldg43-_4" />
+		</Annotation>
+		<!-- Exclude api docs -->
+		<Annotation about="logging.apache.org/log4php/apidocs*">
+			<Label name="_cse_exclude_2bsldg43-_4" />
+		</Annotation>
+	</Annotations>
+</GoogleCustomizations>
\ No newline at end of file

Modified: logging/log4php/trunk/src/site/site.vm
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/site.vm?rev=1196484&r1=1196483&r2=1196484&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/site.vm (original)
+++ logging/log4php/trunk/src/site/site.vm Wed Nov  2 07:38:29 2011
@@ -511,6 +511,15 @@
         <div class="container-fluid">
           <a class="brand" href="$relativePath">$project.name</a>
           #links( $decoration.body.links )
+          <div class="pull-right">
+            <!-- Google CSE Search Box Begins  -->
+            <form id="cref" action="http://www.google.com/cse">
+              <input type="hidden" name="cref" value="$project.url/cse.xml" />
+              <input type="text" name="q" size="40" />
+              <input type="submit" name="sa" value="Search" />
+            </form>
+            <!-- Google CSE Search Box Ends -->
+          </div>
         </div>
       </div>
     </div>
@@ -553,7 +562,7 @@
     <div class="footer">
         <p>Copyright &#169;#copyright()All Rights Reserved.#publishDate( "bottom"
$decoration.publishDate $decoration.version )
         Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
Software License, Version 2.0</a>. 
-        Please read the <a href="$relativePath/privacy.html">Privacy policy</a></p>

+        Please read the <a href="$relativePath/privacy.html">Privacy policy</a></p>
         <p>Apache log4php, Apache, log4php, the Apache feather logo, the Apache Logging
Services project logo and the Built by 
         Maven logo are trademarks of The Apache Software Foundation.</p>
     </div>



Mime
View raw message