Skip to content

Commit fcf816f

Browse files
authored
feat(all): add repo links to plugin files (#50)
* add repo link to generated md files for plugins
1 parent 7455f38 commit fcf816f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+162
-20
lines changed

.vitepress/config.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,18 @@ module.exports = {
128128
function getPlugins() {
129129
const officialPlugins_baseUrl =
130130
'https://raw.githubusercontent.com/NativeScript/plugins/main/packages'
131+
const officialGithubUrl =
132+
'https://github.com/NativeScript/plugins/tree/main/packages'
133+
131134
const paymentsPlugins_baseUrl =
132135
'https://raw.githubusercontent.com/NativeScript/payments/main/packages'
136+
const paymentsGithubUrl =
137+
'https://github.com/NativeScript/payments/tree/main/packages'
138+
133139
const firebasePlugins_baseUrl =
134140
'https://raw.githubusercontent.com/NativeScript/firebase/main/packages'
141+
const firebaseGithubUrl =
142+
'https://github.com/NativeScript/firebase/tree/main/packages'
135143

136144
return [
137145
{
@@ -141,121 +149,145 @@ function getPlugins() {
141149
name: 'Animated Circle',
142150
link: '/plugins/animated-circle',
143151
readme: `${officialPlugins_baseUrl}/animated-circle/README.md`,
152+
repo: `${officialGithubUrl}/animated-circle`,
144153
},
145154
{
146155
name: 'App Availability',
147156
link: '/plugins/appavailability',
148157
readme: `${officialPlugins_baseUrl}/appavailability/README.md`,
158+
repo: `${officialGithubUrl}/appavailability`,
149159
},
150160
{
151161
name: 'Auto Fit Text',
152162
link: '/plugins/auto-fit-text',
153163
readme: `${officialPlugins_baseUrl}/auto-fit-text/README.md`,
164+
repo: `${officialGithubUrl}/auto-fit-text`,
154165
},
155166
{
156167
name: 'Background HTTP',
157168
link: '/plugins/background-http',
158169
readme: `${officialPlugins_baseUrl}/background-http/README.md`,
170+
repo: `${officialGithubUrl}/background-http`,
159171
},
160172
{
161173
name: 'Brightness',
162174
link: '/plugins/brightness',
163175
readme: `${officialPlugins_baseUrl}/brightness/README.md`,
176+
repo: `${officialGithubUrl}/brightness`,
164177
},
165178
{
166179
name: 'Camera',
167180
link: '/plugins/camera',
168181
readme: `${officialPlugins_baseUrl}/camera/README.md`,
182+
repo: `${officialGithubUrl}/camera`,
169183
},
170184
{
171185
name: 'DateTimePicker',
172186
link: '/plugins/datetimepicker',
173187
readme: `${officialPlugins_baseUrl}/datetimepicker/README.md`,
188+
repo: `${officialGithubUrl}/datetimepicker`,
174189
},
175190
{
176191
name: 'Debug iOS',
177192
link: '/plugins/debug-ios',
178193
readme: `${officialPlugins_baseUrl}/debug-ios/README.md`,
194+
repo: `${officialGithubUrl}/debug-ios`,
179195
},
180196
{
181197
name: 'Detox',
182198
link: '/plugins/detox',
183199
readme: `${officialPlugins_baseUrl}/detox/README.md`,
200+
repo: `${officialGithubUrl}/detox`,
184201
},
185202
{
186203
name: 'Directions',
187204
link: '/plugins/directions',
188205
readme: `${officialPlugins_baseUrl}/directions/README.md`,
206+
repo: `${officialGithubUrl}/directions`,
189207
},
190208
{
191209
name: 'Email',
192210
link: '/plugins/email',
193211
readme: `${officialPlugins_baseUrl}/email/README.md`,
212+
repo: `${officialGithubUrl}/email`,
194213
},
195214
{
196215
name: 'Facebook',
197216
link: '/plugins/facebook',
198217
readme: `${officialPlugins_baseUrl}/facebook/README.md`,
218+
repo: `${officialGithubUrl}/facebook`,
199219
},
200220
{
201221
name: 'Fingerprint-Auth',
202222
link: '/plugins/fingerprint-auth',
203223
readme: `${officialPlugins_baseUrl}/fingerprint-auth/README.md`,
224+
repo: `${officialGithubUrl}/fingerprint-auth`,
204225
},
205226
{
206227
name: 'Google Signin',
207228
link: '/plugins/google-signin',
208229
readme: `${officialPlugins_baseUrl}/google-signin/README.md`,
230+
repo: `${officialGithubUrl}/google-signin`,
209231
},
210232
{
211233
name: 'Geolocation',
212234
link: '/plugins/geolocation',
213235
readme: `${officialPlugins_baseUrl}/geolocation/README.md`,
236+
repo: `${officialGithubUrl}/geolocation`,
214237
},
215238
{
216239
name: 'Image Picker',
217240
link: '/plugins/imagepicker',
218241
readme: `${officialPlugins_baseUrl}/imagepicker/README.md`,
242+
repo: `${officialGithubUrl}/imagepicker`,
219243
},
220244
{
221245
name: 'IQ Keyboard Manager',
222246
link: '/plugins/iqkeyboardmanager',
223247
readme: `${officialPlugins_baseUrl}/iqkeyboardmanager/README.md`,
248+
repo: `${officialGithubUrl}/iqkeyboardmanager`,
224249
},
225250
{
226251
name: 'Local Notifications',
227252
link: '/plugins/local-notifications',
228253
readme: `${officialPlugins_baseUrl}/local-notifications/README.md`,
254+
repo: `${officialGithubUrl}/local-notifications`,
229255
},
230256
{
231257
name: 'Localize',
232258
link: '/plugins/localize',
233259
readme: `${officialPlugins_baseUrl}/localize/README.md`,
260+
repo: `${officialGithubUrl}/localize`,
234261
},
235262
{
236263
name: 'Picker',
237264
link: '/plugins/picker',
238265
readme: `${officialPlugins_baseUrl}/picker/README.md`,
266+
repo: `${officialGithubUrl}/picker`,
239267
},
240268
{
241269
name: 'Shared Notification Delegate',
242270
link: '/plugins/shared-notification-delegate',
243271
readme: `${officialPlugins_baseUrl}/shared-notification-delegate/README.md`,
272+
repo: `${officialGithubUrl}/shared-notification-delegate`,
244273
},
245274
{
246275
name: 'Social Share',
247276
link: '/plugins/social-share',
248277
readme: `${officialPlugins_baseUrl}/social-share/README.md`,
278+
repo: `${officialGithubUrl}/social-share`,
249279
},
250280
{
251281
name: 'Twitter',
252282
link: '/plugins/twitter',
253283
readme: `${officialPlugins_baseUrl}/twitter/README.md`,
284+
repo: `${officialGithubUrl}/twitter`,
254285
},
255286
{
256287
name: 'Zip',
257288
link: '/plugins/zip',
258289
readme: `${officialPlugins_baseUrl}/zip/README.md`,
290+
repo: `${officialGithubUrl}/zip`,
259291
},
260292
],
261293
},
@@ -266,16 +298,19 @@ function getPlugins() {
266298
name: 'Apple Pay',
267299
link: '/plugins/apple-pay',
268300
readme: `${paymentsPlugins_baseUrl}/apple-pay/README.md`,
301+
repo: `${paymentsGithubUrl}/apple-pay`,
269302
},
270303
{
271304
name: 'Google Pay',
272305
link: '/plugins/google-pay',
273306
readme: `${paymentsPlugins_baseUrl}/google-pay/README.md`,
307+
repo: `${paymentsGithubUrl}/google-pay`,
274308
},
275309
{
276310
name: 'Payments: IAP & Subscriptions',
277311
link: '/plugins/payments',
278312
readme: `${paymentsPlugins_baseUrl}/payments/README.md`,
313+
repo: `${paymentsGithubUrl}/payments`,
279314
},
280315
],
281316
},
@@ -291,76 +326,91 @@ function getPlugins() {
291326
name: 'Analytics',
292327
link: '/plugins/firebase-analytics',
293328
readme: `${firebasePlugins_baseUrl}/firebase-analytics/README.md`,
329+
repo: `${firebaseGithubUrl}/firebase-analytics`,
294330
},
295331
{
296332
name: 'App Check',
297333
link: '/plugins/firebase-app-check',
298334
readme: `${firebasePlugins_baseUrl}/firebase-app-check/README.md`,
335+
repo: `${firebaseGithubUrl}/firebase-app-check`,
299336
},
300337
{
301338
name: 'Auth',
302339
link: '/plugins/firebase-auth',
303340
readme: `${firebasePlugins_baseUrl}/firebase-auth/README.md`,
341+
repo: `${firebaseGithubUrl}/firebase-auth`,
304342
},
305343
{
306344
name: 'Core',
307345
link: '/plugins/firebase-core',
308346
readme: `${firebasePlugins_baseUrl}/firebase-core/README.md`,
347+
repo: `${firebaseGithubUrl}/firebase-core`,
309348
},
310349
{
311350
name: 'Crashlytics',
312351
link: '/plugins/firebase-crashlytics',
313352
readme: `${firebasePlugins_baseUrl}/firebase-crashlytics/README.md`,
353+
repo: `${firebaseGithubUrl}/firebase-crashlytics`,
314354
},
315355
{
316356
name: 'Database',
317357
link: '/plugins/firebase-database',
318358
readme: `${firebasePlugins_baseUrl}/firebase-database/README.md`,
359+
repo: `${firebaseGithubUrl}/firebase-database`,
319360
},
320361
{
321362
name: 'Dynamic Links',
322363
link: '/plugins/firebase-dynamic-links',
323364
readme: `${firebasePlugins_baseUrl}/firebase-dynamic-links/README.md`,
365+
repo: `${firebaseGithubUrl}/firebase-dynamic-links`,
324366
},
325367
{
326368
name: 'Firestore',
327369
link: '/plugins/firebase-firestore',
328370
readme: `${firebasePlugins_baseUrl}/firebase-firestore/README.md`,
371+
repo: `${firebaseGithubUrl}/firebase-firestore`,
329372
},
330373
{
331374
name: 'Functions',
332375
link: '/plugins/firebase-functions',
333376
readme: `${firebasePlugins_baseUrl}/firebase-functions/README.md`,
377+
repo: `${firebaseGithubUrl}/firebase-functions`,
334378
},
335379
{
336380
name: 'In App Messaging',
337381
link: '/plugins/firebase-in-app-messaging',
338382
readme: `${firebasePlugins_baseUrl}/firebase-in-app-messaging/README.md`,
383+
repo: `${firebaseGithubUrl}/firebase-in-app-messaging`,
339384
},
340385
{
341386
name: 'Insallations',
342387
link: '/plugins/firebase-installations',
343388
readme: `${firebasePlugins_baseUrl}/firebase-installations/README.md`,
389+
repo: `${firebaseGithubUrl}/firebase-installations`,
344390
},
345391
{
346392
name: 'Messaging',
347393
link: '/plugins/firebase-messaging',
348394
readme: `${firebasePlugins_baseUrl}/firebase-messaging/README.md`,
395+
repo: `${firebaseGithubUrl}/firebase-messaging`,
349396
},
350397
{
351398
name: 'Performance',
352399
link: '/plugins/firebase-performance',
353400
readme: `${firebasePlugins_baseUrl}/firebase-performance/README.md`,
401+
repo: `${firebaseGithubUrl}/firebase-performance`,
354402
},
355403
{
356404
name: 'Remote Config',
357405
link: '/plugins/firebase-remote-config',
358406
readme: `${firebasePlugins_baseUrl}/firebase-remote-config/README.md`,
407+
repo: `${firebaseGithubUrl}/firebase-remote-config`,
359408
},
360409
{
361410
name: 'Storage',
362411
link: '/plugins/firebase-storage',
363412
readme: `${firebasePlugins_baseUrl}/firebase-storage/README.md`,
413+
repo: `${firebaseGithubUrl}/firebase-storage`,
364414
},
365415
],
366416
},

plugins/animated-circle.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Animated Circle'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/animated-circle/README.md
44
---
55

6+
# Repo: [Animated Circle](https://github.com/NativeScript/plugins/tree/main/packages/animated-circle)
7+
68
# @nativescript/animated-circle
79

810
```bash

plugins/appavailability.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'App Availability'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/appavailability/README.md
44
---
55

6+
# Repo: [App Availability](https://github.com/NativeScript/plugins/tree/main/packages/appavailability)
7+
68
# @nativescript/app-availability
79

810
A plugin to check for availability of other apps on the device.

plugins/apple-pay.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Apple Pay'
33
link: https://raw.githubusercontent.com/NativeScript/payments/main/packages/apple-pay/README.md
44
---
55

6+
# Repo: [Apple Pay](https://github.com/NativeScript/payments/tree/main/packages/apple-pay)
7+
68
# @nativescript/apple-pay
79

810
```javascript

plugins/auto-fit-text.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Auto Fit Text'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/auto-fit-text/README.md
44
---
55

6+
# Repo: [Auto Fit Text](https://github.com/NativeScript/plugins/tree/main/packages/auto-fit-text)
7+
68
# @nativescript/auto-fit-text
79

810
```cli

plugins/background-http.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Background HTTP'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/background-http/README.md
44
---
55

6+
# Repo: [Background HTTP](https://github.com/NativeScript/plugins/tree/main/packages/background-http)
7+
68
# @nativescript/background-http
79

810
```cli

plugins/brightness.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Brightness'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/brightness/README.md
44
---
55

6+
# Repo: [Brightness](https://github.com/NativeScript/plugins/tree/main/packages/brightness)
7+
68
# @nativescript/brightness
79

810
```cli

plugins/camera.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Camera'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/camera/README.md
44
---
55

6+
# Repo: [Camera](https://github.com/NativeScript/plugins/tree/main/packages/camera)
7+
68
# @nativescript/camera
79

810
# Working with the camera plugin

plugins/datetimepicker.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'DateTimePicker'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/datetimepicker/README.md
44
---
55

6+
# Repo: [DateTimePicker](https://github.com/NativeScript/plugins/tree/main/packages/datetimepicker)
7+
68
# @nativescript/datetimepicker
79

810
A [NativeScript](https://www.nativescript.org) plugin that provides ui elements for picking date and time. The plugin provides UI elements for picking date and time - `DatePickerField`, `TimePickerField` and `DateTimePickerFields` - they are all NativeScript Views that show selected date and/or time and allow picking another after being tapped. There is also a `DateTimePicker` class which provides static methods `pickDate` and `pickTime` that can be called to show the same dialog picker as the fields.

plugins/debug-ios.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: 'Debug iOS'
33
link: https://raw.githubusercontent.com/NativeScript/plugins/main/packages/debug-ios/README.md
44
---
55

6+
# Repo: [Debug iOS](https://github.com/NativeScript/plugins/tree/main/packages/debug-ios)
7+
68
# @nativescript/debug-ios
79

810
Advanced iOS debugging made possible via [Flex](https://github.com/FLEXTool/FLEX).

0 commit comments

Comments
 (0)