Archive previous documentation and generate v0.2.2 docs [skip ci]

This commit is contained in:
github-actions[bot]
2025-11-17 06:56:31 +00:00
parent e5e7b55709
commit 08a25f2d29
2 changed files with 3 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlexLöve v0.2.1 - API Reference</title>
<title>FlexLöve v0.2.2 - API Reference</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css">
<style>
* {
@@ -321,13 +321,13 @@
<div class="container">
<nav class="sidebar">
<div class="sidebar-header">
<h2>FlexLöve <span style="font-size: 0.6em; color: #8b949e;">v0.2.1</span></h2>
<h2>FlexLöve <span style="font-size: 0.6em; color: #8b949e;">v0.2.2</span></h2>
<a href="index.html">← Back to Home</a>
<div class="version-selector">
<select id="version-dropdown" onchange="window.versionNavigate(this.value)">
<option value="">📚 Switch Version</option>
<option value="current">v0.2.1 (Latest)</option>
<option value="current">v0.2.2 (Latest)</option>
<option value="v0.2.1">v0.2.1</option>
<option value="v0.2.0">v0.2.0</option>
</select>

View File

@@ -170,7 +170,6 @@
overflow-x: auto;
margin: 1rem 0;
border: 1px solid #30363d;
position: relative;
}
.content pre code {
@@ -178,44 +177,6 @@
padding: 0;
}
.copy-button {
position: absolute;
top: 8px;
right: 8px;
background-color: #21262d;
color: #8b949e;
border: 1px solid #30363d;
border-radius: 6px;
padding: 6px 12px;
font-size: 12px;
cursor: pointer;
opacity: 0;
transition: all 0.2s;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.content pre:hover .copy-button {
opacity: 1;
}
.copy-button:hover {
background-color: #30363d;
border-color: #58a6ff;
color: #c9d1d9;
}
.copy-button:active {
background-color: #238636;
border-color: #238636;
color: #ffffff;
}
.copy-button.copied {
background-color: #238636;
border-color: #238636;
color: #ffffff;
}
.content a {
color: #58a6ff;
text-decoration: none;
@@ -369,7 +330,6 @@
<option value="current">v0.2.1 (Latest)</option>
<option value="v0.2.1">v0.2.1</option>
<option value="v0.2.0">v0.2.0</option>
<option value="v0.1.0">v0.1.0</option>
</select>
</div>
@@ -3768,36 +3728,6 @@ This ensures Renderer and StateManager can access scroll state from Element</p>
}
}
};
// Add copy buttons to code blocks
document.querySelectorAll('pre code').forEach((codeBlock) => {
const pre = codeBlock.parentElement;
const button = document.createElement('button');
button.className = 'copy-button';
button.textContent = 'Copy';
button.title = 'Copy to clipboard';
button.addEventListener('click', async () => {
const code = codeBlock.textContent;
try {
await navigator.clipboard.writeText(code);
button.textContent = 'Copied!';
button.classList.add('copied');
setTimeout(() => {
button.textContent = 'Copy';
button.classList.remove('copied');
}, 2000);
} catch (err) {
console.error('Failed to copy:', err);
button.textContent = 'Failed';
setTimeout(() => {
button.textContent = 'Copy';
}, 2000);
}
});
pre.appendChild(button);
});
</script>
</body>
</html>