Markdown to Static Site Generator
Build a CLI tool that converts a folder of Markdown files into a static HTML site with templated layouts and navigation. Learners practice Node.js file-system APIs, typed build configuration, and Markdown parsing.
- Estimate
- ~8.5h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
Node.js · markdown-it
Project roadmap
- 01
Set up the project
~1hInitialize a Node.js project with TypeScript and a tsconfig targeting Node.
- 02
Read Markdown files
~1.5hRead all Markdown files from an input directory recursively.
- 03
Parse Markdown to HTML
~1.5hConvert each file's content to HTML using markdown-it.
- 04
Apply an HTML template
~2hWrap generated HTML in a shared layout template with navigation links.
- 05
Write output files
~1.5hWrite the generated pages to a dist folder, preserving the input directory structure.
- 06
Add CLI flags
~1hSupport command-line flags for specifying input and output directories.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack