You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/13 12:37:50 UTC

[commons-parent] 01/02: Removed the XHTML to load prettyPrint().

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

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-parent.git

commit 6a160ff313a3a9a597e16bbfd8f5d4876139ab53
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Dec 13 12:25:18 2019 +0000

    Removed the <head> XHTML to load prettyPrint().
    
    This action is performed in the site.js script that is included with
    commons-skin-4.2.
---
 src/changes/changes.xml |  1 +
 src/site/site.xml       | 14 --------------
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index a1a4127..284e203 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -62,6 +62,7 @@ The <action> type attribute can be add,update,fix,remove.
     <body>
 
         <release version="50" date="MM-DD-YYYY" description="TBD">
+            <action type="update" dev="aherbert">site.xml: Removed custom head element. PrettyPrint functionality is loaded by commons-skin-4.2.</action>
             <action type="update" dev="aherbert">site.xml: commons-skin 4.1 -> 4.2</action>
             <action type="update" dev="aherbert">site.xml: Removed CDATA tag around the custom footer element</action>
             <action type="update" dev="aherbert">commons.wagon-ssh.version 3.3.3 -> 3.3.4</action>
diff --git a/src/site/site.xml b/src/site/site.xml
index 3cb8918..7cd022a 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -57,20 +57,6 @@
   </skin>
 
   <body>
-    <head>
-      <![CDATA[
-      <!-- Better display of <source> code sections -->
-      <!-- Note: the $relativePath reference is resolved by the template -->
-      <link rel="stylesheet" href="$relativePath/css/prettify.css" type="text/css" media="all" />
-      <script type="text/javascript" src="$relativePath/js/prettify.js"></script>
-      <script type="text/javascript">
-          window.onload=function() {
-              prettyPrint();
-          }
-      </script>
-      ]]>
-    </head>
-
     <!-- N.B. body links are automatically inherited -->
     <links>
       <item name="ApacheCon" href="http://www.apachecon.com/"/>