summaryrefslogtreecommitdiff
path: root/math/R-goftest
diff options
context:
space:
mode:
authornikita <nikita@pkgsrc.org>2022-04-10 21:16:34 +0000
committernikita <nikita@pkgsrc.org>2022-04-10 21:16:34 +0000
commit4abcc6b9fd706f93d8df8df7e8b6704d9bc77198 (patch)
tree35023c042766723a269a1a8d289d3b5aff16802c /math/R-goftest
parenteba91013de81bfb767fa5bdab1acbf7874067af0 (diff)
downloadpkgsrc-4abcc6b9fd706f93d8df8df7e8b6704d9bc77198.tar.gz
hugo: Update to 0.96.0
Changelog taken from https://github.com/gohugoio/hugo/releases v0.96.0 Vertical merging of content mounts. The main topic of this release is about file mounts (see #9693). We have had a powerful and well defined merge strategy for the union filesystems for the Hugo Modules tree on the horizontal axis (left to right), but not so much for the vertical configuration within each module (e.g. multiple content mounts for the same language). It was @jmooring who pointed out how useful this could be, and even provided this example where missing translations gets filled in from other language(s): #------------------------------------------------------------------------------ # Content mounts #------------------------------------------------------------------------------ # EN content [[module.mounts]] source = 'content/en' target = 'content' lang = 'en' # DE content [[module.mounts]] source = 'content/de' target = 'content' lang = 'de' # NL content [[module.mounts]] source = 'content/nl' target = 'content' lang = 'nl' #------------------------------------------------------------------------------ # Fill in the missing translations #------------------------------------------------------------------------------ # This fills in the gaps in DE content with EN content [[module.mounts]] source = 'content/en' target = 'content' lang = 'de' # This fills in the gaps in NL content with EN content. [[module.mounts]] source = 'content/en' target = 'content' lang = 'nl' Also, we have added some details to the .Err object you get when resources.GetRemote fails, which can be useful when debugging errrors (see #9708). Not you can do something like: {{ with $result := resources.GetRemote $url }} {{ with .Err }} {{ warnf "%s: %#v" .Error .Data}} {{ else }} {{ with .Content | unmarshal }} {{ warnf "%#v" . }} {{ end }} {{ end }} {{ end }} The .Data object above is a map and currently contains StatusCode, Status, Body, TransferEncoding, ContentLength, and ContentType. This release represents 23 contributions by 8 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @jmooring, @dependabot[bot], and @anthonyfok for their ongoing contributions. And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition. Many have also been busy writing and fixing the documentation in hugoDocs, which has received 5 contributions by 3 contributors. Notes Deprecate .File.Extension 9445968 @sara-meie #9352 Changes docs: Regen docshelper db1562e @bep docs: Regen CLI docs 5b18e10 @bep Deprecate .File.Extension 9445968 @sara-meie #9352 resources: Add more details to .Err 9202117 @bep #9708 commands: Change link protocol to https a6fa290 @jmooring build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0 0bbc2fb @dependabot[bot] tpl/crypto: Add optional encoding arg to hmac function 94e8a90 @jmooring #9709 Fix typo a461e9d @panakour Fix some typos 48c98a8 @cuishuang Update CONTRIBUTING.md to use "go install" to install mage bbd455f @anthonyfok Dockerfile: Make it build with Go 1.18 8309a2b @anthonyfok snap: Make it build with Go 1.18 2b72310 @anthonyfok build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11 13ff4de @dependabot[bot] build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0 c3289eb @dependabot[bot] commands: Improve server startup to make tests less flaky 9539069 @bep all: Use strings.Cut 0e305d6 @bep #9687 Support '-u=patch' in hugo mod get 5adb81c @LukeDeWaal #9127 Make sure file mounts higher up wins 1c0e7c1 @bep #9693 resources/images: Require width and height for Crop, Fill, and Fit cad2d8c @jmooring #9696 all: gofmt -w -r 'interface{} -> any' . b80853d @bep #9687 dartsass: Enable deprecation, @warn and @debug logging 423594e @bep #9683 Use revision etc. from debug.BuildInfo 64afb7c @bep #9680 releaser: Prepare repository for 0.96.0-DEV 004bec2 @bep v0.95.0 Even faster, continue and break support, short-circuit of the built-in and/or-operators. This release upgrades to Go 1.18 which was released yesterday. This has made Hugo even faster. How much faster will depend on your site etc., but we have benchmarks that show significant improvements. But the main reason we're exited about this is the improvements in Go templates: There are two new keywords, break and continue. These behaves like you would expect coming from other programming languages: {{ range $i, $p := site.RegularPages }} {{ if gt $i 2 }} {{/* Break out of range, we only want to print the first 3 pages. */}} {{ break }} {{ end }} {{ $p.Title }} {{ end }} {{ range $i, $p := site.RegularPages }} {{ if eq $i 2 }} {{/* Skip the 3rd page. */}} {{ continue }} {{ end }} {{ $p.Title }} {{ end }} Also, the two built-in operators/function and and or now short-circuits, also in line with how && and || behave in other programming languages. This is useful in situations where the right side may have side effects (may be nil, is slow to execute etc.): {{ if and .File (eq .File.Extension "html") }} {{ end }} Notes Hugo now only builds with Go versions >= 1.18. Note that you do not need Go installed to run Hugo, and for Hugo Modules, any recent Go version can be used. Changes readme: Add note about Go 1.18 5930173 @bep tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug 3476b53 @bep readme: Add a contribution note e792d27 @bep github: Make it build with Go 1.18 9d6495d @bep tpl: Adjustments and an integration test for Go 1.18 42cc5f8 @bep #9677 Remove Go 1.17 support a6488e7 @bep #9677 tpl: Sync go_templates for Go 1.18 65a78ca @bep #9677 build: Bump to Go 1.18 4d6d1d0 @bep #9677 dartsass: Improve error message when no read access b60e1bb @bep #9662 Fix and refactor typos 61cf3c9 @CathrinePaulsen Improve server startup/shutdown 31fbc08 @bep #9671 commands: Improve server tests cebd886 @bep #9647 v0.94.2 This is a bug-fix release that fixes a bug introduced in the bug fix release yesterday (some HTML comments in Markdown that made the parser panic): deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10 b37183e @bep #9658 v0.94.1 There are 2 fixes in this release. The first is a fix for a regression in Goldmark related to HTML comments in Markdown (see #9650). The other is that we have reverted the --renderToStatic feature and flag, as it didn't work on Windows. We didn't find any easy fix so that feature gets pushed to the next release, and then with proper cross-platform tests. docs: Regenerate CLI docs 3bc742b @bep deps: Fix Goldmark regression with HTML comments 1a796d7 @bep #9650 Revert "Allow rendering static files to disk and dynamic to memory in server mode" 64b7b7a @bep #9647 Revert "Some minor adjustments to the new static filesystem logic" 5ef8a9f @bep releaser: Prepare repository for 0.95.0-DEV 3bc3466 @bep v0.94.0 Up to 20% reduction in build time and memory usage. That is the sales pitch for this release. In reality it depends (e.g. on how big and complex your site is), but we have benchmarks and real site tests that show impressive improvements. It was @quasilyte (see #9386) who tipped us about this potential. He had tested it with the digitalgov.gov website with about 20% speedup. Post Release Update: Hugo users are reporting tremendous speed boosts of more than 50%. Continuing on the performance theme, @satotake has implemented a new hybrid static filesystem for Hugo's development server, which is great for sites with lots of static content, as it greatly reduces memory consumption while still keeping the fast render times by writing dynamic content to memory (the definition of static content in Hugo is all files mounted in /static and all files in /content that's not content files or a member of a content bundle). With this update, there are now 3 filesystem options when starting the server: hugo server (default), renders to and serves all files from memory. hugo server --renderToDisk, renders to and serves all files from disk. hugo server --renderStaticToDisk (the new hybrid mode), renders to and serves static files from disk, dynamic files from memory. A final note goes to the new linkifyProtocol option in the Goldmark Configuration (see #9639). The linkify extension is enabled by default. It turns www.example.org and similar into clickable links. But before this release, the default protocol used was http. This is in line with the CommonMark spec, but that doesn't make much sense in 2022, so now you get https as the default. This release represents 38 contributions by 4 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @dependabot[bot], @jmooring, and @satotake for their ongoing contributions. And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition. Many have also been busy writing and fixing the documentation in hugoDocs, which has received 3 contributions by 2 contributors. Notes minifiers: Make keepWhitespace = false default for HTML (note) c97fed0 @jmooring #9456 We now fail with error when double-rendering text in markdownify/RenderString 4e14cf7 @bep #9570 #8959 markup/goldmark: Default to https for linkify 5697348 @bep #9639 Changes docs: Regenerate docshelper a4ac188 @bep Fail with error when double-rendering text in markdownify/RenderString 4e14cf7 @bep #9570 #8959 markup/goldmark: Default to https for linkify 5697348 @bep #9639 Add lang attribute to internal alias template f98e570 @jmooring #9586 minifiers: Make keepWhitespace = false default for HTML (note) c97fed0 @jmooring #9456 markup/goldmark/codeblocks: Fix slice bounds out of range 53a6210 @bep #9627 Cache reflect.MethodByName 4576c82 @bep releaser: Remove the GitHub link syntax around release contributors ff02d41 @bep #9581 Some minor adjustments to the new static filesystem logic 63bb2a5 @bep #9625 Allow rendering static files to disk and dynamic to memory in server mode 7d8011e @satotake #9625 build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9 b9a1be2 @dependabot[bot] build(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25 0978245 @dependabot[bot] build(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2 ff37df8 @dependabot[bot] build(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0 5857d55 @dependabot[bot] Remove the decorator from the fs used in ReadDir 0e0d672 @bep #9609 Update stale.yml 19f816f @bep build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8 970f385 @dependabot[bot] Remove the examples/ folder 76c1248 @bep markup/goldmark: Escape image alt attribute e46e9ce @jmooring #9594 tpl/transform: Fix it when template.HTML is passes as option to Highlight 0327da0 @bep #9591 v0.93.3 The main motivation behind this release is #9609 -- a reported site breakage from a regression in ReadDir which with this release is back to how it worked in 0.92.0. Remove the decorator from the fs used in ReadDir build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8
Diffstat (limited to 'math/R-goftest')
0 files changed, 0 insertions, 0 deletions