Skip to content

Commit 6467049

Browse files
committed
Normalize main menu on the website
Use XML Schema to validate XML site templates
1 parent 9fb8ee2 commit 6467049

File tree

4 files changed

+39
-33
lines changed

4 files changed

+39
-33
lines changed

src/site/site.xml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@
1515
See the License for the specific language governing permissions and
1616
limitations under the License.
1717
-->
18-
<project name="Codec">
19-
<bannerRight>
20-
<name>Apache Commons Codec</name>
21-
<src>/images/logo.png</src>
22-
<href>/index.html</href>
23-
</bannerRight>
24-
25-
<body>
26-
<menu name="Codec">
27-
<item name="Overview" href="/index.html"/>
28-
<item name="Download" href="https://commons.apache.org/codec/download_codec.cgi"/>
29-
<item name="Users guide" href="/userguide.html"/>
30-
<item name="Javadoc Current" href="/apidocs/index.html"/>
31-
<item name="Javadoc Archive" href="https://javadoc.io/doc/commons-codec/commons-codec"/>
32-
</menu>
33-
34-
<menu name="Development">
35-
<item name="Release Notes" href="/changes.html"/>
36-
<item name="Mailing Lists" href="/mail-lists.html"/>
37-
<item name="Issue Tracking" href="/issue-tracking.html"/>
38-
<item name="Source Repository" href="/scm.html"/>
39-
<item name="Javadoc current" href="/apidocs/index.html"/>
40-
</menu>
41-
42-
</body>
43-
44-
</project>
18+
<site xmlns="http://maven.apache.org/SITE/2.0.0"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 http://maven.apache.org/xsd/site-2.0.0.xsd"
21+
name="Apache Commons Codec">
22+
<bannerRight name="Commons Codec" href="/index.html">
23+
<image src="/images/logo.png"/>
24+
</bannerRight>
25+
<body>
26+
<menu name="Commons Codec">
27+
<!-- Start: For all components. -->
28+
<item name="About" href="index.html" />
29+
<item name="Asking Questions" href="/mail-lists.html" />
30+
<item name="Release History" href="/changes.html" />
31+
<item name="Issue Tracking" href="/issue-management.html" />
32+
<item name="Dependency Management" href="/dependency-info.html" />
33+
<item name="Javadoc" href="apidocs/index.html" />
34+
<item name="Javadoc Archive" href="https://javadoc.io/doc/commons-codec/commons-codec" />
35+
<item name="Sources" href="/scm.html" />
36+
<item name="Security" href="security.html" />
37+
<item name="License" href="https://www.apache.org/licenses/LICENSE-2.0" />
38+
<item name="Code of Conduct" href="https://www.apache.org/foundation/policies/conduct.html" />
39+
<item name="Download" href="https://commons.apache.org/codec/download_codec.cgi" />
40+
<!-- End: For all components. -->
41+
<item name="Users guide" href="/userguide.html"/>
42+
</menu>
43+
</body>
44+
</site>

src/site/xdoc/index.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515
See the License for the specific language governing permissions and
1616
limitations under the License.
1717
-->
18-
<document>
18+
<document xmlns="http://maven.apache.org/XDOC/2.0"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
1921
<properties>
2022
<title>Home</title>
2123
<author email="[email protected]">Commons Documentation Team</author>

src/site/xdoc/proposal.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
-->
1818

19-
<document>
19+
<document xmlns="http://maven.apache.org/XDOC/2.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
2022
<properties>
2123
<title>Apache Commons-Codec: Proposal</title>
2224
</properties>
@@ -97,15 +99,15 @@ limitations under the License.
9799

98100
<p>
99101
The initial committers on the Codec component shall be as follows:
100-
<ul>
102+
</p>
103+
<ul>
101104
<li><a href="mailto:[email protected]">Scott Sanders</a></li>
102105
<li><a href="mailto:[email protected]">Henri Yandell</a></li>
103106
<li><a href="mailto:[email protected]">Rodney Waldhoff</a></li>
104107
<li><a href="mailto:[email protected]">Daniel Rall</a></li>
105108
<li><a href="mailto:[email protected]">Jon S. Stevens</a></li>
106109
<li><a href="mailto:[email protected]">Tim O'Brien</a></li>
107-
</ul>
108-
</p>
110+
</ul>
109111

110112
</subsection>
111113
</section>

src/site/xdoc/userguide.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
1010
OF ANY KIND, either express or implied. See the License for the specific
1111
language governing permissions and limitations under the License. -->
12-
<document>
12+
<document xmlns="http://maven.apache.org/XDOC/2.0"
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
1315
<properties>
1416
<title>Commons Codec - User guide</title>
1517
<author email="[email protected]">Commons Documentation Team</author>

0 commit comments

Comments
 (0)