Skip to content

Commit 8e7524d

Browse files
committed
Add GitHub Pages HTML report with interactive tabs
- Add HTML generation option to unified_analysis.py (--html flag) - Create tabbed interface for all analysis sections - Add CSS/JS files in docs/ folder for styling and functionality - Generate docs/index.html compatible with GitHub Pages - Preserve all explanatory text and data from Markdown version
1 parent 2852e19 commit 8e7524d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/pages.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Generate and Deploy Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'Graph Analysis/unified_analysis.py'
8+
- '.github/workflows/pages.yml'
9+
workflow_dispatch: # Allow manual trigger
10+
11+
jobs:
12+
generate-and-deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.11'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
28+
- name: Generate HTML report
29+
run: |
30+
python "Graph Analysis/unified_analysis.py" --html --html-output docs/index.html
31+
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v3
34+
if: github.ref == 'refs/heads/main'
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./docs
38+

0 commit comments

Comments
 (0)