Skip to content

Commit f393ef7

Browse files
aaronjnewmanclaude
andcommitted
Switch source_pdf links to GitHub Pages URLs for inline PDF rendering
GitHub blob URLs prompt a download; the Pages equivalents open PDFs directly in the browser, which is what reviewers need when comparing against OCR output in the Sheet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a635ac0 commit f393ef7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/_sheet_common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@
6363
COLOR_HEADER = {"red": 0.18, "green": 0.29, "blue": 0.63} # deep blue
6464
COLOR_HEADER_TEXT = {"red": 1.0, "green": 0.83, "blue": 0.0} # Dalhousie gold
6565

66-
# GitHub blob URL for source-program links. Update if repo moves.
67-
GITHUB_BLOB = "https://github.com/aaronjnewman/inhouse-conference-archive/blob/main"
66+
# GitHub Pages base URL for source-program links — PDFs render inline here.
67+
# Update if repo moves or is renamed.
68+
GITHUB_PAGES_BASE = "https://aaronjnewman.github.io/inhouse-conference-archive"
6869

6970

7071
def col_index(name: str) -> int:
@@ -166,7 +167,7 @@ def source_pdf_url(record: dict) -> str:
166167
name = _SOURCE_INDEX.get(record.get("source_file", ""), "")
167168
if not name:
168169
return ""
169-
return f"{GITHUB_BLOB}/source_programs/{quote(name)}"
170+
return f"{GITHUB_PAGES_BASE}/source_programs/{quote(name)}"
170171

171172

172173
# ── Hashing / deduplication ──────────────────────────────────────────────────

0 commit comments

Comments
 (0)