Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Best effort selection of target platform and dev environment
Summary: Right now, if you do a search and select a document in Getting Started, it will always default to iOS/Mac. This adds a bit of JavaScript to do a best effort selection based on the hashtags of the headers. If a header is associated with multiple environments (e.g., Android Studio), we just choose the first one. So it is not 100% perfect, but it is decent. ref: facebook#7574 ** Test Plan ** Test locally by adding hash tags to the end of a doc URL and ensured that the toggler had the right selection. e.g., `http://localhost:8079/react-native/docs/getting-started.html#chocolatey` had `Android` and `Windows` chosen. Closes facebook#7608 Differential Revision: D3316802 Pulled By: JoelMarcey fbshipit-source-id: 6e94d76725fb97b19b3708ddee8fba5df9350cdd
- Loading branch information