Guide 04 · Publish Your Research — a Real Website on GitHub Pages 🌐

Turn your Guide 03 project into a research page the whole world (and grandma) can visit.

← All guides

0% of steps checked — your progress is saved in this browser

Real scientists don't keep results in a drawer — they publish. This guide takes your Guide 03 project (question + chart + finding) and puts it on a real public website, hosted free by GitHub Pages. You will build the page with the generator in section 3 — no HTML knowledge needed — then publish it two ways: the click-only way (works from zero), or the engineer way with git push. At the end you'll have a link like https://YOURNAME.github.io/my-research/ to send to anyone.

1What you're about to make

A research companion page — the standard way scientists show work on the web. Here is a real one from a university research lab (your teacher's, actually): a LiDAR traffic-safety study companion. Notice its shape — yours will have the exact same skeleton:

SectionThe lab's pageYour page
Title + authors"Roadside LiDAR for Cooperative Safety Auditing…" + two researchersYour project title + your name
The question / abstractWhat the study investigatesYour research question + one-line answer
Key figuresPoint clouds, near-miss heatmapsYour sales-by-genre chart
FindingsThree core contributionsYour 2–3 findings
Notes / limits"lightweight visual companion…"What your data can't see
Why GitHub Pages? It hosts websites for free, straight out of a GitHub repo — the same repos you learned in Guides 01/02. Push your files, flip one switch, and GitHub serves your page to the whole internet. Millions of real project sites work exactly this way (including the lab page above — and this very site you're reading).

2Gather your three ingredients

import matplotlib.pyplot as plt
totals.plot(kind="barh", title="Total sales by genre (millions)")
plt.tight_layout()
plt.savefig("chart.png", dpi=150)   # ← creates the picture file

3Build your page — fill the form, watch it appear

Type your project into the form. The live preview below updates as you type — that is your actual website. When it looks right, hit Download index.html.

Quiz — why must chart.png sit in the SAME folder as index.html?

Guide 01, section 2 strikes again: chart.png is a relative path — "look right here, next to me." Move the picture elsewhere and the page shows a broken image. Paths follow you everywhere in computing.

4Publish — Path A: clicks only (works from zero)

Quiz — your repo is called my-research and your username is pixelkid. Where does your site live?

GitHub Pages addresses are always USERNAME.github.io/REPONAME/. The repo page (github.com/…) shows your files; the github.io address shows your website.

5Publish — Path B: the engineer way (git)

Path A works, but engineers publish from the terminal — because they update sites constantly, and clicking through upload forms gets old fast. You already know every move from Guides 01/02; this just chains them:

cd my-research-folder        # the folder with index.html + chart.png
git init                     # save slot (once)
git add .
git commit -m "publish my research"
git remote add origin git@github.com:YOURNAME/my-research.git   # connect the cloud (once)
git push -u origin main      # upload — then enable Pages as in Path A step 3
⚡ Try it now: the Practice Terminal (bottom-right) has your index.html and chart.png waiting. Run the whole publish ritual — Mission: The publish ritual checks you off step by step. Do it twice until it's automatic.
SSH key needed? If git push asks for passwords or gets rejected, that's the keycard from Guide 01 section 5 / Guide 02 section 6: make a key with ssh-keygen and add it to GitHub once, and pushing works forever after.

6Update it, show it off

Here is the beautiful part — your site rebuilds itself every time you push:

# found a better chart? new finding? edit your files, then:
git add .
git commit -m "add second chart"
git push        # ~1 minute later the website shows the new version
I want to…How
Make the pageSection 3 builder → index.html + your chart.png
Put it online (no code)Upload to repo → Settings → Pages → main / root
Put it online (git)init → add → commit → remote add → push → enable Pages
Update itedit → add → commit → push (site refreshes itself)
Find my sitehttps://USERNAME.github.io/REPONAME/

Homework: publish for real — builder page + your Guide 03 chart + Path A (or B if you're feeling like an engineer). Bring the live link to class. When it loads on the classroom screen, you are officially a published researcher. 🌐 Missing a chart? Do Guide 03 first. Rusty on commands? Guide 02 · 🕹️ Terminal Quest.

student@mpa:~$