Reorganise the sdk installation sidebar

Summary:
Give the sdk installation pages a bit more structure.
To me it's much clearer now what they are.

Happy to hear differing opinions so we get it right :)

Reviewed By: passy

Differential Revision: D25638164

fbshipit-source-id: 86b7fecd8aba0068336b15a308f4a9433817c68e
This commit is contained in:
John Knox
2020-12-18 09:20:19 -08:00
committed by Facebook GitHub Bot
parent 2f9d4280c1
commit 3bf9bcc275
6 changed files with 35 additions and 13 deletions

View File

@@ -7,7 +7,7 @@
* @format
*/
const {fbInternalOnly} = require('internaldocs-fb-helpers');
const {fbInternalOnly, fbContent} = require('internaldocs-fb-helpers');
module.exports = {
features: {
@@ -38,13 +38,35 @@ module.exports = {
setup: {
'Getting Started': [
'getting-started/index',
...fbInternalOnly(['fb/Add-flipper-to-android-app']),
'getting-started/android-native',
...fbInternalOnly(['fb/Adding-flipper-to-ios-app']),
'getting-started/ios-native',
'getting-started/react-native',
'getting-started/react-native-android',
'getting-started/react-native-ios',
{
'Adding Flipper to your app': [
...fbContent({
external: [
'getting-started/android-native',
'getting-started/ios-native',
],
internal: [
{
Android: [
'fb/Add-flipper-to-android-app',
'getting-started/android-native',
],
iOS: [
'fb/Adding-flipper-to-ios-app',
'getting-started/ios-native',
],
},
],
}),
{
'React Native': [
'getting-started/react-native',
'getting-started/react-native-android',
'getting-started/react-native-ios',
],
},
],
},
'troubleshooting',
{
'Other Platforms': [