Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

A static site generator that takes a folder full of markdown files and converts them to HTML with backlinks at the end of each file.

License

Notifications You must be signed in to change notification settings

apatel762/static-site-generator

Repository files navigation

static-site-generator

This project is no longer maintained

A static site generator that I created so that I had a way of easily publishing a webpage based on my markdown notes. Behind the scenes, the generator is just a few Python scripts using Pandoc to convert the notes to HTML and do some extra stuff in-between.

Some notable stuff that I added:

  • Custom pandoc filter for formatting spaced-repetition prompts
  • Custom pandoc filter for formatting links
  • A script that checks for broken links in my notes
  • A script that generates backlinks for all of my notes
  • A script that generates an 'index' file if one isn't present
  • Custom CSS for all of the above

Requirements

  • Linux
    • rsync
    • python 3.8+
    • pandoc 2.8+

I haven't tested MacOS or Windows and this static site generator probably won't work on those OSes.

Usage

Modify the variables at the top of the Makefile and then once you're sure that everything is in the right place, just run:

make

from this git repo and your Markdown files will be turned into a static site.

About

A static site generator that takes a folder full of markdown files and converts them to HTML with backlinks at the end of each file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published