mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
minor: adding some more instructions for building from source
This commit is contained in:
parent
8d50dd9160
commit
580bb9bb5b
1 changed files with 51 additions and 37 deletions
16
README.md
16
README.md
|
@ -37,12 +37,26 @@ is the most probable location.
|
||||||
|
|
||||||
## Installing from source
|
## Installing from source
|
||||||
|
|
||||||
Make sure you have a recent version of go installed. Hugo requires go 1.1+.
|
Pre-requisites:
|
||||||
|
|
||||||
|
* Git
|
||||||
|
* Go 1.1+
|
||||||
|
* Mercurial
|
||||||
|
|
||||||
|
Building locally (for contributors):
|
||||||
|
|
||||||
|
# install go dependencies
|
||||||
|
go get github.com/howeyc/fsnotify
|
||||||
|
go get github.com/spf13/hugo/hugolib
|
||||||
|
|
||||||
|
# clone and build
|
||||||
git clone https://github.com/spf13/hugo
|
git clone https://github.com/spf13/hugo
|
||||||
cd hugo
|
cd hugo
|
||||||
go build -o hugo main.go
|
go build -o hugo main.go
|
||||||
|
|
||||||
|
Building directly from Github:
|
||||||
|
|
||||||
|
go get github.com/spf13/hugo
|
||||||
|
|
||||||
## Source Directory Organization
|
## Source Directory Organization
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue