mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Optimize the multilanguage build process
Work In Progress! This commit makes a rework of the build and rebuild process to better suit a multi-site setup. This also includes a complete overhaul of the site tests. Previous these were a messy mix that were testing just small parts of the build chain, some of it testing code-paths not even used in "real life". Now all tests that depends on a built site follows the same and real production code path. See #2309 Closes #2211 Closes #477 Closes #1744
This commit is contained in:
@@ -53,7 +53,7 @@ var listDraftsCmd = &cobra.Command{
|
||||
|
||||
site := &hugolib.Site{}
|
||||
|
||||
if err := site.Process(); err != nil {
|
||||
if err := site.PreProcess(hugolib.BuildCfg{}); err != nil {
|
||||
return newSystemError("Error Processing Source Content", err)
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ posted in the future.`,
|
||||
|
||||
site := &hugolib.Site{}
|
||||
|
||||
if err := site.Process(); err != nil {
|
||||
if err := site.PreProcess(hugolib.BuildCfg{}); err != nil {
|
||||
return newSystemError("Error Processing Source Content", err)
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ expired.`,
|
||||
|
||||
site := &hugolib.Site{}
|
||||
|
||||
if err := site.Process(); err != nil {
|
||||
if err := site.PreProcess(hugolib.BuildCfg{}); err != nil {
|
||||
return newSystemError("Error Processing Source Content", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user