Skip to content

Commit b73b7d1

Browse files
Merge pull request #20 from pytorch-labs/new_website
[graph-break-site] Changed JS script to py script and refactor/clean codebase for final website
2 parents 6d8b2dc + 84ab71e commit b73b7d1

File tree

230 files changed

+226
-5223
lines changed

Some content is hidden

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

230 files changed

+226
-5223
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Deploy Graph Break Site
33
on:
44
push:
55
branches:
6-
- main # Adjust if your primary branch is named differently (e.g., master)
6+
- main
77
schedule:
8-
- cron: '0 0 * * *' # Run daily at midnight UTC
8+
- cron: '0 0 * * *'
99

1010
jobs:
1111
build-and-deploy:
@@ -15,42 +15,31 @@ jobs:
1515
- name: Checkout compile-graph-break-site
1616
uses: actions/checkout@v3
1717
with:
18-
repository: pytorch-labs/compile-graph-break-site
1918
path: compile-graph-break-site
2019

21-
- name: Setup Node.js
22-
uses: actions/setup-node@v3
20+
- name: Setup Python
21+
uses: actions/setup-python@v4
2322
with:
24-
node-version: '18' # Use a Node.js version compatible with your project
23+
python-version: '3.12'
2524

2625
- name: Install dependencies
27-
run: npm install
26+
run: pip install pyyaml requests
2827
working-directory: compile-graph-break-site
2928

3029
- name: Build site
31-
run: npm run build
30+
run: python generate-site.py
3231
working-directory: compile-graph-break-site
3332

34-
- name: Checkout test-docs-site repository
35-
uses: actions/checkout@v3
36-
with:
37-
repository: Sidharth123-cpu/test-docs-site
38-
ref: site # The target branch in your test repo
39-
token: ${{ secrets.DOCS_REPO_TOKEN }} # Personal Access Token with repo scope
40-
path: pytorch-docs # This is still the local directory name
41-
42-
- name: Prepare deployment directory
33+
- name: Create docs directory
4334
run: |
44-
mkdir -p pytorch-docs/docs
45-
rsync -av --delete compile-graph-break-site/gbid_directory/ pytorch-docs/docs/
35+
mkdir -p docs
36+
cp -r compile-graph-break-site/gbid_directory/* docs/
4637
working-directory: ${{ github.workspace }}
4738

48-
- name: Commit and Push to docs repo
39+
- name: Commit and Push
4940
run: |
50-
cd pytorch-docs
5141
git config user.name "github-actions[bot]"
5242
git config user.email "github-actions[bot]@users.noreply.github.com"
53-
git add .
54-
git commit -m "Deploy: Update compile-graph-break site (Test)" || echo "No changes to commit"
55-
git push https://x-access-token:${{ secrets.DOCS_REPO_TOKEN }}@github.com/Sidharth123-cpu/test-docs-site.git site
56-
working-directory: ${{ github.workspace }}
43+
git add docs/
44+
git commit -m "Deploy: Update graph break site" || echo "No changes to commit"
45+
git push

gbid_directory/_config.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
# Site settings
2-
title: Graph-Break Registry
3-
description: A registry of PyTorch Dynamo graph breaks.
1+
title: ""
2+
description: ""
43

5-
# Base URL for the site
6-
# This is crucial for correct linking on GitHub Pages
7-
baseurl: "/compile-graph-break-site" # Adjust this based on your actual GitHub Pages path
84

9-
# Build settings
10-
theme: jekyll-theme-minimal # Or any other Jekyll theme you prefer
11-
remote_theme: pages-themes/minimal@v0.2.0 # For GitHub Pages remote theme
5+
baseurl: "/compile-graph-break-site/docs"
6+
7+
theme: jekyll-theme-minimal
8+
remote_theme: pages-themes/minimal@v0.2.0
129
plugins:
1310
- jekyll-remote-theme
1411

15-
# Exclude build-related files from Jekyll processing
1612
exclude:
17-
- node_modules
18-
- package.json
19-
- package-lock.json
20-
- generate-site.js
13+
- generate-site.py
2114
- README.md
2215
- .gitignore
2316
- .github

gbid_directory/_layouts/default.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{ page.title | default: site.title }}</title>
7+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
8+
</head>
9+
<body>
10+
{{ content }}
11+
</body>
12+
</html>

gbid_directory/gb/gb0000.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

gbid_directory/gb/gb0001.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

gbid_directory/gb/gb0002.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

gbid_directory/gb/gb0003.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

gbid_directory/gb/gb0004.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

gbid_directory/gb/gb0005.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

gbid_directory/gb/gb0006.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)