Skip to content

Commit

Permalink
updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkundan committed Apr 10, 2024
1 parent 62915e0 commit 8321a71
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 66 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/generate-remotefolder-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '14' # Use the Node.js version that matches your project requirements
node-version: '20' # Use the Node.js version that matches your project requirements

- name: Install dependencies
run: npm install

- name: Run the script to fetch folders and generate the .tsx file
- name: Run the script to fetch folders and generate the the JSON file
run: node .scripts/fetchFolders.js

- name: Commit and push changes if there are any
run: |
git config --global user.email "your-email@example.com"
git config --global user.name "Your Name"
git config --global user.email "kundan.thelife@hotmail.com"
git config --global user.name "Kkundan"
git add static/folderList.json
git commit -m "Automatically update folder list" -a || echo "No changes to commit"
git push
Empty file removed docs/connectors.md
Empty file.
Empty file removed docs/extensions.md
Empty file.
File renamed without changes.
Empty file removed docs/security.md
Empty file.
12 changes: 0 additions & 12 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ const config: Config = {
},
],
},
{
label: "CONNECTORS",
to: "/connectors/",
},
{
label: "EXTENSIONS",
to: "/extensions/",
},
{
label: "SECURITY",
to: "/security/",
},
{
label: "COMMUNITY",
to: "/community/",
Expand Down
48 changes: 0 additions & 48 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,54 +64,6 @@ import {
]
},
],
"connectors": [
{
type: 'category',
label: "Connectors",
link: {
type: 'doc',
id: 'connectors',
},
items: [
{
type: 'autogenerated',
dirName: 'connectors',
},
],
},
],
"Extensions": [
{
type: 'category',
label: "Extensions",
link: {
type: 'doc',
id: 'extensions',
},
items: [
{
type: 'autogenerated',
dirName: 'extensions',
},
],
},
],
"Security": [
{
type: 'category',
label: "Security",
link: {
type: 'doc',
id: 'security',
},
items: [
{
type: 'autogenerated',
dirName: 'security',
},
],
},
],
"Community": [
{
type: 'category',
Expand Down

0 comments on commit 8321a71

Please sign in to comment.