Skip to content

feat: auto-detect OS on quickstart page with tabbed install instructions#20

Merged
sanity merged 4 commits intomainfrom
fix-19
Mar 29, 2026
Merged

feat: auto-detect OS on quickstart page with tabbed install instructions#20
sanity merged 4 commits intomainfrom
fix-19

Conversation

@sanity
Copy link
Copy Markdown
Contributor

@sanity sanity commented Mar 27, 2026

Summary

  • Replace static install instructions with a tabbed UI that auto-detects the visitor's OS
  • Windows: direct download link for freenet.exe setup wizard (from freenet-core#3680)
  • macOS/Linux: same curl | sh install script, now in OS-specific tabs
  • Accessible tab interface with ARIA roles, JS-free fallback (Linux tab shown by default)
  • Modern navigator.userAgentData API with navigator.platform legacy fallback

Closes #19

Test plan

  • Download link resolves (freenet.exe confirmed in v0.2.19 release)
  • Hugo renders shortcode correctly
  • Tabs switch on click
  • OS auto-detection selects correct tab
  • Content visible without JavaScript (Linux tab default)
  • Screen reader accessible (ARIA tablist/tab/tabpanel)

[AI-assisted - Claude]

sanity and others added 4 commits March 27, 2026 16:57
Replace the old `cargo install freenet` instructions with a direct
download link. Running freenet.exe now shows a setup wizard that handles
installation automatically (added in freenet-core#3680).

Closes #19

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds an os-install shortcode that detects the visitor's OS via
navigator.platform and shows the matching install tab by default.
All three options (Windows, macOS, Linux) remain accessible as tabs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add ARIA roles/attributes for screen reader support (tablist, tab, tabpanel)
- Default Linux tab active in HTML so content is visible without JS
- Use navigator.userAgentData with navigator.platform fallback
- Add aria-hidden to decorative SVG icons

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sanity sanity changed the title docs: update Windows quickstart to use setup wizard feat: auto-detect OS on quickstart page with tabbed install instructions Mar 29, 2026
@sanity sanity merged commit a9d7558 into main Mar 29, 2026
1 check passed
@sanity sanity deleted the fix-19 branch March 29, 2026 19:54
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.

docs: update quickstart page with Windows PowerShell installer

1 participant