-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify windows setup instructions #2114
Conversation
WalkthroughThe pull request introduces significant changes to the documentation and routing configuration for the Windows Tailscale client. Key modifications include the removal of registry-related content, the integration of command-line instructions for configuration, and the restructuring of documentation sections for improved clarity. Additionally, specific routing endpoints related to Windows registry configuration have been removed, reflecting a shift in focus away from this functionality. Changes
Assessment against linked issues
Possibly related PRs
Poem
Tip New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Outside diff range, codebase verification and nitpick comments (2)
docs/windows-client.md (1)
Line range hint
35-55
: Comprehensive troubleshooting instructions for failing node registration.The detailed steps provided in this section offer a clear guide for users to troubleshoot and resolve issues related to node registration. This is crucial for maintaining a reliable connection.
Consider adding links to additional resources or support pages that could provide further assistance to users facing complex issues.
Tools
LanguageTool
[grammar] ~55-~55: “Windows” (operating system by Microsoft) is a proper noun and needs to be capitalized.
Context: ... fresh setup) 4. Start Tailscale on the windows machine and retry the login.(A_WINDOWS)
hscontrol/platform_config.go (1)
Lingering Reference to Removed Functionality
There is still a reference to "WindowsRegConfig" in the
hscontrol/platform_config.go
file. This suggests that the removal of the Windows registry configuration functionality might not be entirely complete. Please review the code to remove or update this lingering reference to ensure consistency and prevent potential confusion.
- File:
hscontrol/platform_config.go
- Reference:
Str("handler", "WindowsRegConfig")
Analysis chain
Line range hint
1-100
: Approval of the removal of Windows registry configuration functionality.The removal of this functionality simplifies the codebase and aligns with the PR's objectives to streamline the setup process. This change reduces maintenance and potential errors associated with registry modifications.
Verify that no other parts of the application rely on the removed functionality to ensure that this change does not introduce any unintended issues.
Run the following script to verify that no other parts of the application rely on the removed functionality:
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that no other parts of the application rely on the removed Windows registry configuration functionality. # Test: Search for references to the removed functionality. Expect: No occurrences. rg --type go 'WindowsRegConfig|WindowsRegistryConfig|windowsRegTemplate'Length of output: 142
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
docs/images/windows-registry.png
is excluded by!**/*.png
Files selected for processing (5)
- docs/windows-client.md (2 hunks)
- hscontrol/app.go (1 hunks)
- hscontrol/platform_config.go (3 hunks)
- hscontrol/templates/windows.html (1 hunks)
- mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (2)
- hscontrol/app.go
- mkdocs.yml
Additional context used
Markdownlint
docs/windows-client.md
17-17: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
LanguageTool
docs/windows-client.md
[grammar] ~55-~55: “Windows” (operating system by Microsoft) is a proper noun and needs to be capitalized.
Context: ... fresh setup) 4. Start Tailscale on the windows machine and retry the login.(A_WINDOWS)
Additional comments not posted (3)
hscontrol/templates/windows.html (1)
29-36
: Clear and concise download instructions.The addition of a direct download link for Tailscale simplifies the user's journey by providing a straightforward method to obtain the software. This change enhances the clarity and usability of the instructions.
docs/windows-client.md (2)
7-9
: Updated installation instructions are straightforward and user-friendly.The direct link to download the official Windows client simplifies the installation process, making it easier for users to start with Tailscale. This change is well-aligned with the PR's objectives.
25-33
: Valuable addition of 'Unattended mode' troubleshooting instructions.The new subsection provides clear and practical steps for users who need to keep Tailscale running continuously. This addition enhances the document's utility by addressing a common operational need.
Force-pushed and added the infobox about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
docs/images/windows-registry.png
is excluded by!**/*.png
Files selected for processing (5)
- docs/windows-client.md (2 hunks)
- hscontrol/app.go (1 hunks)
- hscontrol/platform_config.go (3 hunks)
- hscontrol/templates/windows.html (1 hunks)
- mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- mkdocs.yml
Files skipped from review as they are similar to previous changes (2)
- hscontrol/app.go
- hscontrol/platform_config.go
Additional context used
LanguageTool
docs/windows-client.md
[style] ~13-~13: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ...it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...(EN_EXCESSIVE_EXCLAMATION)
Markdownlint
docs/windows-client.md
23-23: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
23-23: Expected: indented; Actual: fenced
Code block style(MD046, code-block-style)
Additional comments not posted (7)
hscontrol/templates/windows.html (2)
29-36
: Streamlined download instructions are clear and concise.The addition of a direct download link for Tailscale simplifies the initial setup process for users. This change makes it easier for users to find and install the necessary software without navigating through multiple pages or instructions.
40-43
: Simplified command line instructions enhance usability.The new command line instructions provide a clear and direct method for users to connect their Tailscale client with headscale. This approach is less error-prone and more maintainable than previous registry-based methods.
Consider adding a brief explanation or tooltip within the HTML to help less experienced users understand the purpose and usage of the command line.
docs/windows-client.md (5)
7-9
: Clear installation instructions.The direct link to download the official Windows client is a significant improvement, making it easier for users to start the installation process immediately. This change is aligned with the PR's objective to simplify the setup instructions.
12-17
: Enhanced configuration instructions.The new section on configuring the headscale URL is well-structured and informative, providing users with clear guidance on how to connect their Windows device. The use of an exclamation mark in the info box is appropriate here, drawing attention to important instructions.
Tools
LanguageTool
[style] ~13-~13: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ...it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...(EN_EXCESSIVE_EXCLAMATION)
20-25
: Command line configuration instructions are clear and concise.The shift from registry edits to a command line approach simplifies the configuration process and reduces potential errors. This change is beneficial for both new and experienced users.
Consider adding examples of common
headscale
URLs or scenarios to further assist users in understanding how to apply these instructions in their specific setups.Tools
Markdownlint
23-23: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
23-23: Expected: indented; Actual: fenced
Code block style(MD046, code-block-style)
31-37
: Detailed instructions for enabling Unattended mode.The addition of the "Unattended mode" section is a valuable update, providing users with steps to keep Tailscale running continuously. This is particularly useful for those who need constant connectivity without manual re-login.
58-61
: Important troubleshooting steps outlined.The detailed steps for resetting and reconnecting Tailscale are crucial for troubleshooting common issues. These instructions are clear and should help users effectively resolve connection problems.
Looks like the prettier linter got a bit unhappy, could you fix that and then I'll merge it |
* Simplify /windows to the bare minimum. Also remove the /windows/tailscale.reg endpoint as its generated file is no longer valid for current Tailscale versions. * Update and simplify the windows documentation accordingly. * Add a "Unattended mode" section to the troubleshooting section explaining how to enable "Unattended mode" in the via the Tailscale tray icon. * Add infobox about /windows to the docs Tested on Windows 10, 22H2 with Tailscale 1.72.0 Replaces: juanfont#1995 See: juanfont#2096
pushed, thx for the hint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
docs/images/windows-registry.png
is excluded by!**/*.png
Files selected for processing (5)
- docs/windows-client.md (2 hunks)
- hscontrol/app.go (1 hunks)
- hscontrol/platform_config.go (3 hunks)
- hscontrol/templates/windows.html (1 hunks)
- mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- mkdocs.yml
Files skipped from review as they are similar to previous changes (2)
- hscontrol/app.go
- hscontrol/templates/windows.html
Additional context used
LanguageTool
docs/windows-client.md
[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ... it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...(EN_EXCESSIVE_EXCLAMATION)
Markdownlint
docs/windows-client.md
21-21: null
Fenced code blocks should have a language specified(MD040, fenced-code-language)
21-21: Expected: indented; Actual: fenced
Code block style(MD046, code-block-style)
Additional comments not posted (5)
docs/windows-client.md (4)
7-9
: Installation instructions are clear.The direct link to download the Windows client simplifies the user's initial setup process.
11-19
: Command-line configuration is streamlined and effective.The shift from registry edits to a command-line approach simplifies the configuration process and reduces potential errors. This change is beneficial for both new and experienced users.
Regarding the static analysis hint about exclamation marks, it appears to be a false positive as the exclamation mark usage here is minimal and appropriate for the context.
Tools
LanguageTool
[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ... it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...(EN_EXCESSIVE_EXCLAMATION)
27-38
: Troubleshooting section enhanced with 'Unattended mode'.The addition of the 'Unattended mode' subsection is a significant improvement, providing clear instructions for users who require Tailscale to run continuously. This addresses a common user need and enhances the documentation's utility.
Line range hint
40-61
: Detailed guidance provided for 'Failing node registration'.The subsection offers comprehensive troubleshooting steps for common issues, enhancing the documentation's effectiveness in helping users resolve specific problems.
hscontrol/platform_config.go (1)
Line range hint
1-100
: Simplification of Windows configuration aligns with PR objectives.The removal of Windows registry-related functions and the simplification of the Windows configuration message are in line with the PR's aim to streamline the setup process. The remaining functions, related to Apple configurations, continue to function as intended, ensuring that platform-specific configurations are handled appropriately.
/windows
to the bare minimum. Also remove the/windows/tailscale.reg
endpoint as its generated file is no longer valid for current Tailscale versions./windows
to the docsTested on Windows 10, 22H2 with Tailscale 1.72.0
Fixes: #1995
See: #2096
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores