Skip to content

mic-max/micmax.pw

Repository files navigation

Michael's Motive

Welcome to the source code to my website.
This, like most software nowadays, will never be done.
To see what I'm working on or planning at any time check here

Open in Visual Studio Code

Build

  1. Set the environment variable EDITOR = code
  2. Install Ruby
  3. Install Node.js
  4. npm i -g spellchecker-cli
  5. gem i bundler jekyll
  6. bundle
  7. bundle exec jekyll serve [--drafts] [--livereload]

Pre Commit

  1. mdl .
  2. deadlink
  3. spellchecker -f _posts -l en-CA -d dictionary.txt -q --no-suggestions
  4. cat dictionary.txt | sort > dictionary.txt

Writing

  1. bundle exec jekyll draft "My new draft"
  2. bundle exec jekyll publish _drafts/my-new-draft.md

Helper Aliases

Should I add a package.json and make these scripts in it?

  • draft <title> <folder> => bundle exec jekyll draft "<title>" && mv _drafts/<title>.md _drafts/<folder>/<title>.md
  • publish <folder> <title> => bundle exec jekyll publish _drafts/<folder>/<title>.md

Resources

Website To Do List