Skip to content

Latest commit

 

History

History

jekyll

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

benjetson.github.io

This repository contains the code that powers my personal webpage.

You can see the production version live at www.bengodfrey.net, which is built from the master branch.

Preview

Screenshot of Homepage

How It's Made

The site is built upon modern web technologies, built upon software from these awesome open source projects:

The site is powered by these services:

Local Development

Perform the following steps to set up a machine for local development.

  1. Install Docker Desktop.

  2. Install Python dependencies.

    pip3 install -r scripts/requirements.txt

    This is required for the pre-commit hooks to run.

  3. Install Node

    brew install node

    This is required for Prettier to work.

  4. Configure Git hooks.

    pre-commit install
  5. Configure VSCode editor

    1. Install Extensions

      1. editorconfig.editorconfig
      2. esbenp.prettier-vscode
      3. davidanson.vscode-markdownlint
      4. timonwong.shellcheck
    2. Use these settings to enable automatic formatting of project files:

      "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
      },
      "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
      },
      "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "python.formatting.provider": "black",
      "editor.formatOnSave": true

Optional: Local Ruby

Since the local webserver will run inside a Docker container, it is no longer necessary to install Ruby or vendor RubyGems on your host system.

However, should you wish to do so, you may:

  1. Install Ruby via RVM

    url -sSL https://get.rvm.io | bash -s stable
    rvm install 2.5.3
  2. Install Bundler to handle Ruby dependencies

    gem install bundler
  3. Install Ruby dependencies.

    bundle install