node to page: Refactor the build process
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 10 Nov 2016 19:55:52 +0000 (20:55 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
commit88972b0d5b62861128f101256027a52ab48eae86
treebc2170773a3c6f6f0a1b62792174539fefdc864d
parent640b8bed21eabfd6e256814eab4b3ab3ad2e3354
node to page: Refactor the build process

To make it easier to follow and understand.

Both building and rebuilding now follow a four step flow:

1. Init
2. Process
3. Assemble
4. Render

And now there are only one Build method, used for both builds and rebuilds.

Updates #2297
commands/hugo.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go [new file with mode: 0644]
hugolib/hugo_sites_test.go
hugolib/site.go