Skip to content

Commit 0a3f349

Browse files
committed
feat: add version compatibility documentation
1 parent 538a93d commit 0a3f349

3 files changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
body {
2+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
3+
line-height: 1.6;
4+
margin: 0;
5+
padding: 20px;
6+
background-color: #f5f5f5;
7+
}
8+
9+
.container {
10+
max-width: 1200px;
11+
margin: 0 auto;
12+
background-color: white;
13+
padding: 20px;
14+
border-radius: 8px;
15+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
16+
}
17+
18+
h1 {
19+
color: #333;
20+
text-align: center;
21+
margin-bottom: 30px;
22+
}
23+
24+
.version-table {
25+
overflow-x: auto;
26+
}
27+
28+
table {
29+
width: 100%;
30+
border-collapse: collapse;
31+
margin-top: 20px;
32+
}
33+
34+
th, td {
35+
padding: 12px 15px;
36+
text-align: left;
37+
border-bottom: 1px solid #ddd;
38+
}
39+
40+
th {
41+
background-color: #f8f9fa;
42+
font-weight: 600;
43+
}
44+
45+
tr:hover {
46+
background-color: #f5f5f5;
47+
}
48+
49+
@media (max-width: 768px) {
50+
.container {
51+
padding: 10px;
52+
}
53+
54+
th, td {
55+
padding: 8px 10px;
56+
}
57+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Mendix Native Template Version Compatibility</title>
7+
<link rel="stylesheet" href="version-compatibility.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<h1>Mendix Native Template Version Compatibility</h1>
12+
<div class="version-table">
13+
<table>
14+
<thead>
15+
<tr>
16+
<th>Mendix Studio Pro Version</th>
17+
<th>Min Native Template Version</th>
18+
<th>Max Native Template Version</th>
19+
</tr>
20+
</thead>
21+
<tbody id="version-data">
22+
<!-- Data will be populated by JavaScript -->
23+
</tbody>
24+
</table>
25+
</div>
26+
</div>
27+
<script src="version-compatibility.js"></script>
28+
</body>
29+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
document.addEventListener('DOMContentLoaded', function() {
2+
fetch('../../mendix_version.json')
3+
.then(response => response.json())
4+
.then(data => {
5+
const tbody = document.getElementById('version-data');
6+
Object.entries(data).forEach(([mendixVersion, versions]) => {
7+
const row = document.createElement('tr');
8+
row.innerHTML = `
9+
<td>${mendixVersion}</td>
10+
<td>${versions.min}</td>
11+
<td>${versions.max}</td>
12+
`;
13+
tbody.appendChild(row);
14+
});
15+
})
16+
.catch(error => {
17+
console.error('Error loading version data:', error);
18+
document.getElementById('version-data').innerHTML = `
19+
<tr>
20+
<td colspan="3" style="text-align: center; color: red;">
21+
Error loading version data. Please try again later.
22+
</td>
23+
</tr>
24+
`;
25+
});
26+
});

0 commit comments

Comments
 (0)