@@ -58,7 +58,6 @@ const config = {
58
58
libsRootDir : path . join ( __dirname , '..' , 'src' , 'components' ) ,
59
59
pages : {
60
60
ActivityIndicator : 'ActivityIndicator' ,
61
- AnimatedFAB : 'FAB/AnimatedFAB' ,
62
61
Appbar : {
63
62
Appbar : 'Appbar/Appbar' ,
64
63
AppbarAction : 'Appbar/AppbarAction' ,
@@ -73,8 +72,12 @@ const config = {
73
72
} ,
74
73
Badge : 'Badge' ,
75
74
Banner : 'Banner' ,
76
- BottomNavigation : 'BottomNavigation/BottomNavigation' ,
77
- Button : 'Button/Button' ,
75
+ BottomNavigation : {
76
+ BottomNavigation : 'BottomNavigation/BottomNavigation' ,
77
+ } ,
78
+ Button : {
79
+ Button : 'Button/Button' ,
80
+ } ,
78
81
Card : {
79
82
Card : 'Card/Card' ,
80
83
CardActions : 'Card/CardActions' ,
@@ -88,7 +91,9 @@ const config = {
88
91
CheckboxIOS : 'Checkbox/CheckboxIOS' ,
89
92
CheckboxItem : 'Checkbox/CheckboxItem' ,
90
93
} ,
91
- Chip : 'Chip/Chip' ,
94
+ Chip : {
95
+ Chip : 'Chip/Chip' ,
96
+ } ,
92
97
DataTable : {
93
98
DataTable : 'DataTable/DataTable' ,
94
99
DataTableCell : 'DataTable/DataTableCell' ,
@@ -113,10 +118,13 @@ const config = {
113
118
} ,
114
119
FAB : {
115
120
FAB : 'FAB/FAB' ,
121
+ AnimatedFAB : 'FAB/AnimatedFAB' ,
116
122
FABGroup : 'FAB/FABGroup' ,
117
123
} ,
118
124
HelperText : 'HelperText' ,
119
- IconButton : 'IconButton/IconButton' ,
125
+ IconButton : {
126
+ IconButton : 'IconButton/IconButton' ,
127
+ } ,
120
128
List : {
121
129
ListAccordion : 'List/ListAccordion' ,
122
130
ListAccordionGroup : 'List/ListAccordionGroup' ,
@@ -143,10 +151,14 @@ const config = {
143
151
RadioButtonItem : 'RadioButton/RadioButtonItem' ,
144
152
} ,
145
153
Searchbar : 'Searchbar' ,
146
- SegmentedButtons : 'SegmentedButtons/SegmentedButtons' ,
154
+ SegmentedButtons : {
155
+ SegmentedButtons : 'SegmentedButtons/SegmentedButtons' ,
156
+ } ,
147
157
Snackbar : 'Snackbar' ,
148
158
Surface : 'Surface' ,
149
- Switch : 'Switch/Switch' ,
159
+ Switch : {
160
+ Switch : 'Switch/Switch' ,
161
+ } ,
150
162
TextInput : {
151
163
TextInput : 'TextInput/TextInput' ,
152
164
TextInputAffix : 'TextInput/Adornment/TextInputAffix' ,
@@ -157,8 +169,12 @@ const config = {
157
169
ToggleButtonGroup : 'ToggleButton/ToggleButtonGroup' ,
158
170
ToggleButtonRow : 'ToggleButton/ToggleButtonRow' ,
159
171
} ,
160
- Tooltip : 'Tooltip/Tooltip' ,
161
- TouchableRipple : 'TouchableRipple/TouchableRipple' ,
172
+ Tooltip : {
173
+ Tooltip : 'Tooltip/Tooltip' ,
174
+ } ,
175
+ TouchableRipple : {
176
+ TouchableRipple : 'TouchableRipple/TouchableRipple' ,
177
+ } ,
162
178
Typography : {
163
179
Text : 'Typography/Text' ,
164
180
} ,
@@ -175,21 +191,15 @@ const config = {
175
191
( {
176
192
docs : {
177
193
sidebarPath : require . resolve ( './sidebars.js' ) ,
178
- // Please change this to your repo.
179
- // Remove this to remove the "edit this page" links.
180
- editUrl :
181
- 'https://github.com/callstack/react-native-paper/tree/main/docs/' ,
194
+ editUrl : ( params ) =>
195
+ `https://github.com/callstack/react-native-paper/tree/main/src/${ params . docPath . replace (
196
+ 'mdx' ,
197
+ 'tsx'
198
+ ) } `,
182
199
remarkPlugins : [
183
200
[ require ( '@docusaurus/remark-plugin-npm2yarn' ) , { sync : true } ] ,
184
201
] ,
185
202
} ,
186
- blog : {
187
- showReadingTime : true ,
188
- // Please change this to your repo.
189
- // Remove this to remove the "edit this page" links.
190
- editUrl :
191
- 'https://github.com/callstack/react-native-paper/tree/main/docs/' ,
192
- } ,
193
203
theme : {
194
204
customCss : require . resolve ( './src/css/custom.css' ) ,
195
205
} ,
0 commit comments