As of revision 10fae88, installing docsy as module from scratch fails.
Reason:
As of this revision, scripts.html, now defines a resource $jsBs:
|
{{ $jsBs := resources.Get "vendor/bootstrap/dist/js/bootstrap.js" -}} |
This resource does not exist if you install your site from scratch without using npm.
Then the script tries to concat $jsBs (which is nil) to the resources array:
|
{{ $js := (slice $jsPopper $jsBs $jsBase $jsAnchor $jsSearch $jsMermaid $jsPlantuml $jsMarkmap $jsDrawio) | resources.Concat "js/main.js" -}} |
This results in this error thrown when trying to display the site:
$ hugo server
hugo: collected modules in 1481 ms
Start building sites …
hugo v0.102.3-b76146b129d7caa52417f8e914fc5b9271bf56fc+extended windows/amd64 BuildDate=2022-09-01T10:16:19Z VendorInfo=gohugoio
ERROR 2022/09/01 17:09:40 render of "taxonomy" failed: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\_default\baseof.html:16:7": execute of template failed: template: _default/terms.html:16:7: executing "_default/terms.html" at <partialCached "scripts.html" .>: error calling partialCached: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\partials\scripts.html:64:117": execute of template failed: template: partials/scripts.html:64:117: executing "partials/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2022/09/01 17:09:40 render of "taxonomy" failed: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\_default\baseof.html:16:7": execute of template failed: template: _default/terms.html:16:7: executing "_default/terms.html" at <partialCached "scripts.html" .>: error calling partialCached: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\partials\scripts.html:64:117": execute of template failed: template: partials/scripts.html:64:117: executing "partials/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
Error: Error building site: failed to render pages: render of "home" failed: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\_default\baseof.html:16:7": execute of template failed: template: home.html:16:7: executing "home.html" at <partialCached "scripts.html" .>: error calling partialCached: "C:\Users\xxx\AppData\Local\Temp\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.4.1-0.20220819001812-10fae88de482\layouts\partials\scripts.html:64:117": execute of template failed: template: partials/scripts.html:64:117: executing "partials/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
Built in 428 ms
As of revision 10fae88, installing docsy as module from scratch fails.
Reason:
As of this revision,
scripts.html, now defines a resource$jsBs:docsy/layouts/partials/scripts.html
Line 53 in 4a41d9b
This resource does not exist if you install your site from scratch without using npm.
Then the script tries to concat
$jsBs(which isnil) to the resources array:docsy/layouts/partials/scripts.html
Line 64 in 4a41d9b
This results in this error thrown when trying to display the site: