Skip to content

Commit

Permalink
Merge pull request #2450 from pavan-kumar-s/gh-pages
Browse files Browse the repository at this point in the history
Updated the webpage
  • Loading branch information
farid-zare authored Mar 11, 2025
2 parents 77175e6 + 7995203 commit c750e6a
Show file tree
Hide file tree
Showing 2,413 changed files with 62,933 additions and 4,142,471 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/UpdateTutorialIndex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Extract HTML Info

on:
push:
branches: gh-pages
paths:
- '**.html'

jobs:
extract-info:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: gh-pages

- name: Check Commit Message
id: check_msg
run: |
commit_msg=$(git log --format=%B -n 1)
if [[ "$commit_msg" == "Sync files from source repo" ]]; then
echo "run_job=true" >> $GITHUB_OUTPUT
else
echo "run_job=false" >> $GITHUB_OUTPUT
fi
- name: Set up Python
uses: actions/setup-python@v2
if: steps.check_msg.outputs.run_job == 'true'
with:
python-version: '3.x'

- name: Install Dependencies
if: steps.check_msg.outputs.run_job == 'true'
run: |
python -m pip install --upgrade pip
pip install beautifulsoup4
- name: Get Changed HTML Files and update the index.html file of tutorial
id: getfile
if: steps.check_msg.outputs.run_job == 'true'
run: |
changed_files=$(git diff --name-only HEAD~1 HEAD | grep '\.html' | tr '\n' ' ')
for file in $changed_files; do
echo "Processing: $file"
python ./stable/extract_info.py $file
done
- name: Commit and Push New File
if: steps.check_msg.outputs.run_job == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update Tutorial (Automatic Workflow)" || echo "No changes to commit"
git push
63 changes: 0 additions & 63 deletions .github/workflows/main.yml

This file was deleted.

290 changes: 215 additions & 75 deletions README.md

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions convert_files.m

This file was deleted.

67 changes: 0 additions & 67 deletions extract_info.py

This file was deleted.

4 changes: 0 additions & 4 deletions latest/.buildinfo

This file was deleted.

62 changes: 0 additions & 62 deletions latest/_sources/cite.rst.txt

This file was deleted.

16 changes: 0 additions & 16 deletions latest/_sources/contents.rst.txt

This file was deleted.

70 changes: 0 additions & 70 deletions latest/_sources/contributing.rst.txt

This file was deleted.

Loading

0 comments on commit c750e6a

Please sign in to comment.