Skip to content

Deploy the microsite (GitHub + Cloudflare Pages)

The repository reads well on GitHub as it is (README.md, course/, lab/, prompts/, slides/). build_site.py copies those folders into build/docs and builds a static MkDocs Material site into site/. Every git push to the main branch redeploys it.

1. Preview locally (optional)

pip install -r requirements.txt
python build_site.py && python -m http.server -d site 8000   # then open http://127.0.0.1:8000

2. Push to GitHub

git init
git add .
git commit -m "AI fundamentals course"
git branch -M main
git remote add origin https://github.com/<you>/<repo>.git
git push -u origin main

3. Connect Cloudflare Pages

  1. In the Cloudflare dashboard open Workers & Pages and choose to create a Pages project, then Connect to Git. (Menu labels change from time to time.)
  2. Select the GitHub repository and the main branch.
  3. Build settings:
Setting Value
Framework preset None
Build command pip install -r requirements.txt && python build_site.py
Build output directory site
Environment variable PYTHON_VERSION = 3.12
  1. Save and deploy. The site appears at https://<project>.pages.dev.
  2. Optional: add a custom domain under the project's settings.

4. Before you publish

  • Replace [your-site].pages.dev in the slides and the trainer guide with your real address, and add a QR code to slide 63.
  • Decide whether the Trainer kit (slide prompts) should be public. To keep it private, move the slides/ folder and course/trainer-guide.md to a separate private repo, remove them from nav in mkdocs.yml, and from the folder list in build_site.py.
  • Choose a licence for the materials (for example Creative Commons BY 4.0) and add it to the repository.
  • Re-check the claims that change over time: the Claude free-plan features, the AI-901 outline and the skills specification link.