Skip to content

Latest commit

 

History

521 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computing for Mathematics

A course for undergraduate mathematics students covering:

The site is published at https://vknight.org/cfm/.

Source layout

All content lives in collection directories at the repository root:

Directory Output path
_topics/ topics/{slug}.html
_assessment/ assessment/index.html
_class-notes/ class-notes/{slug}.html
_posts/ posts/{slug}.html
_faqs/ rendered inside the home page
_data/ toc.yml, projects.yml

Templates are in templates/, CSS in assets/css/style.css, and the static build script is build.py.

Setup

Install uv, then:

uv sync --group dev

Build

uv run python build.py

Outputs are written in-place: index.html, topics/*.html, class-notes/*.html, posts/*.html, assessment/index.html.

Preview with:

python -m http.server 8000
# then open http://localhost:8000/cfm/

(The site lives under the /cfm/ base URL when published, so a quick local preview is easier if you symlink the repo at ./cfm.)

Deploy

The built HTML is committed to the repository. The .github/workflows/deploy.yml workflow uploads the repo to GitHub Pages on every push to main. Run uv run python build.py before committing.

About

Repository for a Python course for university Mathematics students

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages