Skip to content
/ sorg Public
forked from brandur/sorg

A Go-based static site generator that compiles brandur.org.

License

Notifications You must be signed in to change notification settings

grokus/sorg

This branch is 1492 commits behind brandur/sorg:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2b66d8f · Jan 18, 2021
Jan 8, 2021
Jan 18, 2021
Jan 14, 2021
Jan 2, 2021
Jan 15, 2021
Jan 14, 2021
Nov 14, 2020
Dec 28, 2020
Oct 8, 2018
Jan 4, 2021
Jan 3, 2021
Jan 12, 2021
Jan 14, 2021
Sep 25, 2017
Jan 1, 2021
May 22, 2019
Jan 1, 2021
Jan 14, 2021
Nov 14, 2020
Jan 15, 2021
Jan 15, 2021
Dec 25, 2020
Nov 10, 2020
Jul 17, 2019
Nov 27, 2020
May 9, 2019

Repository files navigation

sorg Build Status

A Go-based build script that compiles my personal website. This is the site's second incarnation, with the original being a Ruby/Sintra stack (sorg = "static org").

The site deploys automatically from its CI build with GitHub Actions as changes are committed to the master branch.

Clone

git clone https://github.com/brandur/sorg.git

Build

Install Go 1.9+ and direnv, then:

cp .envrc.sample .envrc

direnv allow

# Compile Go executables.
make install

# Run an initial build of the site, look for build output in public/.
make build

# Note that when watching for changes, this project has unfortunately gotten
# large enough that we bypass Mac OS' per-process limit for file descriptors,
# so that needs to be increased before the command below becomes runnable. This
# line can be put in an RC file:
ulimit -n 4096

# Watch for changes in Go files and/or content and recompile and rebuild when
# one occurs.
make loop

The project can be deployed to s3 using:

pip install awscli

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export S3_BUCKET=...
make deploy

Cached photos can be fetched using:

make photographs-download

Development

Run the entire lifecycle like in CI:

make

Run the test suite:

make test

Run a single package's test suite or single test:

go test ./markdown
go test ./markdown -run TestCollapseHTML

Get more verbose output while running tests:

go test -v ./markdown

About

A Go-based static site generator that compiles brandur.org.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 56.0%
  • JavaScript 14.3%
  • Sass 11.8%
  • CSS 8.6%
  • Ruby 3.4%
  • Makefile 3.3%
  • Other 2.6%