Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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+, direnv set up and run blackswan, then:

cp .envrc.sample .envrc

direnv allow

# Used to run the test suite.
createdb sorg-test

# 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:

createdb sorg-test
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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.