]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
8 months agogithub: Add PR Template
Joe Mooring [Fri, 21 Nov 2025 18:16:21 +0000 (10:16 -0800)]
github: Add PR Template

8 months agoAdjust benchmark
Bjørn Erik Pedersen [Fri, 21 Nov 2025 15:19:24 +0000 (16:19 +0100)]
Adjust benchmark

8 months agotpl/openapi: Add support for OpenAPI external file references
Bjørn Erik Pedersen [Thu, 20 Nov 2025 10:01:23 +0000 (11:01 +0100)]
tpl/openapi: Add support for OpenAPI external file references

Fixes #8067

8 months agobuild(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
dependabot[bot] [Fri, 21 Nov 2025 08:02:41 +0000 (08:02 +0000)]
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront

Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.56.3 to 1.57.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.56.3...service/s3/v1.57.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
  dependency-version: 1.57.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump golang.org/x/image from 0.32.0 to 0.33.0
dependabot[bot] [Thu, 20 Nov 2025 09:40:19 +0000 (09:40 +0000)]
build(deps): bump golang.org/x/image from 0.32.0 to 0.33.0

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/image/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0
dependabot[bot] [Thu, 20 Nov 2025 09:40:15 +0000 (09:40 +0000)]
build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.43.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.43.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agogithub: Skip dependabot for AI Watchdog workflow
Bjørn Erik Pedersen [Fri, 21 Nov 2025 10:46:26 +0000 (11:46 +0100)]
github: Skip dependabot for AI Watchdog workflow

8 months agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.24.5 to 2.24.7
dependabot[bot] [Fri, 21 Nov 2025 08:02:57 +0000 (08:02 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.5 to 2.24.7

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.24.5 to 2.24.7.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.5...v2.24.7)

---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
  dependency-version: 2.24.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agogithub: Remove the 386 test step in GitHub test workflow
Bjørn Erik Pedersen [Fri, 21 Nov 2025 10:00:50 +0000 (11:00 +0100)]
github: Remove the 386 test step in GitHub test workflow

Fixes #14201

8 months agogithub: Remove test binaries after CI test runs
Bjørn Erik Pedersen [Fri, 21 Nov 2025 08:49:26 +0000 (09:49 +0100)]
github: Remove test binaries after CI test runs

8 months agogithub: Fix "no space left on device" issue in CI
Bjørn Erik Pedersen [Thu, 20 Nov 2025 12:24:33 +0000 (13:24 +0100)]
github: Fix "no space left on device" issue in CI

8 months agobuild(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
dependabot[bot] [Thu, 20 Nov 2025 08:02:49 +0000 (08:02 +0000)]
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront

Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.56.0 to 1.56.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.56.0...service/ecs/v1.56.3)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
  dependency-version: 1.56.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0
dependabot[bot] [Thu, 20 Nov 2025 08:02:54 +0000 (08:02 +0000)]
build(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.38.0 to 0.39.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump github.com/tetratelabs/wazero from 1.10.0 to 1.10.1
dependabot[bot] [Thu, 20 Nov 2025 08:01:33 +0000 (08:01 +0000)]
build(deps): bump github.com/tetratelabs/wazero from 1.10.0 to 1.10.1

Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/tetratelabs/wazero/releases)
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.10.0...v1.10.1)

---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months ago github: Adjust watchdog run logic (now with correct spelling)
Bjørn Erik Pedersen [Wed, 19 Nov 2025 15:01:38 +0000 (16:01 +0100)]
   github: Adjust watchdog run logic (now with correct spelling)

8 months ago github: Adjust watchdog run logic (again)
Bjørn Erik Pedersen [Wed, 19 Nov 2025 14:59:33 +0000 (15:59 +0100)]
  github: Adjust watchdog run logic (again)

8 months agogithub: Adjust watchdog run logic
Bjørn Erik Pedersen [Wed, 19 Nov 2025 14:49:52 +0000 (15:49 +0100)]
github: Adjust watchdog run logic

8 months agogithub: Only run AI Watchdog when the PR is ready for review
Bjørn Erik Pedersen [Wed, 19 Nov 2025 14:32:28 +0000 (15:32 +0100)]
github: Only run AI Watchdog when the PR is ready for review

8 months agobuild(deps): bump github.com/bits-and-blooms/bitset
dependabot[bot] [Wed, 19 Nov 2025 11:40:23 +0000 (11:40 +0000)]
build(deps): bump github.com/bits-and-blooms/bitset

Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.22.0 to 1.24.4.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.22.0...v1.24.4)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-version: 1.24.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump github.com/olekukonko/tablewriter from 1.1.0 to 1.1.1
dependabot[bot] [Wed, 19 Nov 2025 11:40:43 +0000 (11:40 +0000)]
build(deps): bump github.com/olekukonko/tablewriter from 1.1.0 to 1.1.1

Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 1.1.0 to 1.1.1.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
  dependency-version: 1.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump golang.org/x/text from 0.30.0 to 0.31.0
dependabot[bot] [Wed, 19 Nov 2025 11:40:32 +0000 (11:40 +0000)]
build(deps): bump golang.org/x/text from 0.30.0 to 0.31.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump github.com/evanw/esbuild from 0.25.12 to 0.27.0
dependabot[bot] [Wed, 19 Nov 2025 11:16:23 +0000 (11:16 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.25.12 to 0.27.0

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.25.12 to 0.27.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.12...v0.27.0)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-version: 0.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agoUpdate aiwatchdog.yml
Bjørn Erik Pedersen [Wed, 19 Nov 2025 11:37:14 +0000 (12:37 +0100)]
Update aiwatchdog.yml

8 months agoUpdate aiwatchdog.yml
Bjørn Erik Pedersen [Wed, 19 Nov 2025 11:29:22 +0000 (12:29 +0100)]
Update aiwatchdog.yml

8 months agoUpdate aiwatchdog.yml
Bjørn Erik Pedersen [Wed, 19 Nov 2025 11:27:47 +0000 (12:27 +0100)]
Update aiwatchdog.yml

8 months agogithub: Add label to AI suspects and do not fail when confident
Bjørn Erik Pedersen [Wed, 19 Nov 2025 11:13:11 +0000 (12:13 +0100)]
github: Add label to AI suspects and do not fail when confident

The latter is mostly to get the  dependabot PRs through. We may add a filter to that later.

8 months agogithub: Adjust AI Watchdog workflow to make it run PRs from forks
Bjørn Erik Pedersen [Tue, 18 Nov 2025 19:29:22 +0000 (20:29 +0100)]
github: Adjust AI Watchdog workflow to make it run PRs from forks

8 months agogithub: Adjust workflow permissions
Bjørn Erik Pedersen [Tue, 18 Nov 2025 18:37:32 +0000 (19:37 +0100)]
github: Adjust workflow permissions

8 months agoperformance: Misc allocation improvements
Bjørn Erik Pedersen [Tue, 18 Nov 2025 12:58:19 +0000 (13:58 +0100)]
performance: Misc allocation improvements

```
                               │ stash.bench  │      perf-allloc20251118.bench      │
                               │    sec/op    │    sec/op     vs base               │
CreateShortcodePlaceholders-10   54.16n ± ∞ ¹   39.06n ± ∞ ¹  -27.87% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

                               │ stash.bench │     perf-allloc20251118.bench     │
                               │    B/op     │    B/op      vs base              │
CreateShortcodePlaceholders-10   52.00 ± ∞ ¹   48.00 ± ∞ ¹  -7.69% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

                               │ stash.bench │     perf-allloc20251118.bench      │
                               │  allocs/op  │  allocs/op   vs base               │
CreateShortcodePlaceholders-10   2.000 ± ∞ ¹   1.000 ± ∞ ¹  -50.00% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
````

8 months agohugolib/doctree: Simplify lock setup in SimpleThreadSafeTree to reduce read allocation
Bjørn Erik Pedersen [Tue, 18 Nov 2025 11:30:50 +0000 (12:30 +0100)]
hugolib/doctree: Simplify lock setup in SimpleThreadSafeTree to reduce read allocation

```
                                      │    sec/op    │   sec/op     vs base               │
SimpleThreadSafeTree/Get-10             45.80n ± 11%   27.71n ± 7%  -39.51% (p=0.002 n=6)
SimpleThreadSafeTree/Insert-10          40.96n ±  1%   40.36n ± 0%   -1.47% (p=0.002 n=6)
SimpleThreadSafeTree/LongestPrefix-10   47.12n ±  0%   32.60n ± 1%  -30.81% (p=0.002 n=6)
geomean                                 44.54n         33.16n       -25.57%

                                      │ cmp152.bench │       perf-allloc20251118.bench        │
                                      │     B/op     │    B/op     vs base                    │
SimpleThreadSafeTree/Get-10               16.00 ± 0%    0.00 ± 0%  -100.00% (p=0.002 n=6)
SimpleThreadSafeTree/Insert-10            8.000 ± 0%   8.000 ± 0%         ~ (p=1.000 n=6) ¹
SimpleThreadSafeTree/LongestPrefix-10     16.00 ± 0%    0.00 ± 0%  -100.00% (p=0.002 n=6)
````

8 months agogithub: Add ai-watchdog workflow and update other workflows' versions
Bjørn Erik Pedersen [Tue, 18 Nov 2025 18:05:13 +0000 (19:05 +0100)]
github: Add ai-watchdog workflow and update other workflows' versions

See #14147

8 months agobuild(deps): bump google.golang.org/api from 0.251.0 to 0.255.0
dependabot[bot] [Tue, 11 Nov 2025 08:03:35 +0000 (08:03 +0000)]
build(deps): bump google.golang.org/api from 0.251.0 to 0.255.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.251.0 to 0.255.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.251.0...v0.255.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-version: 0.255.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
dependabot[bot] [Tue, 11 Nov 2025 08:04:50 +0000 (08:04 +0000)]
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront

Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.54.4 to 1.56.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.54.4...service/s3/v1.56.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
  dependency-version: 1.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agobuild(deps): bump github.com/tetratelabs/wazero from 1.9.0 to 1.10.0
dependabot[bot] [Tue, 11 Nov 2025 08:03:12 +0000 (08:03 +0000)]
build(deps): bump github.com/tetratelabs/wazero from 1.9.0 to 1.10.0

Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/tetratelabs/wazero/releases)
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agotpl/collections: Improve collections.D
Joe Mooring [Sun, 16 Nov 2025 19:23:14 +0000 (11:23 -0800)]
tpl/collections: Improve collections.D

Changes:

- If n > hi, return the full, sorted range [0, hi) of size hi.
- Throw errors when seed, n, or hi are < 0
- Improve error messages

Closes #14143

8 months agoOptimize memory allocations for sites matrix vector stores
Bjørn Erik Pedersen [Sun, 16 Nov 2025 12:28:43 +0000 (13:28 +0100)]
Optimize memory allocations for sites matrix vector stores

By

* Caching common sites matrix setups (e.g. the single site in single site setups).
* Adding a fast path to IntSets.HasAnyVector for the common case of single vector input.

```
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10   31.62m ± 46%   30.68m ± 42%  ~ (p=0.310 n=6)

                                                                                   │ master.bench │          perfcommon.bench          │
                                                                                   │     B/op     │     B/op      vs base              │
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10   31.98Mi ± 0%   31.24Mi ± 0%  -2.30% (p=0.002 n=6)

                                                                                   │ master.bench │         perfcommon.bench          │
                                                                                   │  allocs/op   │  allocs/op   vs base              │
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10    460.9k ± 0%   419.9k ± 0%  -8.90% (p=0.002 n=6)
````

8 months agogemini: Disable auto PR codereviews for now
Bjørn Erik Pedersen [Mon, 17 Nov 2025 13:50:22 +0000 (14:50 +0100)]
gemini: Disable auto PR codereviews for now

I'm assuming it's still possible to trigger commands like `/gemini review` manually.

8 months agodocs: Fix link to CGO wiki page
Jordan Elver [Fri, 24 Oct 2025 09:52:16 +0000 (10:52 +0100)]
docs: Fix link to CGO wiki page

The Go wiki is no longer hosted on GitHub, and has moved to go.dev. See https://github.com/golang/go/wiki/

8 months agogithub: Update asciidoctor-diagrams extension and add GoAT
Joe Mooring [Sun, 16 Nov 2025 20:36:05 +0000 (12:36 -0800)]
github: Update asciidoctor-diagrams extension and add GoAT

8 months agoFix grammatical error in styleguide.md
Bjørn Erik Pedersen [Sun, 16 Nov 2025 19:25:33 +0000 (20:25 +0100)]
Fix grammatical error in styleguide.md

8 months agoUpdate styleguide.md
Bjørn Erik Pedersen [Sun, 16 Nov 2025 19:05:32 +0000 (20:05 +0100)]
Update styleguide.md

8 months agoAdd gemini setup files
Bjørn Erik Pedersen [Sun, 16 Nov 2025 18:30:46 +0000 (19:30 +0100)]
Add gemini setup files

8 months agostatic: Preserve .gitignore and .gitattributes in --cleanDestinationDir
Ahamed_Meyan [Sun, 16 Nov 2025 10:10:20 +0000 (15:40 +0530)]
static: Preserve .gitignore and .gitattributes in --cleanDestinationDir

 Fixes #14097

8 months agohugolib: Fix recently introduced data race
Bjørn Erik Pedersen [Sat, 15 Nov 2025 10:40:18 +0000 (11:40 +0100)]
hugolib: Fix recently introduced data race

This introduces a new thread safe maps.Map type to avoid abusing the exsting maps.Cache for regular map uses.

Fixes #14140

8 months agohugolib: Improve performance of content trees with many sections
Bjørn Erik Pedersen [Wed, 12 Nov 2025 11:55:27 +0000 (12:55 +0100)]
hugolib: Improve performance of content trees with many sections

Hugo's build process is roughly divided into three steps:

1. Process content (walk file system and insert source nodes into content tree)
2. Assemble content (assemble pages and resources according to sites matrix)
3. Render content

In #13679 we consolidated the page creation logic into one place (the assemble step). This made it much simpler to reason about, but it lost us some performance esp. in big content trees.

This commit re-introduces parallelization in the first step in the assemble step by handling each top level section in its own goroutine. This gives significant performance improvements for content trees with many sections.

Compared to master:

```
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=100-10    19.26m ± ∞ ¹   14.54m ± ∞ ¹  -24.52% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=2/pagesPerSection=100-10    19.74m ± ∞ ¹   16.45m ± ∞ ¹  -16.71% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=6/pagesPerSection=100-10   106.18m ± ∞ ¹   71.23m ± ∞ ¹  -32.91% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10    38.85m ± ∞ ¹   30.47m ± ∞ ¹  -21.59% (p=0.029 n=4)
```

8 months agomarkup/asciidocext: Support boolean document attributes
Joe Mooring [Thu, 13 Nov 2025 16:23:12 +0000 (08:23 -0800)]
markup/asciidocext: Support boolean document attributes

Closes #14138

8 months agogithub: Allow AsciiDoc content in tests to render Ditaa diagrams
Joe Mooring [Wed, 12 Nov 2025 18:33:51 +0000 (10:33 -0800)]
github: Allow AsciiDoc content in tests to render Ditaa diagrams

In 2c80dee3586caec7ac5cec7af92eb590c6fc3ff3 we enabled rendering of
PlantUML diagrams within integration tests. This commit removes PlantUML
support from the tests in favor of rendering Ditaa diagrams, which take
less time to generate.

8 months agoAdd a site assembly benchmark test for a deeper site structure with more sections...
Bjørn Erik Pedersen [Wed, 12 Nov 2025 17:09:09 +0000 (18:09 +0100)]
Add a site assembly benchmark test for a deeper site structure with more sections and pages

8 months agositesmatrix: Clary default dimension values
Bjørn Erik Pedersen [Wed, 12 Nov 2025 08:33:56 +0000 (09:33 +0100)]
sitesmatrix: Clary default dimension values

And make the default content version `v.1.0.0`. It has not much practical difference, but this encourages semver usage.

8 months agoRun go mod tidy to clean up go.mod and go.sum
Bjørn Erik Pedersen [Wed, 12 Nov 2025 11:58:30 +0000 (12:58 +0100)]
Run go mod tidy to clean up go.mod and go.sum

8 months agodocshelper: Fix some YAML serialization issues with sites matrix configuration
Bjørn Erik Pedersen [Tue, 11 Nov 2025 10:27:26 +0000 (11:27 +0100)]
docshelper: Fix some YAML serialization issues with sites matrix configuration

Fixes #14132

8 months agoresources/page: Fix slugorcontentbasename for section pages
David Karlsson [Mon, 10 Nov 2025 08:33:15 +0000 (09:33 +0100)]
resources/page: Fix slugorcontentbasename for section pages

The slugorcontentbasename permalink token was creating an extra
subdirectory for section pages (_index.md files). This was because
pageToPermalinkContentBaseName did not have the same special handling
for _index.md files as pageToPermalinkFilename.

This commit adds the special handling to return an empty string for
section pages, ensuring backward compatibility with slugorfilename.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fixes #14104

8 months agobuild(deps): bump github.com/evanw/esbuild from 0.25.11 to 0.25.12
dependabot[bot] [Mon, 3 Nov 2025 08:01:47 +0000 (08:01 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.25.11 to 0.25.12

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.25.11 to 0.25.12.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.11...v0.25.12)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-version: 0.25.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agotesting: Rewrite all the old style integration tests to txtar style tests
Bjørn Erik Pedersen [Sat, 8 Nov 2025 10:22:56 +0000 (11:22 +0100)]
testing: Rewrite all the old style integration tests to txtar style tests

And remove some not worth keeping (or too much work to convert).

8 months agocommands: newDocsHelper encode integers as ints in generated YAML
Alexandru Grigore [Sun, 9 Nov 2025 19:41:45 +0000 (21:41 +0200)]
commands: newDocsHelper encode integers as ints in generated YAML

Previously the JSON -> map roundtrip produced float64 values which caused the YAML encoder to emit integers like 404.0 instead of 404. Use the YAML encoder option yaml.AutoInt() so numbers that are integer-valued are encoded as integers.

This change affects the
ewDocsHelper command (commands/gen.go) where the docs data is written to docs/data/docs.yaml. After this change generated YAML will contain integer values (e.g. status: 404) instead of floats (e.g. status: 404.0).

Fixes #14122

8 months agoconfig: Add struct tags to deprecated and unused fields
Joe Mooring [Sat, 8 Nov 2025 20:39:42 +0000 (12:39 -0800)]
config: Add struct tags to deprecated and unused fields

This will remove these fields from the output of newDocsHelper.

8 months agohugolib: Delete some old integration tests
Bjørn Erik Pedersen [Fri, 7 Nov 2025 17:37:44 +0000 (18:37 +0100)]
hugolib: Delete some old integration tests

We have had several had several integration test setups over the years. What we have now, backed by txtar files, has been working very well for a long time.

The tests deleted here may lose us some coverage, but they are painful to maintain and it's unlikely that we will port them to the new setup.

8 months agotesting: Revise usage of b.N and b.Loop() in benchmarks
Bjørn Erik Pedersen [Thu, 6 Nov 2025 15:22:02 +0000 (16:22 +0100)]
testing: Revise usage of b.N and b.Loop() in benchmarks

8 months agoall: Fix some benchmarks broken by modernize
Bjørn Erik Pedersen [Thu, 6 Nov 2025 09:43:12 +0000 (10:43 +0100)]
all: Fix some benchmarks broken by modernize

It's not possible to use `b.Loop()` when `b.N` is used to prepare test data.

See 264022a75a8e4d91d7461747eef4d06267cc519f
See #14107

8 months agoall: Run modernize -fix ./...
Bjørn Erik Pedersen [Wed, 5 Nov 2025 19:41:17 +0000 (20:41 +0100)]
all: Run modernize -fix ./...

Closes #14107

8 months agoAdd roles and versions as new dimensions (in addition to language)
Bjørn Erik Pedersen [Wed, 5 Nov 2025 14:52:47 +0000 (15:52 +0100)]
Add roles and versions as new dimensions (in addition to language)

See the main issue #13776 for details.

Fixes #519
Fixes #13680
Fixes #13663
Fixes #13776
Fixes #13855
Fixes #13648
Fixes #13996
Fixes #14001
Fixes #14031
Fixes #13818
Fixes #13196

8 months agoUpdate CONTRIBUTING.md
Bjørn Erik Pedersen [Tue, 4 Nov 2025 09:57:26 +0000 (10:57 +0100)]
Update CONTRIBUTING.md

8 months agogithub: Allow AsciiDoc content in tests to render diagrams
Joe Mooring [Fri, 31 Oct 2025 19:47:40 +0000 (12:47 -0700)]
github: Allow AsciiDoc content in tests to render diagrams

9 months agohreflect: Cache reflect method lookups used in collections.Where and others
Bjørn Erik Pedersen [Sun, 26 Oct 2025 16:45:57 +0000 (17:45 +0100)]
hreflect: Cache reflect method lookups used in collections.Where and others

We already cached the method index on the struct, but caching the resolved `reflect.Method` itself saves us from having to do another lookup on each call, which is escpeciall import in the hot path used by collections.Where and otherrs:

```bash
                                        │ master.bench │    fix-reflectmethodcache.bench     │
                                        │    sec/op    │    sec/op     vs base               │
