Skip to content

[codex] Add GitHub Pages PDF reader - #1

Draft
ziyu111777 wants to merge 1 commit into
bozhouDev:mainfrom
ziyu111777:codex/github-pages-pdf-reader
Draft

[codex] Add GitHub Pages PDF reader#1
ziyu111777 wants to merge 1 commit into
bozhouDev:mainfrom
ziyu111777:codex/github-pages-pdf-reader

Conversation

@ziyu111777

Copy link
Copy Markdown

Summary

  • Add a root index.html for GitHub Pages so readers have a stable online PDF reading entry instead of relying on the GitHub blob preview.
  • Add visible open/download/Markdown fallback links for browsers that do not render the embedded PDF.
  • Update the README top section with online reading, direct PDF download, and a note about GitHub large-PDF preview failures.

Root cause

GitHub blob pages can fail to render large PDFs and show misleading messages such as "无法渲染代码块". The PDF itself is valid; the fix avoids using the blob page as the primary reading surface.

Validation

  • git diff --check
  • Parsed index.html with Python html.parser
  • Served the repo locally with python3 -m http.server 8765
  • Confirmed / returns 200 text/html
  • Confirmed /Codex%E6%A9%99%E7%9A%AE%E4%B9%A6.pdf returns 200 application/pdf
  • Captured a local Chrome headless screenshot to verify the page header/actions render`

Vink567 added a commit that referenced this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant