Hosting Codex-Created HTML files on Github Pages

Body

Overview

This guide walks Cedarville University faculty through publishing an interactive HTML file — generated by Codex (CU's AI-assisted content authoring tool) — to the web using GitHub Pages, a free static-site hosting service provided by GitHub. No command-line or Git experience is required.

This guide covers:

  • Creating a free GitHub account
  • Uploading a single HTML file generated by Codex
  • Publishing it live using GitHub Pages
  • Sharing the link in Canvas (Cedarville's learning management system)

Step 1: Create a GitHub Account

  1. Go to https://github.com and click Sign up.
  2. Choose Continue with Google (recommended). Use your Cedarville Google account (@cedarville.edu) to keep your work associated with your institutional identity.
  3. Complete the prompts:
    • Username — This becomes part of your site's URL, so choose something recognizable (e.g., jdoe-cedarville).
    • Email — Auto-filled from your Google account.
    • Password — Only prompted if not using Google sign-in.
  4. Verify your account if prompted.

When finished, you will land on your GitHub dashboard.

Step 2: Create a New Repository

A repository (or "repo") is GitHub's term for a project folder. Each repository you create will become one published web page.

  1. Click the + icon in the top-right corner, then select New repository.
  2. Fill in the following:
    • Repository name — Choose something short and descriptive (e.g., biology-module-1). This name will appear in your site's URL.
    • Visibility — Select Public. GitHub Pages requires a public repository on free accounts.
  3. Click Create repository.

Step 3: Upload Your HTML File

  1. On your new repository page, click Add file, then Upload files.
  2. Drag and drop your HTML file into the upload area.
  1. Scroll down and click Commit changes to save the file to your repository.

Step 4: Enable GitHub Pages

  1. Click the Settings tab near the top of your repository page.
  2. In the left sidebar, click Pages.
  3. Under Build and deployment → Source, configure the following:
    • Branch: main
    • Folder: / (root)
  4. Click Save.

Step 5: Access Your Live Site

After approximately 30–60 seconds, GitHub will build and publish your site. Your site's URL will follow this pattern:

https://[your-github-username].github.io/[repository-name]/

For example, if your GitHub username is jdoe and your repository is named biology-module-1, your URL would be:

https://jdoe.github.io/biology-module-1/

GitHub will also display the URL directly on the Pages settings page once the site is live.

Once you have your link, you can share it with students by posting it in Canvas (Instructure Canvas, Cedarville's learning management system).

Common Issues & Fixes

Issue Likely Cause Fix
Page shows a 404 error File is not named index.html Rename the file to index.html (all lowercase) and re-upload.
Page loads but appears blank HTML file is incomplete or malformed Re-export the file from Codex and re-upload.
Site is not live yet GitHub Pages deployment delay Wait approximately 1 minute, then refresh. Check the Pages settings page for a status indicator.
URL does not work Username or repository name is misspelled in the URL Return to your repository's Pages settings to copy the exact URL provided by GitHub.

Tips

  • To update your module, simply re-upload a new index.html to the same repository and commit the changes. Your live site will update automatically within about a minute.
  • Each repository hosts one published page. Create a new repository for each additional module.
  • Keep repository names short and lowercase for the cleanest URLs.

Need Help?

If you encounter an issue not covered above, contact the CU IT Help Desk for assistance.

]]>

Details

Details

Article ID: 171134
Created
Thu 3/26/26 5:02 PM
Modified
Wed 5/6/26 10:33 AM