Skip to content

Commit 1246c2e

Browse files
authored
feat: Add Plugins (#128)
1 parent 5c19c7e commit 1246c2e

File tree

82 files changed

+23663
-4
lines changed

Some content is hidden

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

82 files changed

+23663
-4
lines changed

.github/workflows/scrape-plugins.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: scrape-plugins
2+
3+
on:
4+
schedule:
5+
- cron: "0 8 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
fetch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: scrape plugins
14+
run: |
15+
yarn
16+
yarn scrape.plugins
17+
- name: commit new data
18+
run: |
19+
git config --global user.name 'NativeScript-Bot'
20+
git config --global user.email '[email protected]'
21+
git commit -am "chore(update-plugins): $(date)" || echo "No changes to commit."
22+
git push

.vitepress/config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from 'vitepress'
22
import apiSidebar from '../content/api/sidebar.json'
33
import mainSidebar from '../content/sidebar'
44
import uiSidebar from '../content/ui/sidebar'
5+
import pluginsSidebar from '../content/plugins/sidebar'
56
import nav from './nav'
67
import './theme/cliLanguage'
78
import path from 'node:path'
@@ -55,6 +56,7 @@ export default defineConfig({
5556
sidebar: {
5657
'/api': apiSidebar,
5758
'/ui': uiSidebar,
59+
'/plugins': pluginsSidebar,
5860
'/': mainSidebar,
5961
},
6062
},

.vitepress/nav.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export default [
3030
},
3131
{
3232
text: 'Plugins',
33-
link: 'https://v8.docs.nativescript.org/plugins/index.html',
33+
link: '/plugins/',
34+
activeMatch: '^/plugins',
3435
icon: 'PuzzlePieceIcon',
3536
},
3637
// {

0 commit comments

Comments
 (0)