WhereSliceOfStructPointersWithMethod-10   592.2µ ± ∞ ¹   390.1µ ± ∞ ¹  -34.14% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

                                        │  master.bench  │     fix-reflectmethodcache.bench     │
                                        │      B/op      │     B/op       vs base               │
WhereSliceOfStructPointersWithMethod-10   205.14Ki ± ∞ ¹   64.52Ki ± ∞ ¹  -68.55% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

                                        │ master.bench │    fix-reflectmethodcache.bench     │
                                        │  allocs/op   │  allocs/op    vs base               │
WhereSliceOfStructPointersWithMethod-10   9.003k ± ∞ ¹   4.503k ± ∞ ¹  -49.98% (p=0.029 n=4)
````

9 months agoall: Simplify the reflect usage
Bjørn Erik Pedersen [Thu, 23 Oct 2025 09:00:38 +0000 (11:00 +0200)]
all: Simplify the reflect usage

* Use helper funcs in hreflect package when possible.
* Use hreflect.ConvertIfPossible to handle conversions when possible.
* Move scratch.go from common/maps to common/hstore to clear cyclic import in the next step.
* Move Indirect to hreflect and reimplementing it and adusting the behavior to preserve struct pointers.
* Adjust evaluateSubElem used by where and others making the struct pointer method case slightly faster.

9 months agoreleaser: Prepare repository for 0.153.0-DEV
hugoreleaser [Fri, 24 Oct 2025 15:44:59 +0000 (15:44 +0000)]
releaser: Prepare repository for 0.153.0-DEV

[ci skip]

9 months agoreleaser: Bump versions for release of 0.152.2
hugoreleaser [Fri, 24 Oct 2025 15:31:49 +0000 (15:31 +0000)]
releaser: Bump versions for release of 0.152.2

[ci skip]

9 months agodeps: Update github.com/tdewolff/minify v2.24.4 => v2.24.5
Joe Mooring [Fri, 24 Oct 2025 14:33:05 +0000 (07:33 -0700)]
deps: Update github.com/tdewolff/minify v2.24.4 => v2.24.5

Closes #14086

9 months agohugofs: Make node_modules a "special case" mount
Bjørn Erik Pedersen [Fri, 24 Oct 2025 08:36:32 +0000 (10:36 +0200)]
hugofs: Make node_modules a "special case" mount

For this and similar mounts in a theme:

```toml
[[module.mounts]]
source = 'node_modules/bootstrap'
target = 'assets/vendor/bootstrap'
```

We first check the theme itself, then the project root.

For backwards compatibility, we also make any `../../node_modules/...` `source` paths into `node_modules/...` paths when defined in themes/modules.

Fixes #14089

9 months agogithub: Fix typo in stale PR message
Jordan Elver [Fri, 24 Oct 2025 12:30:48 +0000 (14:30 +0200)]
github: Fix typo in stale PR message

9 months agoreleaser: Prepare repository for 0.153.0-DEV
hugoreleaser [Wed, 22 Oct 2025 19:24:59 +0000 (19:24 +0000)]
releaser: Prepare repository for 0.153.0-DEV

[ci skip]

9 months agoreleaser: Bump versions for release of 0.152.1
hugoreleaser [Wed, 22 Oct 2025 19:10:44 +0000 (19:10 +0000)]
releaser: Bump versions for release of 0.152.1

[ci skip]

9 months agoExpand the numeric conversions to template funcs/methods
Bjørn Erik Pedersen [Wed, 22 Oct 2025 17:12:11 +0000 (19:12 +0200)]
Expand the numeric conversions to template funcs/methods

So the example mentioned in #14079 also works for TOML and JSON front matter.

See #14079

9 months agoFix where with uint64
Bjørn Erik Pedersen [Wed, 22 Oct 2025 16:29:40 +0000 (18:29 +0200)]
Fix where with uint64

Fixes #14081

9 months agoFix it so YAML integer types can be used where Go int types are expected
Bjørn Erik Pedersen [Wed, 22 Oct 2025 12:22:59 +0000 (14:22 +0200)]
Fix it so YAML integer types can be used where Go int types are expected

E.g. in date.AddDate.

In Hugo v0.152.0 we moved to a new YAML library (github.com/goccy/go-yaml) which produces uint64 for unsigned integers.

This unfortunately breaks common constructs like:

  .Date.AddDate 0 0 7

when .Date is a time.Time and the integers are unmarshaled from YAML front matter.

This commit adds code to handle conversion from uint64 (and other int types) to the required int types where possible.

Fixes #14079

9 months agotpl/compare: Fix compare/sort of uint64s
Bjørn Erik Pedersen [Wed, 22 Oct 2025 10:13:02 +0000 (12:13 +0200)]
tpl/compare: Fix compare/sort of uint64s

`uint64` is used by github.com/goccy/go-yaml  for unsigned integers, which is the reason why this long-living bug has surfaced now.

Fixes #14078

9 months agoFix "assignment to entry in nil map" on empty YAML config files
Bjørn Erik Pedersen [Wed, 22 Oct 2025 09:06:54 +0000 (11:06 +0200)]
Fix "assignment to entry in nil map" on empty YAML config files

Fixes #14074

9 months agoreleaser: Prepare repository for 0.153.0-DEV
hugoreleaser [Tue, 21 Oct 2025 16:43:50 +0000 (16:43 +0000)]
releaser: Prepare repository for 0.153.0-DEV

[ci skip]

9 months agoreleaser: Bump versions for release of 0.152.0
hugoreleaser [Tue, 21 Oct 2025 16:29:49 +0000 (16:29 +0000)]
releaser: Bump versions for release of 0.152.0

[ci skip]

9 months agoMerge branch 'release-0.151.2'
Bjørn Erik Pedersen [Tue, 21 Oct 2025 14:08:23 +0000 (16:08 +0200)]
Merge branch 'release-0.151.2'

9 months agoconfig: Clone language map entries before modifying them
Bjørn Erik Pedersen [Tue, 21 Oct 2025 09:09:29 +0000 (11:09 +0200)]
config: Clone language map entries before modifying them

Now, with YAML anchor and alias support, these can point to shared data,
which must not be modified in place.

Fixes #14072

9 months agoSkip flaky test for now
Bjørn Erik Pedersen [Tue, 21 Oct 2025 08:32:52 +0000 (10:32 +0200)]
Skip flaky test for now

See #14072

9 months agoMisc YAML adjustments
Bjørn Erik Pedersen [Sat, 18 Oct 2025 15:42:43 +0000 (17:42 +0200)]
Misc YAML adjustments

Closes #14067

9 months agohugofs: Make sure that non-project module mounts are local paths
Bjørn Erik Pedersen [Sun, 19 Oct 2025 09:50:46 +0000 (11:50 +0200)]
hugofs: Make sure that non-project module mounts are local paths

Fixes #14069

9 months agolangs/i18n: Improve reserved key error message
Joe Mooring [Sat, 18 Oct 2025 18:10:05 +0000 (11:10 -0700)]
langs/i18n: Improve reserved key error message

Closes #14061

9 months agodeps: Upgrade github.com/gohugoio/go-i18n/v2
Bjørn Erik Pedersen [Sat, 18 Oct 2025 14:25:21 +0000 (16:25 +0200)]
deps: Upgrade github.com/gohugoio/go-i18n/v2

Gets the fork line with https://github.com/nicksnyder/go-i18n/commit/28dedbee2baafdef1b89b46fc5b729d09232e245 + patch.

9 months agolangs: Add test case using a "reserved" i18n code
Bjørn Erik Pedersen [Sat, 18 Oct 2025 13:23:19 +0000 (15:23 +0200)]
langs: Add test case using a "reserved" i18n code

See #14061

9 months agoReplace to gopkg.in/yaml with github.com/goccy/go-yaml (note)
Bjørn Erik Pedersen [Fri, 17 Oct 2025 10:49:54 +0000 (12:49 +0200)]
Replace to gopkg.in/yaml with github.com/goccy/go-yaml (note)

