Bjørn Erik Pedersen
2637b4ef4d
Allow whitelisting mediaTypes used in resources.GetRemote
...
Fixes #10286
2023-05-20 20:16:45 +02:00
Bjørn Erik Pedersen
7c7baa6183
Add hugo.WorkingDir
...
Fixes #10969
2023-05-20 17:45:56 +02:00
Bjørn Erik Pedersen
4f085e80da
Make language merging of markup etc. config without values in the root
...
Updates #10953
2023-05-20 12:40:32 +02:00
Joe Mooring
150d190ff0
tpl/urls: Return empty string when JoinPath has zero args
2023-05-20 11:14:18 +02:00
dependabot[bot]
065ae003a5
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
...
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases )
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 20:04:32 +02:00
dependabot[bot]
1a7d57c0b6
build(deps): bump google.golang.org/api from 0.76.0 to 0.123.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.76.0 to 0.123.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.76.0...v0.123.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 20:03:46 +02:00
dependabot[bot]
bba54e6949
build(deps): bump golang.org/x/tools from 0.4.0 to 0.9.1
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.4.0 to 0.9.1.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:58 +02:00
dependabot[bot]
737054311a
build(deps): bump github.com/cli/safeexec from 1.0.0 to 1.0.1
...
Bumps [github.com/cli/safeexec](https://github.com/cli/safeexec ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cli/safeexec/releases )
- [Commits](https://github.com/cli/safeexec/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/cli/safeexec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:42 +02:00
dependabot[bot]
f6269ee928
build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.117.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.110.0 to 0.117.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.117.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 18:00:28 +02:00
Bjørn Erik Pedersen
715d484045
deps: Update github.com/evanw/esbuild v0.17.0 => v0.17.19
2023-05-19 18:00:04 +02:00
Bjørn Erik Pedersen
0a51dfac9e
commands: Fix data race
...
By wrapping all use of the shared config in a lock.
Updates #10953
2023-05-19 16:34:22 +02:00
Bjørn Erik Pedersen
c371171ab8
deps: Update github.com/alecthomas/chroma/v2 v2.7.0
2023-05-19 12:35:05 +02:00
Bjørn Erik Pedersen
d6197a41fa
Re-add --printUnusedTemplates and --printPathWarnings
...
And now with tests.
Updates #10953
2023-05-19 11:37:05 +02:00
Bjørn Erik Pedersen
e4e0313c80
tpl/urls: Fix build broken by a merge
2023-05-19 10:57:03 +02:00
Joe Mooring
5b3e165bad
tpl/urls: Add JoinPath template function
...
See https://pkg.go.dev/net/url#JoinPath
Closes #9694
2023-05-19 10:31:17 +02:00
Bjørn Erik Pedersen
03cb38e6c6
Allow legacy taxonomyTerm in disableKinds
...
Updates #10953
2023-05-19 09:17:55 +02:00
Andreas Deininger
ad4bc969da
Fix warn message about custom params on the language top level
2023-05-19 08:43:02 +02:00
cui fliter
4003c7903f
Fix some spelling mistakes
2023-05-19 08:40:08 +02:00
Oleksandr Redko
610cedaa61
all: Fix comments for exported functions and packages
2023-05-18 21:25:27 +02:00
Bjørn Erik Pedersen
24e7d0c174
deps: Update github.com/bep/golibsass v1.1.0 => v1.1.1
...
Fixes #10629
Fixes #10491
2023-05-18 21:24:33 +02:00
Benjamin Elder
008170c8a9
Make GOMAXPROCS to be CPU limit aware
...
Fixes #10950
2023-05-18 19:32:49 +02:00
Bjørn Erik Pedersen
7c647bcaeb
Allow empty params.mainSections
...
Updates #10953
2023-05-18 17:55:29 +02:00
Oleksandr Redko
95818e27dc
modules: Fix format flag in error
2023-05-18 16:26:20 +02:00
Bjørn Erik Pedersen
3f00f47535
commands: Load config before creating the filesystem
...
To allow publishDir to be set in config file.
2023-05-18 15:38:25 +02:00
Bjørn Erik Pedersen
834b3d7e41
Fix some recently introduced error handling issues
...
Updates #10953
2023-05-18 12:47:23 +02:00
Joe Mooring
1155bbca9d
tpl/lang: document delimiter option for FormatNumberCustom
...
Closes gohugoio/hugoDocs#1760
2023-05-17 23:35:43 +02:00
Bjørn Erik Pedersen
86b2a27438
Re-add site.LanguagePrefix
...
Updates #10947
2023-05-17 23:27:40 +02:00
Bjørn Erik Pedersen
35955f50e6
github: Trim the test flow a little
...
We now have much improved end to end tests, so cut the building of the docs site to save some time of the PR builds.
2023-05-17 22:14:15 +02:00
Bjørn Erik Pedersen
8a69ccbb00
commands: Improve the common build flag handling
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
7ce033a89d
Support, but warn, about top level language custom params
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
05542130ba
Handle transient errors in config loading etc.
...
As in: Get the Kubernetes site to build with the new Hugo version.
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5251f015bf
Re-establish all the server flags
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5d857165fe
Deprecate site.Language.Params and some other fixes
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
0106cf1a6d
Revert "Make GOMAXPROCS CPU limit aware"
...
I shouldn't have merged this without running the tests.
This libray logs to stderr on init, which is a no go for us.
Re. test failure:
```
[stderr]
2023/05/17 18:21:04 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
```
This reverts commit 59050f97f6
.
2023-05-17 21:01:52 +02:00
Benjamin Elder
59050f97f6
Make GOMAXPROCS CPU limit aware
...
Fixes #10950
2023-05-17 20:17:22 +02:00
Bjørn Erik Pedersen
faa6998f26
Add Sections to Site interface
...
See https://github.com/gohugoio/hugo/issues/10947#issuecomment-1550012671
Updates #10947
2023-05-16 18:53:34 +02:00
Oleksandr Redko
3d90871e9e
helpers: simplify path tests with T.TempDir
2023-05-16 18:35:19 +02:00
Oleksandr Redko
bda082c98c
tpl: Add math.Abs
...
Fixes #10941 .
2023-05-16 18:32:07 +02:00
Bjørn Erik Pedersen
241b21b0fd
Create a struct with all of Hugo's config options
...
Primary motivation is documentation, but it will also hopefully simplify the code.
Also,
* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.
Closes #10896
Closes #10620
2023-05-16 18:01:29 +02:00
Bjørn Erik Pedersen
6aededf6b4
Improve date parsing performance for the common case
...
```
name old time/op new time/op delta
Baseline/skiprender-10 24.5ms ±10% 22.3ms ± 4% -8.93% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
Baseline/skiprender-10 30.0MB ± 0% 26.2MB ± 0% -12.74% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
Baseline/skiprender-10 373k ± 0% 279k ± 0% -25.07% (p=0.029 n=4+4)
```
Fixes #10942
2023-05-15 11:25:24 +02:00
Bjørn Erik Pedersen
0988b76a78
Add a counter helper
2023-05-15 09:23:26 +02:00
Bjørn Erik Pedersen
e0e19a934f
Expand the baseline benchmark a little
2023-05-15 08:39:52 +02:00
Joe Mooring
bcd7ac7704
Revert "Update syntax-highlighting.md ( #10929 )" ( #10930 )
...
This reverts commit a4fb8dc6bc
.
2023-05-06 09:36:29 -07:00
Kirill Bobyrev
a4fb8dc6bc
Update syntax-highlighting.md ( #10929 )
2023-05-06 07:00:37 -07:00
Bjørn Erik Pedersen
4f341fa1af
Update README.md
2023-05-04 23:56:57 +02:00
Joe Mooring
5c7b79cf7f
tpl/strings: Clarify findRESubmatch description
2023-04-27 22:02:41 +02:00
Joe Mooring
0cb6ca5906
langs/i18n: Fallback to defaultContentLanguage instead of English
...
Co-authored-by: 641bill <wo23636@126.com>
Fixes #9216
2023-04-24 21:20:09 +02:00
Bjørn Erik Pedersen
f1062519ae
tpl/debug: Add VisualizeSpaces
2023-04-20 11:27:55 +02:00
Bjørn Erik Pedersen
46a3cf6186
Update README.md
2023-04-18 08:35:37 +02:00
Bjørn Erik Pedersen
9906c1ae52
Prevent the global error collector to panic when sending on closed channel
2023-04-13 11:44:22 +02:00