update docs

This commit is contained in:
Harvey Zack committed 2023-04-29 23:04:12 +08:00
1 parent ab57157371
commit 17f6d46fe0
103 files changed
+1780 -1753

No files matched your search

@@ -2,7 +2,7 @@
if (window['run-code-init']) return;
window['run-code-init'] = true;
document.addEventListener('click', (event) => {
if (event.target.className === 'run-code') {
if (event.target.className === 'run-code' || event.target.getAttribute('classname') === 'run-code') {
event.preventDefault();
const codeElement = event.target.nextElementSibling.querySelector('pre code');
if (codeElement) {
@@ -1,4 +1,4 @@
.run-code {
.run-code, [classname="run-code"] {
display: inline-block;
padding: 3px 7px;
color: #fff;