Skip to content

Commit c750e6a

Browse files
authored
Merge pull request #2450 from pavan-kumar-s/gh-pages
Updated the webpage
2 parents 77175e6 + 7995203 commit c750e6a

File tree

2,413 files changed

+62933
-4142471
lines changed

Some content is hidden

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

2,413 files changed

+62933
-4142471
lines changed
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Extract HTML Info
2+
3+
on:
4+
push:
5+
branches: gh-pages
6+
paths:
7+
- '**.html'
8+
9+
jobs:
10+
extract-info:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
fetch-depth: 0
18+
ref: gh-pages
19+
20+
- name: Check Commit Message
21+
id: check_msg
22+
run: |
23+
commit_msg=$(git log --format=%B -n 1)
24+
if [[ "$commit_msg" == "Sync files from source repo" ]]; then
25+
echo "run_job=true" >> $GITHUB_OUTPUT
26+
else
27+
echo "run_job=false" >> $GITHUB_OUTPUT
28+
fi
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v2
32+
if: steps.check_msg.outputs.run_job == 'true'
33+
with:
34+
python-version: '3.x'
35+
36+
- name: Install Dependencies
37+
if: steps.check_msg.outputs.run_job == 'true'
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install beautifulsoup4
41+
42+
- name: Get Changed HTML Files and update the index.html file of tutorial
43+
id: getfile
44+
if: steps.check_msg.outputs.run_job == 'true'
45+
run: |
46+
changed_files=$(git diff --name-only HEAD~1 HEAD | grep '\.html' | tr '\n' ' ')
47+
for file in $changed_files; do
48+
echo "Processing: $file"
49+
python ./stable/extract_info.py $file
50+
done
51+
52+
- name: Commit and Push New File
53+
if: steps.check_msg.outputs.run_job == 'true'
54+
run: |
55+
git config user.name "github-actions[bot]"
56+
git config user.email "github-actions[bot]@users.noreply.github.com"
57+
git add .
58+
git commit -m "Update Tutorial (Automatic Workflow)" || echo "No changes to commit"
59+
git push

.github/workflows/main.yml

-63
This file was deleted.

README.md

+215-75
Large diffs are not rendered by default.

convert_files.m

-23
This file was deleted.

extract_info.py

-67
This file was deleted.

latest/.buildinfo

-4
This file was deleted.

latest/_sources/cite.rst.txt

-62
This file was deleted.

latest/_sources/contents.rst.txt

-16
This file was deleted.

latest/_sources/contributing.rst.txt

-70
This file was deleted.

0 commit comments

Comments
 (0)