mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-01 10:09:18 -05:00
feat(site): auto-generate team page from .all-contributorsrc
Add generate_team.py script that reads .all-contributorsrc and generates the team.md page automatically. This keeps the website team page in sync with the README contributors. - Add tinytorch/site/scripts/generate_team.py - Update both deploy workflows to run the script before building - Contributors added via @all-contributors now appear on the website The script runs during site build, so team.md stays fresh with each deploy.
This commit is contained in:
7
.github/workflows/tinytorch-preview-dev.yml
vendored
7
.github/workflows/tinytorch-preview-dev.yml
vendored
@@ -50,6 +50,13 @@ jobs:
|
||||
pip install --upgrade pip
|
||||
pip install -r site/requirements.txt
|
||||
|
||||
- name: 👥 Generate team page from contributors
|
||||
working-directory: tinytorch/site
|
||||
run: |
|
||||
echo "👥 Generating team page from .all-contributorsrc..."
|
||||
python3 scripts/generate_team.py
|
||||
echo "✅ Team page generated"
|
||||
|
||||
- name: 🔨 Build Jupyter Book
|
||||
working-directory: tinytorch/site
|
||||
run: |
|
||||
|
||||
7
.github/workflows/tinytorch-publish-live.yml
vendored
7
.github/workflows/tinytorch-publish-live.yml
vendored
@@ -367,6 +367,13 @@ jobs:
|
||||
pip install --upgrade pip
|
||||
pip install -r site/requirements.txt
|
||||
|
||||
- name: 👥 Generate team page from contributors
|
||||
working-directory: tinytorch/site
|
||||
run: |
|
||||
echo "👥 Generating team page from .all-contributorsrc..."
|
||||
python3 scripts/generate_team.py
|
||||
echo "✅ Team page generated"
|
||||
|
||||
- name: 🔨 Build Jupyter Book
|
||||
working-directory: tinytorch/site
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user