From ef4d45558d1f57be91e168918de4cc0f6252e76c Mon Sep 17 00:00:00 2001
From: Ankita Sahu <71656941+SAHU-01@users.noreply.github.com>
Date: Mon, 16 Dec 2024 12:00:43 +0530
Subject: [PATCH] based on new workflow data updated and necessary change
simplemented
Signed-off-by: Ankita Sahu <71656941+SAHU-01@users.noreply.github.com>
---
.github/workflows/feature-list.yml | 86 ------------------------------
layouts/docs/baseof.html | 8 +--
layouts/partials/feature-info.html | 60 +++++++++------------
3 files changed, 30 insertions(+), 124 deletions(-)
diff --git a/.github/workflows/feature-list.yml b/.github/workflows/feature-list.yml
index b26d65da..3709ecd3 100644
--- a/.github/workflows/feature-list.yml
+++ b/.github/workflows/feature-list.yml
@@ -1,89 +1,3 @@
-# name: Feature List Update
-
-# on:
-# schedule:
-# - cron: '0 0 * * *' # Run every night at midnight UTC
-# workflow_dispatch:
-
-# permissions:
-# contents: write
-# actions: read
-
-# jobs:
-# check-and-update-features:
-# runs-on: ubuntu-latest
-# env:
-# FEATURES_FILE: 'data/features.json'
-
-# steps:
-# - name: Checkout current repository
-# uses: actions/checkout@v4
-
-# - name: Restore cache
-# id: cache-sha
-# uses: actions/cache@v3
-# with:
-# path: .sha-cache
-# key: feature-data-sha
-# restore-keys: |
-# feature-data-sha
-
-# - name: Check for updates in source repository
-# id: check-updates
-# uses: actions/github-script@v7
-# with:
-# script: |
-# const { data: sourceFile } = await github.rest.repos.getContent({
-# owner: 'layer5labs',
-# repo: 'meshery-extensions-packages',
-# path: 'feature_data.json',
-# ref: 'master'
-# });
-
-# // Store the latest commit SHA
-# const latestSHA = sourceFile.sha;
-
-# const fs = require('fs');
-
-# // Check if we have a previous SHA
-# let hasUpdates = true;
-# const shaCachePath = '.sha-cache/latest-sha';
-# if (fs.existsSync(shaCachePath)) {
-# const lastSHA = fs.readFileSync(shaCachePath, 'utf8');
-# hasUpdates = lastSHA !== latestSHA;
-# }
-
-# if (hasUpdates) {
-# // Save the new SHA
-# fs.mkdirSync('.sha-cache', { recursive: true });
-# fs.writeFileSync(shaCachePath, latestSHA);
-
-# // Decode and save the content
-# const content = Buffer.from(sourceFile.content, 'base64').toString('utf8');
-
-# // Create data directory if it doesn't exist
-# fs.mkdirSync('data', { recursive: true });
-
-# // Write the new content
-# fs.writeFileSync(process.env.FEATURES_FILE, content);
-
-# core.setOutput('has-updates', 'true');
-# } else {
-# core.setOutput('has-updates', 'false');
-# }
-
-# - name: Commit changes
-# if: steps.check-updates.outputs.has-updates == 'true'
-# uses: stefanzweifel/git-auto-commit-action@v5
-# with:
-# commit_message: "Updated feature data from source repository"
-# file_pattern: ${{ env.FEATURES_FILE }}
-# branch: master
-# commit_options: "--signoff"
-# commit_user_name: l5io
-# commit_user_email: ci@layer5.io
-# commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
-
name: Feature List
on:
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index 3574f8c3..b7b5327b 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -14,8 +14,9 @@
{{ partial "sidebar.html" . }}
{{ partial "version-banner.html" . }}
@@ -35,7 +36,8 @@
{{ partial "footer.html" . }}
- {{ partial "scripts.html" . }} {{ partial "image-modal.html" . }}
+ {{ partial "scripts.html" . }}
+ {{ partial "image-modal.html" . }}