Archive previous documentation and generate v0.2.1 docs [skip ci]
This commit is contained in:
@@ -170,7 +170,6 @@
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
border: 1px solid #30363d;
|
border: 1px solid #30363d;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content pre code {
|
.content pre code {
|
||||||
@@ -178,44 +177,6 @@
|
|||||||
padding: 0;
|
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 {
|
.content a {
|
||||||
color: #58a6ff;
|
color: #58a6ff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -369,7 +330,6 @@
|
|||||||
<option value="current">v0.2.1 (Latest)</option>
|
<option value="current">v0.2.1 (Latest)</option>
|
||||||
<option value="v0.2.1">v0.2.1</option>
|
<option value="v0.2.1">v0.2.1</option>
|
||||||
<option value="v0.2.0">v0.2.0</option>
|
<option value="v0.2.0">v0.2.0</option>
|
||||||
<option value="v0.1.0">v0.1.0</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
3803
docs/versions/v0.2.1/api.html
Normal file
3803
docs/versions/v0.2.1/api.html
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user