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

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


The following commit(s) were added to refs/heads/master by this push:
     new 64670498 Normalize main menu on the website
64670498 is described below

commit 646704985a76c15a04f524d0a3f7dbfa42544a0e
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jan 21 07:53:23 2025 -0500

    Normalize main menu on the website
    
    Use XML Schema to validate XML site templates
---
 src/site/site.xml           | 54 ++++++++++++++++++++++-----------------------
 src/site/xdoc/index.xml     |  4 +++-
 src/site/xdoc/proposal.xml  | 10 +++++----
 src/site/xdoc/userguide.xml |  4 +++-
 4 files changed, 39 insertions(+), 33 deletions(-)

diff --git a/src/site/site.xml b/src/site/site.xml
index 065b168d..2894e193 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -15,30 +15,30 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-<project name="Codec">
-    <bannerRight>
-        <name>Apache Commons Codec</name>
-        <src>/images/logo.png</src>
-        <href>/index.html</href>
-    </bannerRight>
-
-    <body>
-        <menu name="Codec">
-            <item name="Overview"        href="/index.html"/>
-            <item name="Download"        
href="https://commons.apache.org/codec/download_codec.cgi"/>
-            <item name="Users guide"     href="/userguide.html"/>
-            <item name="Javadoc Current" href="/apidocs/index.html"/>
-            <item name="Javadoc Archive" 
href="https://javadoc.io/doc/commons-codec/commons-codec"/>
-        </menu>
-
-        <menu name="Development">
-            <item name="Release Notes"     href="/changes.html"/>
-            <item name="Mailing Lists"     href="/mail-lists.html"/>
-            <item name="Issue Tracking"    href="/issue-tracking.html"/>
-            <item name="Source Repository" href="/scm.html"/>
-            <item name="Javadoc current"   href="/apidocs/index.html"/>
-        </menu>
-
-    </body>
-
-</project>
+<site xmlns="http://maven.apache.org/SITE/2.0.0"; 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 
http://maven.apache.org/xsd/site-2.0.0.xsd";
+  name="Apache Commons Codec">
+  <bannerRight name="Commons Codec" href="/index.html">
+    <image src="/images/logo.png"/>
+  </bannerRight>
+  <body>
+    <menu name="Commons Codec">
+      <!-- Start: For all components. -->
+      <item name="About" href="index.html" />
+      <item name="Asking Questions" href="/mail-lists.html" />
+      <item name="Release History" href="/changes.html" />
+      <item name="Issue Tracking" href="/issue-management.html" />
+      <item name="Dependency Management" href="/dependency-info.html" />
+      <item name="Javadoc" href="apidocs/index.html" />
+      <item name="Javadoc Archive" 
href="https://javadoc.io/doc/commons-codec/commons-codec"; />
+      <item name="Sources" href="/scm.html" />
+      <item name="Security" href="security.html" />
+      <item name="License" href="https://www.apache.org/licenses/LICENSE-2.0"; 
/>
+      <item name="Code of Conduct" 
href="https://www.apache.org/foundation/policies/conduct.html"; />
+      <item name="Download" 
href="https://commons.apache.org/codec/download_codec.cgi"; />
+      <!-- End: For all components. -->
+      <item name="Users guide" href="/userguide.html"/>
+    </menu>
+  </body>
+</site>
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 9373b5a8..5ed1d1d1 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -15,7 +15,9 @@ 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.
 -->
-<document>
+<document xmlns="http://maven.apache.org/XDOC/2.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 
http://maven.apache.org/xsd/xdoc-2.0.xsd";>
  <properties>
   <title>Home</title>
   <author email="d...@commons.apache.org">Commons Documentation Team</author>
diff --git a/src/site/xdoc/proposal.xml b/src/site/xdoc/proposal.xml
index 4b2b857f..c68d5a89 100644
--- a/src/site/xdoc/proposal.xml
+++ b/src/site/xdoc/proposal.xml
@@ -16,7 +16,9 @@ See the License for the specific language governing 
permissions and
 limitations under the License.
 -->
 
-<document>
+<document xmlns="http://maven.apache.org/XDOC/2.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 
http://maven.apache.org/xsd/xdoc-2.0.xsd";>
  <properties>
   <title>Apache Commons-Codec: Proposal</title>
  </properties>
@@ -97,15 +99,15 @@ limitations under the License.
 
   <p>
    The initial committers on the Codec component shall be as follows:
-   <ul>
+  </p>
+  <ul>
     <li><a href="mailto:sand...@apache.org";>Scott Sanders</a></li>
     <li><a href="mailto:bay...@apache.org";>Henri Yandell</a></li>
     <li><a href="mailto:rwaldh...@apache.org";>Rodney Waldhoff</a></li>
     <li><a href="mailto:d...@finemaltcoding.com";>Daniel Rall</a></li>
     <li><a href="mailto:j...@collab.net";>Jon S. Stevens</a></li>
     <li><a href="mailto:tobr...@apache.org";>Tim O'Brien</a></li>
-   </ul>
-  </p>
+  </ul>
 
  </subsection>
 </section>
diff --git a/src/site/xdoc/userguide.xml b/src/site/xdoc/userguide.xml
index 6ff2f6dd..e1c93c90 100644
--- a/src/site/xdoc/userguide.xml
+++ b/src/site/xdoc/userguide.xml
@@ -9,7 +9,9 @@
   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. -->
-<document>
+<document xmlns="http://maven.apache.org/XDOC/2.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 
http://maven.apache.org/xsd/xdoc-2.0.xsd";>
   <properties>
     <title>Commons Codec - User guide</title>
     <author email="d...@commons.apache.org">Commons Documentation Team</author>

Reply via email to