Skip to content

Commit 3739747

Browse files
committed
fix: correct XML root element from <project> to <site> in site.xml and remove unused head and footer sections
1 parent 62c9eaa commit 3739747

File tree

1 file changed

+2
-104
lines changed

1 file changed

+2
-104
lines changed

src/site/site.xml

Lines changed: 2 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
~ Copyright (c) Microsoft Corporation. All rights reserved.
44
-->
5-
<project xmlns="http://maven.apache.org/SITE/2.0.0"
5+
<site xmlns="http://maven.apache.org/SITE/2.0.0"
66
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
77
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
88
name="GitHub Copilot Community SDK :: Java">
@@ -25,108 +25,6 @@
2525
<ribbonOrientation>right</ribbonOrientation>
2626
<ribbonColor>gray</ribbonColor>
2727
</gitHub>
28-
<head>
29-
<!-- Cache control meta tags to prevent stale content -->
30-
<![CDATA[
31-
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
32-
<meta http-equiv="Pragma" content="no-cache"/>
33-
<meta http-equiv="Expires" content="0"/>
34-
<style>
35-
.version-banner {
36-
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
37-
color: #fff;
38-
padding: 8px 15px;
39-
text-align: center;
40-
font-size: 14px;
41-
position: relative;
42-
z-index: 1000;
43-
}
44-
.version-banner a {
45-
color: #58a6ff;
46-
text-decoration: none;
47-
}
48-
.version-banner a:hover {
49-
text-decoration: underline;
50-
}
51-
.version-banner select {
52-
margin-left: 10px;
53-
padding: 3px 8px;
54-
border-radius: 4px;
55-
border: 1px solid #444;
56-
background: #2d2d44;
57-
color: #fff;
58-
cursor: pointer;
59-
}
60-
.disclaimer-banner {
61-
background: #fff3cd;
62-
color: #856404;
63-
padding: 10px 15px;
64-
text-align: center;
65-
font-size: 13px;
66-
border-bottom: 1px solid #ffc107;
67-
}
68-
.snapshot-warning {
69-
background: #f8d7da;
70-
color: #721c24;
71-
padding: 8px 15px;
72-
text-align: center;
73-
font-size: 13px;
74-
border-bottom: 1px solid #f5c6cb;
75-
display: none;
76-
}
77-
</style>
78-
]]>
79-
</head>
80-
<footer>
81-
<![CDATA[
82-
<script>
83-
(function() {
84-
// Detect current version from URL path
85-
var path = window.location.pathname;
86-
var currentVersion = 'latest';
87-
var isSnapshot = false;
88-
89-
// Check if we're in a versioned path
90-
var versionMatch = path.match(/\/(\d+\.\d+\.\d+)\//);
91-
var snapshotMatch = path.match(/\/snapshot\//);
92-
93-
if (versionMatch) {
94-
currentVersion = versionMatch[1];
95-
} else if (snapshotMatch) {
96-
currentVersion = 'snapshot';
97-
isSnapshot = true;
98-
}
99-
100-
// Create disclaimer banner
101-
var disclaimerBanner = document.createElement('div');
102-
disclaimerBanner.className = 'disclaimer-banner';
103-
disclaimerBanner.innerHTML = '⚠️ <strong>Disclaimer:</strong> This is an <strong>unofficial, community-driven SDK</strong> and is <strong>not supported or endorsed by GitHub</strong>. Use at your own risk.';
104-
105-
// Create version banner
106-
var versionBanner = document.createElement('div');
107-
versionBanner.className = 'version-banner';
108-
versionBanner.innerHTML = '📚 Documentation version: <strong>' + currentVersion + '</strong> | ' +
109-
'<a href="../versions.html">View all versions</a> | ' +
110-
'<a href="../">Latest release</a>' +
111-
(currentVersion !== 'snapshot' ? ' | <a href="../snapshot/">Development (snapshot)</a>' : '');
112-
113-
// Create snapshot warning
114-
var snapshotWarning = document.createElement('div');
115-
snapshotWarning.className = 'snapshot-warning';
116-
snapshotWarning.innerHTML = '🚧 <strong>Development Documentation:</strong> You are viewing documentation for unreleased features. Some APIs may change before the next release.';
117-
if (isSnapshot) {
118-
snapshotWarning.style.display = 'block';
119-
}
120-
121-
// Insert banners at the top of the body
122-
var body = document.body;
123-
body.insertBefore(snapshotWarning, body.firstChild);
124-
body.insertBefore(versionBanner, body.firstChild);
125-
body.insertBefore(disclaimerBanner, body.firstChild);
126-
})();
127-
</script>
128-
]]>
129-
</footer>
13028
</fluidoSkin>
13129
</custom>
13230

@@ -167,4 +65,4 @@
16765
<menu ref="reports"/>
16866

16967
</body>
170-
</project>
68+
</site>

0 commit comments

Comments
 (0)