sorg

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

  • Owner: brandur/sorg
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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:

go get -u github.com/ddollar/forego

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/.
forego run 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.
forego start

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

Main metrics

Overview
Name With Ownerbrandur/sorg
Primary LanguageGo
Program languageMakefile (Language Count: 8)
Platform
License:MIT License
所有者活动
Created At2016-04-27 05:10:33
Pushed At2025-07-28 14:27:58
Last Commit At2025-07-28 04:27:54
Release Count0
用户参与
Stargazers Count508
Watchers Count10
Fork Count169
Commits Count5.2k
Has Issues Enabled
Issues Count38
Issue Open Count12
Pull Requests Count330
Pull Requests Open Count7
Pull Requests Close Count11
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private