📝 docs: add installation section to landing page#1454
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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]>
Contributor
There was a problem hiding this comment.
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]>
Contributor
There was a problem hiding this comment.
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.