Make the check command work in multilingual mode

Or: some more multilingual TODO-fixes.

See #2309
This commit is contained in:
Bjørn Erik Pedersen
2016-08-08 09:28:02 +02:00
parent 6b552db75f
commit 9798a95670
4 changed files with 19 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ package hugolib
import (
"errors"
"fmt"
"os"
"strings"
"sync"
"time"
@@ -286,6 +287,16 @@ func (h *HugoSites) Rebuild(config BuildCfg, events ...fsnotify.Event) error {
}
// Analyze prints a build report to Stdout.
// Useful for debugging.
func (h *HugoSites) Analyze() error {
if err := h.Build(BuildCfg{SkipRender: true}); err != nil {
return err
}
s := h.Sites[0]
return s.ShowPlan(os.Stdout)
}
// Render the cross-site artifacts.
func (h *HugoSites) render() error {