116 lines
3.9 KiB
HTML
116 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>simple-starter Spring Boot 4.1.0 升级使用样例</title>
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
<style>
|
|
:root {
|
|
--bg: #ffffff;
|
|
--fg: #24292f;
|
|
--fg-muted: #57606a;
|
|
--border: #d0d7de;
|
|
--accent: #0969da;
|
|
--code-bg: #f6f8fa;
|
|
--table-stripe: #f6f8fa;
|
|
--blockquote-border: #d0d7de;
|
|
--blockquote-bg: #f6f8fa;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Helvetica, Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--fg);
|
|
background: var(--bg);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.container {
|
|
max-width: 980px;
|
|
margin: 0 auto;
|
|
padding: 40px 32px 80px;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin-top: 32px;
|
|
margin-bottom: 16px;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
}
|
|
h1 { font-size: 2em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
|
|
h2 { font-size: 1.5em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
|
|
h3 { font-size: 1.25em; }
|
|
h4 { font-size: 1em; }
|
|
p { margin-top: 0; margin-bottom: 16px; }
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
code {
|
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
font-size: 85%;
|
|
padding: 0.2em 0.4em;
|
|
background: var(--code-bg);
|
|
border-radius: 6px;
|
|
}
|
|
pre {
|
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
font-size: 85%;
|
|
padding: 16px;
|
|
overflow: auto;
|
|
line-height: 1.45;
|
|
background: var(--code-bg);
|
|
border-radius: 6px;
|
|
margin-bottom: 16px;
|
|
}
|
|
pre code {
|
|
padding: 0;
|
|
background: none;
|
|
font-size: 100%;
|
|
}
|
|
blockquote {
|
|
margin: 0 0 16px 0;
|
|
padding: 0 16px;
|
|
color: var(--fg-muted);
|
|
border-left: 4px solid var(--blockquote-border);
|
|
background: var(--blockquote-bg);
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin-bottom: 16px;
|
|
display: block;
|
|
overflow: auto;
|
|
}
|
|
table th, table td {
|
|
padding: 8px 13px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
table th { font-weight: 600; background: var(--code-bg); }
|
|
table tr:nth-child(2n) { background: var(--table-stripe); }
|
|
ul, ol { margin-top: 0; margin-bottom: 16px; padding-left: 2em; }
|
|
li { margin-bottom: 4px; }
|
|
hr {
|
|
height: 1px;
|
|
border: none;
|
|
background: var(--border);
|
|
margin: 32px 0;
|
|
}
|
|
strong { font-weight: 600; }
|
|
.loading { text-align: center; padding: 60px; color: var(--fg-muted); font-size: 1.2em; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div id="content" class="loading">Loading document...</div>
|
|
</div>
|
|
<script>
|
|
fetch('upgrade-guide.md')
|
|
.then(response => response.text())
|
|
.then(markdown => {
|
|
document.getElementById('content').innerHTML = marked.parse(markdown);
|
|
})
|
|
.catch(err => {
|
|
document.getElementById('content').innerHTML = '<p style="color:red">Failed to load document: ' + err.message + '</p>';
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|