Closed
Description
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?
- 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.
- 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.)
Finally, ChromeOS should be detected, and aliased over to the "linux" platform.This is being solved in Add ChromeOS support in defaultPlatform frontmatter #4102.