A minimal GitHub Pages site that presents a downloadable PDF to visitors.
GH Pages/
├── index.html ← main page
├── files/
│ └── document.pdf ← place your PDF here
└── README.md
-
Add your PDF — copy your PDF into the
files/folder and name itdocument.pdf(or update thehrefinindex.htmlto match your filename). -
Customise the page — edit
index.html:- Change the
<title>and<h1>to your site name. - Update the
<p>description text. - Change the
download="document.pdf"attribute to set the filename that visitors receive when they download the file.
- Change the
-
Enable GitHub Pages — in your repository go to Settings → Pages → Source and select the branch/folder that contains
index.html(usuallymain/ root). -
Your site will be live at
https://<username>.github.io/<repo-name>/.
MIT