numpy / numpy.org

The NumPy home page
http://numpy.org/
BSD 3-Clause "New" or "Revised" License
111 stars 106 forks source link

Update hugo #732

Closed jarrodmillman closed 6 months ago

jarrodmillman commented 6 months ago

With 0.123.8 (it worked fine with 0.123.2 and 0.123.7), we get this error:

Error: error building site: render: failed to render pages: render of "page" failed: "/home/jarrod/src/hugo/numpy.org/themes/scientific-python-hugo-theme/layouts/_default/baseof.html:9:7": execute of template failed: template: _default/single.html:9:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/home/jarrod/src/hugo/numpy.org/themes/scientific-python-hugo-theme/layouts/partials/css.html:43:34": execute of template failed: template: partials/css.html:43:34: executing "partials/css.html" at <resources.ExecuteAsTemplate>: error calling ExecuteAsTemplate: type <nil> not supported in Resource transformations

With 0.123.7, this

{{- $sass := append (resources.Get "theme-css/sphinx-design/index.scss")
                    (resources.Get "theme-css/pst/pydata-sphinx-theme.scss")
                    (resources.Get "theme-css/spht/index.scss")
                    (resources.Match "theme-css/*.scss")
           | append (resources.Match "css/*.scss") -}}

{{ $sass }}

resulted in

[/theme-css/sphinx-design/index.scss /theme-css/pst/pydata-sphinx-theme.scss /theme-css/spht/index.scss /css/tabs.scss] 

with 0.123.8 it produces

[/theme-css/sphinx-design/index.scss /theme-css/pst/pydata-sphinx-theme.scss /theme-css/spht/index.scss tabs.scss] 

The difference is with 0.123.7 we got

/css/tabs.scss

with 0.123.8 we get

tabs.scs
netlify[bot] commented 6 months ago

Deploy Preview for numpy-org failed.

Name Link
Latest commit 52fb904f66b4256f7abaa6c5bc8b62be1e59cf51
Latest deploy log https://app.netlify.com/sites/numpy-org/deploys/65ebefdc72d1650008e8a1a3
jarrodmillman commented 6 months ago

May be related to https://github.com/gohugoio/hugo/issues/12214