This commit also adds validation to prevent the "Billion Laughs" attack (see https://github.com/goccy/go-yaml/issues/461). The limit of non-scalar aliases to the same node is set to 10,000. See benchmarks below.

```                                                            │        sec/op         │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10                 125.2µ ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10               655.8µ ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10              9.223µ ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10            9.443µ ± ∞ ¹
geomean                                                                51.71µ
¹ need >= 6 samples for confidence interval at level 0.95

                                                            │ fix-goyaml-8822.bench │
                                                            │         B/op          │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10                177.0Ki ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10              177.0Ki ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10             11.67Ki ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10           11.67Ki ± ∞ ¹
geomean                                                               45.45Ki
¹ need >= 6 samples for confidence interval at level 0.95

                                                            │ fix-goyaml-8822.bench │
                                                            │       allocs/op       │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10                 3.302k ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10               3.305k ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10               253.0 ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10             253.0 ± ∞ ¹
````

Fixes #8822
Fixes #13043
Fixes #14053
Fixes ##8427

9 months agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.24.3 to 2.24.4
dependabot[bot] [Fri, 17 Oct 2025 08:04:06 +0000 (08:04 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.3 to 2.24.4

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.24.3 to 2.24.4.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.3...v2.24.4)

---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
  dependency-version: 2.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agoreleaser: Prepare repository for 0.152.0-DEV
hugoreleaser [Thu, 16 Oct 2025 17:06:05 +0000 (17:06 +0000)]
releaser: Prepare repository for 0.152.0-DEV

[ci skip]

9 months agoreleaser: Bump versions for release of 0.151.2
hugoreleaser [Thu, 16 Oct 2025 16:52:34 +0000 (16:52 +0000)]
releaser: Bump versions for release of 0.151.2

[ci skip]

9 months agoparser/pageparser: Add a testcase for nested shortcodes of the same name
Bjørn Erik Pedersen [Thu, 16 Oct 2025 14:47:15 +0000 (16:47 +0200)]
parser/pageparser: Add a testcase for nested shortcodes of the same name

See #14054

9 months agoparser/pageparser: Fix shortcode nesting regression
Bjørn Erik Pedersen [Thu, 16 Oct 2025 14:42:49 +0000 (16:42 +0200)]
parser/pageparser: Fix shortcode nesting regression

This reverts commit a133393edab5aca89b60fae44e445bc527095c6a.

While that commit fixed a bug, it introduced a worse one.

Closes #14054

9 months agotestscripts: Add and improve commands tests for static mounts
Bjørn Erik Pedersen [Thu, 16 Oct 2025 09:38:53 +0000 (11:38 +0200)]
testscripts: Add and improve commands tests for static mounts

9 months agoreleaser: Prepare repository for 0.152.0-DEV
hugoreleaser [Wed, 15 Oct 2025 15:06:42 +0000 (15:06 +0000)]
releaser: Prepare repository for 0.152.0-DEV

[ci skip]

9 months agoreleaser: Bump versions for release of 0.151.1
hugoreleaser [Wed, 15 Oct 2025 14:51:34 +0000 (14:51 +0000)]
releaser: Bump versions for release of 0.151.1

[ci skip]

9 months agoUpgrade Go to 1.25.3
Bjørn Erik Pedersen [Wed, 15 Oct 2025 08:45:56 +0000 (10:45 +0200)]
Upgrade Go to 1.25.3

See https://go.dev/doc/devel/release#go1.25.3

9 months agotpl: Fix strings/truncate CJK handling
Kazuo Oishi [Fri, 10 Oct 2025 04:05:07 +0000 (13:05 +0900)]
tpl: Fix strings/truncate CJK handling

Fix truncate position for mix of CJK and non-CJK text.

Fixes #14039

9 months agobuild(deps): bump github.com/gohugoio/hashstructure from 0.5.0 to 0.6.0
dependabot[bot] [Wed, 15 Oct 2025 08:03:39 +0000 (08:03 +0000)]
build(deps): bump github.com/gohugoio/hashstructure from 0.5.0 to 0.6.0

Bumps [github.com/gohugoio/hashstructure](https://github.com/gohugoio/hashstructure) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/gohugoio/hashstructure/releases)
- [Commits](https://github.com/gohugoio/hashstructure/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/gohugoio/hashstructure
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
9 months agobuild(deps): bump golang.org/x/image from 0.30.0 to 0.32.0
dependabot[bot] [Tue, 14 Oct 2025 20:11:30 +0000 (20:11 +0000)]
build(deps): bump golang.org/x/image from 0.30.0 to 0.32.0

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.30.0 to 0.32.0.
- [Commits](https://github.com/golang/image/compare/v0.30.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>