Markdown Publisher
Markdown Publisher (md-pub
) enables clean, rapid deployment of Markdown content as static HTML via GitHub Actions/Pages. A "keep it simple" alternative to things like Jekyll, Hugo, etc.
Code: https://github.com/chrisdonahue/md-pub
Output: https://chrisdonahue.com/md-pub
Features
- Clean Markdown structure, mirrored 1:1 in HTML
- Uses GitHub Actions to build and deploy the site to GitHub Pages
- Small, hackable JS codebase (see
.render
directory) - Arbitrary static assets (images, etc.)
- Multiple pages, directories, relative links and anchors
- YAML frontmatter metadata support
- MIT licensed
Usage instructions
- Fork the repository (probably change the repo name as well)
- Go to your repository settings and enable GitHub Pages via GitHub Actions
- Edit the
README.md
(or any other markdown file) with your content - Edit
.render/config.yml
to your liking - Customize
.render/template
to your liking - Commit and push the changes
- Wait for the GitHub Actions to build and deploy the site
Testing locally
npm init -y
npm install marked jsdom dompurify js-yaml
node .render/render.js
python3 -m http.server --directory _site 8080
Assets
Put your assets anywhere in the repo and use them as expected: