Skip to content

Commit 7e2ce71

Browse files
committed
Revert "Add copy buttons to Quick Start section code commands"
This reverts commit d05efda.
1 parent d05efda commit 7e2ce71

1 file changed

Lines changed: 4 additions & 79 deletions

File tree

website/index.html

Lines changed: 4 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -127,45 +127,21 @@ <h2>Quick Start</h2>
127127
<div class="step-number">1</div>
128128
<div class="step-content">
129129
<h3>Install Axle</h3>
130-
<div style="position: relative; display: inline-block;">
131-
<code class="install-command" id="installAxle">
132-
<span class="prompt">$</span> pip install git+https://github.com/skpaul82/axle-cli.git
133-
134-
<button onclick="copyInstallAxle()" class="copy-button-install" aria-label="Copy install command" title="Copy install command" data-clipboard-text="$ pip install git+https://github.com/skpaul82/axle-cli.git">
135-
<i class="fas fa-copy"></i>
136-
</button>
137-
</code>
138-
</div>
130+
<code>pip install git+https://github.com/skpaul82/axle-cli.git</code>
139131
</div>
140132
</div>
141133
<div class="step">
142134
<div class="step-number">2</div>
143135
<div class="step-content">
144136
<h3>List Available Tools</h3>
145-
<div style="position: relative; display: inline-block;">
146-
<code class="install-command" id="listTools">
147-
<span class="prompt">$</span> axle list
148-
149-
<button onclick="copyListTools()" class="copy-button-install" aria-label="Copy list command" title="Copy list command" data-clipboard-text="$ axle list">
150-
<i class="fas fa-copy"></i>
151-
</button>
152-
</code>
153-
</div>
137+
<code>axle list</code>
154138
</div>
155139
</div>
156140
<div class="step">
157141
<div class="step-number">3</div>
158142
<div class="step-content">
159143
<h3>Run a Tool</h3>
160-
<div style="position: relative; display: inline-block;">
161-
<code class="install-command" id="runTool">
162-
<span class="prompt">$</span> axle run 1 "your prompt"
163-
164-
<button onclick="copyRunTool()" class="copy-button-install" aria-label="Copy run command" title="Copy run command" data-clipboard-text="$ axle run 1 \"your prompt\"">
165-
<i class="fas fa-copy"></i>
166-
</button>
167-
</code>
168-
</div>
144+
<code>axle run 1 "your prompt"</code>
169145
</div>
170146
</div>
171147
<div class="step">
@@ -311,7 +287,7 @@ <h4>Resources</h4>
311287
<li><a href="https://github.com/skpaul82/axle-cli/blob/main/docs/contributing.md">Contributing</a></li>
312288
</ul>
313289
</div>
314-
<div class="footer-section footer-section-3">
290+
<div class="footer-section">
315291
<h4>License</h4>
316292
<p>MIT License - Free for personal use. Commercial use requires permission.</p>
317293
<p style="margin-top: 0.5rem; font-size: 0.9rem;">For commercial use: <a href="mailto:hello@skpaul.me" style="color: #60a5fa;">hello@skpaul.me</a></p>
@@ -341,57 +317,6 @@ <h4>License</h4>
341317
console.error('Failed to copy:', err);
342318
});
343319
}
344-
345-
function copyInstallAxle() {
346-
const command = 'pip install git+https://github.com/skpaul82/axle-cli.git';
347-
navigator.clipboard.writeText(command).then(() => {
348-
const button = document.querySelector('#installAxle .copy-button-install');
349-
const originalHTML = button.innerHTML;
350-
button.innerHTML = '<i class="fas fa-check"></i>';
351-
button.style.background = 'rgba(16, 185, 129, 0.3)';
352-
353-
setTimeout(() => {
354-
button.innerHTML = originalHTML;
355-
button.style.background = 'rgba(255,255,255,0.2)';
356-
}, 2000);
357-
}).catch(err => {
358-
console.error('Failed to copy:', err);
359-
});
360-
}
361-
362-
function copyListTools() {
363-
const command = 'axle list';
364-
navigator.clipboard.writeText(command).then(() => {
365-
const button = document.querySelector('#listTools .copy-button-install');
366-
const originalHTML = button.innerHTML;
367-
button.innerHTML = '<i class="fas fa-check"></i>';
368-
button.style.background = 'rgba(16, 185, 129, 0.3)';
369-
370-
setTimeout(() => {
371-
button.innerHTML = originalHTML;
372-
button.style.background = 'rgba(255,255,255,0.2)';
373-
}, 2000);
374-
}).catch(err => {
375-
console.error('Failed to copy:', err);
376-
});
377-
}
378-
379-
function copyRunTool() {
380-
const command = 'axle run 1 "your prompt"';
381-
navigator.clipboard.writeText(command).then(() => {
382-
const button = document.querySelector('#runTool .copy-button-install');
383-
const originalHTML = button.innerHTML;
384-
button.innerHTML = '<i class="fas fa-check"></i>';
385-
button.style.background = 'rgba(16, 185, 129, 0.3)';
386-
387-
setTimeout(() => {
388-
button.innerHTML = originalHTML;
389-
button.style.background = 'rgba(255,255,255,0.2)';
390-
}, 2000);
391-
}).catch(err => {
392-
console.error('Failed to copy:', err);
393-
});
394-
}
395320
</script>
396321
</body>
397322
</html>

0 commit comments

Comments
 (0)