Skip to content

When default platform is not detected correctly, platform-specific sections are not shown. #4101

Closed
@sirocyl

Description

@sirocyl

What is the current behavior?

When visiting a docs page with multiple platform selections separated by tabs, is not detected as either of the platforms given (MacOS, Windows, Linux) and parts of documentation are missing as a result.
Issue spotted from ChromeOS Chrome browser, latest release, Pixelbook.

This may be replicated by using any user-agent in your browser which does not match the existing detection regexes in user_agent.js or the platforms listed in display-platform-specific-content.js.

What changes are you suggesting?

  1. For "weird" platforms like ChromeOS, Haiku, BSDs/UNIXes, and so on - a sane default to fall back on, would be Linux, in almost every case.
  2. For documents with multiple platforms, the document should make sense with no platform selected. (An example can be seen in the page on adding a new SSH key to your account.)
  3. Finally, ChromeOS should be detected, and aliased over to the "linux" platform. This is being solved in Add ChromeOS support in defaultPlatform frontmatter #4102.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineeringWill involve Docs Engineering

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions