Skip to content

Commit 0767793

Browse files
committed
Remove API reference page from 4.x
1 parent b0cb8ee commit 0767793

File tree

4 files changed

+38
-46
lines changed

4 files changed

+38
-46
lines changed

website/i18n/en.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"title": "Alternative libraries",
1010
"sidebar_label": "Alternative libraries"
1111
},
12-
"api-reference": {
13-
"title": "API Reference",
14-
"sidebar_label": "Overview"
15-
},
1612
"app-containers": {
1713
"title": "App containers",
1814
"sidebar_label": "App containers"
@@ -881,10 +877,6 @@
881877
"title": "createAnimatedSwitchNavigator",
882878
"sidebar_label": "createAnimatedSwitchNavigator"
883879
},
884-
"version-4.x/version-4.x-api-reference": {
885-
"title": "API Reference",
886-
"sidebar_label": "Overview"
887-
},
888880
"version-4.x/version-4.x-app-containers": {
889881
"title": "App containers",
890882
"sidebar_label": "App containers"
@@ -1116,7 +1108,6 @@
11161108
},
11171109
"links": {
11181110
"Docs": "Docs",
1119-
"API": "API",
11201111
"Help": "Help",
11211112
"Blog": "Blog"
11221113
},
@@ -1156,7 +1147,6 @@
11561147
"or|no description given": "or",
11571148
"post a question to StackOverflow|no description given": "post a question to StackOverflow",
11581149
"Read guides|no description given": "Read guides",
1159-
"Read API Reference|no description given": "Read API Reference",
11601150
"Try the demo app|no description given": "Try the demo app",
11611151
"React Navigation 5 has a new dynamic API|no description given": "React Navigation 5 has a new dynamic API",
11621152
"Read about it here|no description given": "Read about it here",

website/pages/en/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ class HomeSplash extends React.Component {
5454
>
5555
<translate>Read guides</translate>
5656
</Button>
57-
<Button
58-
href={`/docs/${this.props.language}/api-reference.html`}
59-
>
60-
<translate>Read API Reference</translate>
61-
</Button>
6257
<Button href="https://github.com/react-navigation/react-navigation/tree/master/example">
6358
<translate>Try the demo app</translate>
6459
</Button>

website/versioned_docs/version-4.x/api-reference.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

website/versioned_sidebars/version-4.x-sidebars.json

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,44 @@
3838
"version-4.x-function-after-focusing-screen",
3939
"version-4.x-react-native-screens"
4040
],
41+
"API Reference": [
42+
"version-4.x-navigation-prop",
43+
"version-4.x-navigation-context",
44+
"version-4.x-navigation-events",
45+
{
46+
"type": "subcategory",
47+
"label": "Navigators",
48+
"ids": [
49+
"version-4.x-stack-navigator",
50+
"version-4.x-stack-navigator-2.0",
51+
"version-4.x-switch-navigator",
52+
"version-4.x-animated-switch-navigator",
53+
"version-4.x-drawer-navigator",
54+
"version-4.x-bottom-tab-navigator",
55+
"version-4.x-material-bottom-tab-navigator",
56+
"version-4.x-material-top-tab-navigator"
57+
]
58+
},
59+
{
60+
"type": "subcategory",
61+
"label": "Actions",
62+
"ids": [
63+
"version-4.x-navigation-actions",
64+
"version-4.x-stack-actions",
65+
"version-4.x-switch-actions",
66+
"version-4.x-drawer-actions"
67+
]
68+
},
69+
{
70+
"type": "subcategory",
71+
"label": "Helpers",
72+
"ids": [
73+
"version-4.x-with-navigation",
74+
"version-4.x-with-navigation-focus",
75+
"version-4.x-scrollables"
76+
]
77+
}
78+
],
4179
"Build your own Navigator": [
4280
"version-4.x-custom-navigator-overview",
4381
"version-4.x-routers",
@@ -56,28 +94,5 @@
5694
"version-4.x-alternatives",
5795
"version-4.x-contributing"
5896
]
59-
},
60-
"version-4.x-api": {
61-
"API Reference": [
62-
"version-4.x-api-reference",
63-
"version-4.x-navigation-prop",
64-
"version-4.x-navigation-actions",
65-
"version-4.x-stack-actions",
66-
"version-4.x-switch-actions",
67-
"version-4.x-drawer-actions",
68-
"version-4.x-stack-navigator",
69-
"version-4.x-stack-navigator-2.0",
70-
"version-4.x-switch-navigator",
71-
"version-4.x-animated-switch-navigator",
72-
"version-4.x-drawer-navigator",
73-
"version-4.x-bottom-tab-navigator",
74-
"version-4.x-material-bottom-tab-navigator",
75-
"version-4.x-material-top-tab-navigator",
76-
"version-4.x-with-navigation",
77-
"version-4.x-with-navigation-focus",
78-
"version-4.x-navigation-context",
79-
"version-4.x-navigation-events",
80-
"version-4.x-scrollables"
81-
]
8297
}
8398
}

0 commit comments

Comments
 (0)