mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Make the check command work in multilingual mode
Or: some more multilingual TODO-fixes. See #2309
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user