Optimize the multilanguage build process
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 28 Jul 2016 07:30:58 +0000 (09:30 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:16 +0000 (18:32 +0300)
commit708bc78770a0b0361908f6404f57264c53252a95
tree9b7e3a05b1e83a768bfa0dd96b61b07dd7917cfd
parentf023dfd7636f73b11c94e86a05c6273941d52c58
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
35 files changed:
commands/hugo.go
commands/list.go
commands/multilingual.go
helpers/url.go
hugolib/embedded_shortcodes_test.go
hugolib/handler_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_test.go [new file with mode: 0644]
hugolib/i18n.go
hugolib/menu_test.go
hugolib/multilingual.go
hugolib/node.go
hugolib/page.go
hugolib/page_permalink_test.go
hugolib/page_test.go
hugolib/pagination_test.go
hugolib/public/404.html [new file with mode: 0644]
hugolib/public/index.html [new file with mode: 0644]
hugolib/public/rss [new file with mode: 0644]
hugolib/public/sitemap.xml [new file with mode: 0644]
hugolib/robotstxt_test.go
hugolib/rss_test.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_show_plan_test.go
hugolib/site_test.go
hugolib/site_url_test.go
hugolib/siteinfo_test.go [deleted file]
hugolib/sitemap_test.go
hugolib/taxonomy_test.go
hugolib/translations.go
source/file.go
source/filesystem.go
source/filesystem_test.go
tpl/template.go