We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Build a Static Site Generator in Python

Build the kind of tool that turns Markdown into a website, then understand static site generators from the inside.

What will you learn?

Ever wondered how SEO and performance-optimized static site generators like Hugo work? In this guided project you'll build your own from scratch using Python. You'll put a lot of your learnings from Object-Oriented Programming and Functional Programming to use in a tangible web project. This project isn't for the faint of heart, but it's well worth the effort. You'll come away with a deeper understanding of static content management.

Chapter List

1
Static Sites
Learn about what a static site is, and start building the functionality necessary to process and move static HTML and Markdown files.
2
Nodes
Build the core HTML generation logic that will power your static site generator. Use recursion and OOP to build an easily understandable and maintainable system.
3
Inline
Build the inline markdown parsing logic, and the logic to generate inline HTML elements.
4
Blocks
Handle entire blocks of markdown, and generate the HTML nodes that represent them.
5
Website
Put the entire static site generator together, and publish your first website.

Join 15,272 students in the Build a Static Site Generator in Python course

Read reviews of their learning experiences

This is a fun and challenging project. This will really challenge your Data Structures and Algorithms that you covered in the previous course.

(5/5)
Chad Elofson profile image

Chad Elofson

Pavilion, BC, Canada

learned a lot here, ill be honest this is so far the toughest project but again I learned a lot here

(5/5)
Jisair C54 profile image

Jisair C54

United States

This was a difficult course. But I am proud to have completed it.

(4/5)
Chris Wineinger profile image

Chris Wineinger

United States

Blood and sweat... Managed to finish it at last, deeply satisfied.

(5/5)
Leonid Chernoivanenko profile image

Leonid Chernoivanenko

Russia

A good course that starts to give slightly more vague directions so that you practice coming up with solutions on your own without following direct pseudo-code line by line.

(4/5)
Chloe C. profile image

Chloe C.

United States

I loved seeing what i've learned be transposed into a tangible (and (spoiler) LOTR-themed too!) thing. It was super difficult in parts, as the training wheels are being removed a little, but Boots is always there to assist when you get stuck (the hard part is trying not to rely on him to finish!).

(5/5)
Andy McClurg profile image

Andy McClurg

Australia

quite a challenging course, needed a lot of help from boots and sometimes even had to peek at the solutions, but all in all it was very fun and rewarding at the end

(5/5)
Valerio Franco profile image

Valerio Franco

Switzerland

A lot of steps, but quite interesting having never worked with html before.

(5/5)
Tomas  profile image

Tomas

Poland

Incredibly challenging but I feel very rewarded having finished it!!

(5/5)
Yuri  profile image

Yuri

United States

Showing 1-9 of 446

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.