Skip to content

📝 docs: add installation section to landing page#1454

Merged
harehare merged 3 commits intomainfrom
docs/add-installation-section
Mar 16, 2026
Merged

📝 docs: add installation section to landing page#1454
harehare merged 3 commits intomainfrom
docs/add-installation-section

Conversation

@harehare
Copy link
Copy Markdown
Owner

Add tabbed installation instructions with Linux, macOS, and Windows options. Includes OS auto-detection to show the relevant tab by default, and copy-to-clipboard buttons for each install command.

Add tabbed installation instructions with Linux, macOS, and Windows
options. Includes OS auto-detection to show the relevant tab by default,
and copy-to-clipboard buttons for each install command.
Copilot AI review requested due to automatic review settings March 16, 2026 12:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a tabbed installation section to the landing page with OS-specific install commands (Linux, macOS, Windows), auto-detection of the user's OS, and copy-to-clipboard buttons.

Changes:

  • Added CSS styles for the installation box, tabs, code blocks, and copy buttons
  • Added HTML for the installation section with three platform tabs and a nav link
  • Added JavaScript for tab switching with OS auto-detection and clipboard copy functionality

Comment on lines +1107 to +1113
navigator.clipboard.writeText(code).then(() => {
const originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(() => {
button.innerText = originalText;
}, 2000);
});
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings March 16, 2026 12:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a tabbed installation section to the landing page with OS-specific install commands (Linux, macOS, Windows), auto-detection of the user's OS, and copy-to-clipboard buttons.

Changes:

  • Added CSS styles for the installation tabs, code blocks, and copy buttons
  • Added HTML for the installation section with three platform tabs and a nav link
  • Added JavaScript for tab switching with OS auto-detection and clipboard copy functionality

Comment on lines +1106 to +1112
navigator.clipboard.writeText(code).then(() => {
const originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(() => {
button.innerText = originalText;
}, 2000);
});
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings March 16, 2026 12:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a tabbed installation section to the landing page with OS-specific install commands for Linux, macOS, and Windows, including auto-detection of the user's OS and copy-to-clipboard buttons.

Changes:

  • Added CSS styles for the installation box, tabs, code blocks, and copy buttons
  • Added HTML for the installation section with three platform tabs and a nav link
  • Added JavaScript for tab switching with OS auto-detection and clipboard copy functionality

Comment on lines +1106 to +1112
navigator.clipboard.writeText(code).then(() => {
const originalText = button.innerText;
button.innerText = "Copied!";
setTimeout(() => {
button.innerText = originalText;
}, 2000);
});
Comment on lines +1128 to +1137
if (platform.includes("win") || /Windows/.test(userAgent)) {
defaultTab = "windows";
} else if (
platform.includes("mac") ||
/Macintosh|MacIntel|iPhone|iPad|iPod/.test(userAgent)
) {
defaultTab = "macos";
} else if (platform.includes("linux") || /Linux/.test(userAgent)) {
defaultTab = "linux";
}
Comment on lines +933 to +935
<code>Invoke-WebRequest -Uri https://github.com/harehare/mq/releases/latest/download/mq-x86_64-pc-windows-msvc.exe -OutFile "$env:USERPROFILE\bin\mq.exe"</code>
<button class="copy-button" onclick="copyCode(this)">Copy</button>
</div>
@harehare harehare merged commit 42be5b1 into main Mar 16, 2026
8 checks passed
@harehare harehare deleted the docs/add-installation-section branch March 16, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants