brevno-suite/hugo
3 years agoreleaser: Prepare repository for 0.97.0-DEV vanilla/release-0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:53:13 +0000 (09:53 +0000)]
releaser: Prepare repository for 0.97.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.96.0 v0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:15:58 +0000 (09:15 +0000)]
releaser: Bump versions for release of 0.96.0

[ci skip]

3 years agoreleaser: Add release notes for 0.96.0
hugoreleaser [Sat, 26 Mar 2022 09:15:58 +0000 (09:15 +0000)]
releaser: Add release notes for 0.96.0
[ci skip]

3 years agodocs: Regen docshelper
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:06:04 +0000 (11:06 +0200)]
docs: Regen docshelper

3 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:05:30 +0000 (11:05 +0200)]
docs: Regen CLI docs

3 years agoMerge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:04:57 +0000 (11:04 +0200)]
Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'

3 years agoSquashed 'docs/' changes from a393f4cf4..63386081c
Bjørn Erik Pedersen [Sat, 26 Mar 2022 09:04:57 +0000 (11:04 +0200)]
Squashed 'docs/' changes from a393f4cf4..63386081c

63386081c update cSpell config update
15c76494b Update cSpell custom dictionary (#1694)
34f3167b7 Update image processing (#1625)
7462cc798 fix: pipes in sample code break table creation (#1686)
48736447e Update anchorize.md
2ff0bd10b netlify: Hugo 0.95.0
0fc1d21b2 Update configuration.md
41855e372 Fix #1682
8c663433e Update related.md
7aa072eab netlify: Hugo 0.94.2
1682c7ee7 Update render-hooks.md
ce1283cc4 Move the Render Hooks doc to its own page
bbbbfbfc6 Update configuration-markup.md
92d91a316 Update configuration-markup.md
2e8068823 Update configuration-markup.md
ff2dbca60 Update configuration-markup.md
89d8e5d65 Add code block documenation
e993539f0 Update shortcodes.md
c1b28dbfe netlify: Hugo 0.94.1
81b8c9b83 Merge branch 'tempv0.94.1'
4763b3d50 docs: Regenerate CLI docs
b18463971 netlify: Bump to Hugo 0.94.0
4152ebc1d Merge branch 'tempv0.94.0'
ba3a11ac2 docs: Regenerate docshelper
e64016d13 docs: Regenerate docshelper
29180e4d2 add `.html` suffix to partial usage and references
3213e00f2 Docs tidy-up
6cfcae4b7 docs: Regenerate CLI docs
8a6cd0b4d docs: Regenerate docshelper
b20ab262f Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'

git-subtree-dir: docs
git-subtree-split: 63386081c55de6a7f97adde564a9cfc2ad326119

3 years agoDeprecate .File.Extension
Sara Op den Orth [Thu, 24 Mar 2022 12:24:30 +0000 (13:24 +0100)]
Deprecate .File.Extension

Fixes #9352

3 years agoresources: Add more details to .Err
Bjørn Erik Pedersen [Thu, 24 Mar 2022 07:12:51 +0000 (08:12 +0100)]
resources: Add more details to .Err

This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:

```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```

Fixes #9708

3 years agocommands: Change link protocol to https
Joe Mooring [Fri, 25 Mar 2022 14:21:22 +0000 (07:21 -0700)]
commands: Change link protocol to https

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0
dependabot[bot] [Fri, 25 Mar 2022 08:03:45 +0000 (08:03 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.91.0 to 0.93.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.91.0 to 0.93.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.91.0...v0.93.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>
3 years agotpl/crypto: Add optional encoding arg to hmac function
Joe Mooring [Wed, 23 Mar 2022 16:48:34 +0000 (09:48 -0700)]
tpl/crypto: Add optional encoding arg to hmac function

Closes #9709

3 years agoFix typo
Panagiotis Koursaris [Thu, 10 Mar 2022 14:53:23 +0000 (16:53 +0200)]
Fix typo

3 years agoFix some typos
cuishuang [Thu, 10 Mar 2022 04:01:05 +0000 (12:01 +0800)]
Fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>
[foka@debian.org: Resolve merge conflict and squash 2 commits]
Signed-off-by: Anthony Fok <foka@debian.org>
3 years agoUpdate CONTRIBUTING.md to use "go install" to install mage
Anthony Fok [Mon, 21 Mar 2022 16:25:36 +0000 (10:25 -0600)]
Update CONTRIBUTING.md to use "go install" to install mage

In Go 1.18, "go get" no longer builds packages.

3 years agoDockerfile: Make it build with Go 1.18
Anthony Fok [Mon, 21 Mar 2022 16:25:12 +0000 (10:25 -0600)]
Dockerfile: Make it build with Go 1.18

3 years agosnap: Make it build with Go 1.18
Anthony Fok [Mon, 21 Mar 2022 16:20:53 +0000 (10:20 -0600)]
snap: Make it build with Go 1.18

3 years agobuild(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11
dependabot[bot] [Mon, 21 Mar 2022 14:55:23 +0000 (14:55 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.10 to 1.4.11

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.10 to 1.4.11.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.10...v1.4.11)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0
dependabot[bot] [Wed, 16 Mar 2022 10:38:56 +0000 (10:38 +0000)]
build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agocommands: Improve server startup to make tests less flaky
Bjørn Erik Pedersen [Fri, 18 Mar 2022 07:54:44 +0000 (08:54 +0100)]
commands: Improve server startup to make tests less flaky

Do this by announcing/listen on the local address before we start the server.

3 years agoall: Use strings.Cut
Bjørn Erik Pedersen [Thu, 17 Mar 2022 20:58:54 +0000 (21:58 +0100)]
all: Use strings.Cut

Updates #9687

3 years agoSupport '-u=patch' in hugo mod get
Luke de Waal [Sun, 20 Mar 2022 15:24:37 +0000 (16:24 +0100)]
Support '-u=patch' in hugo mod get

The control-flow for running `hugo mod get` was adapted to allow for passing `-u=patch`
instead of only being able to pass `-u`.

Fixes #9127

3 years agoMake sure file mounts higher up wins
Bjørn Erik Pedersen [Sun, 20 Mar 2022 10:24:44 +0000 (11:24 +0100)]
Make sure file mounts higher up wins

Fixes #9693

3 years agoresources/images: Require width and height for Crop, Fill, and Fit
Joe Mooring [Sun, 20 Mar 2022 17:55:02 +0000 (10:55 -0700)]
resources/images: Require width and height for Crop, Fill, and Fit

Closes #9696

3 years agoall: gofmt -w -r 'interface{} -> any' .
Bjørn Erik Pedersen [Thu, 17 Mar 2022 21:03:27 +0000 (22:03 +0100)]
all: gofmt -w -r 'interface{} -> any' .

Updates #9687

3 years agodartsass: Enable deprecation, @warn and @debug logging
Bjørn Erik Pedersen [Thu, 17 Mar 2022 16:22:34 +0000 (17:22 +0100)]
dartsass: Enable deprecation, @warn and @debug logging

* @warn and Sass deprecations are printed as WARN
* @debug is currently logged as INFO (needs the `--verbose` flag). We may adjust this if it gets too chatty.

Fixes #9683

3 years agoUse revision etc. from debug.BuildInfo
Bjørn Erik Pedersen [Thu, 17 Mar 2022 08:27:11 +0000 (09:27 +0100)]
Use revision etc. from debug.BuildInfo

Fixes #9680

3 years agoreleaser: Prepare repository for 0.96.0-DEV vanilla/release-0.95.0
hugoreleaser [Wed, 16 Mar 2022 15:00:05 +0000 (15:00 +0000)]
releaser: Prepare repository for 0.96.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.95.0 v0.95.0
hugoreleaser [Wed, 16 Mar 2022 14:20:17 +0000 (14:20 +0000)]
releaser: Bump versions for release of 0.95.0

[ci skip]

3 years agoreleaser: Add release notes for 0.95.0
hugoreleaser [Wed, 16 Mar 2022 14:20:17 +0000 (14:20 +0000)]
releaser: Add release notes for 0.95.0
[ci skip]

3 years agoreadme: Add note about Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:20:30 +0000 (13:20 +0100)]
readme: Add note about Go 1.18

3 years agotpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break...
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:11:29 +0000 (13:11 +0100)]
tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug

3 years agoreadme: Add a contribution note
Bjørn Erik Pedersen [Wed, 16 Mar 2022 12:09:17 +0000 (13:09 +0100)]
readme: Add a contribution note

3 years agogithub: Make it build with Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 09:41:08 +0000 (10:41 +0100)]
github: Make it build with Go 1.18

I also ran some benchmarks comparing it to Go 1.17.8:

```bash
name                                      old time/op    new time/op    delta
SiteNew/Regular_Bundle_with_image-10        5.13ms ± 7%    4.23ms ± 7%  -17.47%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    5.12ms ± 1%    4.16ms ± 1%  -18.65%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10      17.3ms ± 2%    15.1ms ± 1%  -12.53%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10             106ms ± 1%      90ms ± 0%  -15.86%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        34.0ms ± 1%    30.0ms ± 2%  -11.72%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        22.7ms ± 2%    20.2ms ± 1%  -10.93%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      16.7ms ± 0%    14.6ms ± 1%  -12.89%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         22.2ms ± 1%    19.5ms ± 1%  -12.07%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               7.71ms ± 0%    6.59ms ± 1%  -14.52%  (p=0.029 n=4+4)

name                                      old alloc/op   new alloc/op   delta
SiteNew/Regular_Bundle_with_image-10        2.07MB ± 0%    2.04MB ± 0%   -1.40%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    1.85MB ± 0%    1.83MB ± 0%   -1.54%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10      11.8MB ± 0%    11.1MB ± 0%   -6.11%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10            95.8MB ± 0%    95.2MB ± 0%   -0.63%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        27.4MB ± 0%    26.9MB ± 0%   -1.68%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        15.2MB ± 0%    14.4MB ± 0%   -4.93%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      8.45MB ± 0%    8.24MB ± 0%   -2.43%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         16.5MB ± 0%    16.2MB ± 0%   -1.78%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               3.73MB ± 0%    3.64MB ± 0%   -2.30%  (p=0.029 n=4+4)

name                                      old allocs/op  new allocs/op  delta
SiteNew/Regular_Bundle_with_image-10         25.0k ± 0%     24.1k ± 0%   -3.60%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10     25.1k ± 0%     24.1k ± 0%   -3.60%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10        237k ± 0%      234k ± 0%   -1.29%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10              365k ± 0%      363k ± 0%   -0.47%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10          284k ± 0%      279k ± 0%   -1.98%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10          252k ± 0%      249k ± 0%   -1.48%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10        117k ± 0%      115k ± 0%   -1.68%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10           184k ± 0%      181k ± 0%   -1.74%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10                49.9k ± 0%     48.5k ± 0%   -2.79%  (p=0.029 n=4+4)
```

3 years agotpl: Adjustments and an integration test for Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 08:04:30 +0000 (09:04 +0100)]
tpl: Adjustments and an integration test for Go 1.18

Updates #9677

3 years agoRemove Go 1.17 support
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:57:58 +0000 (08:57 +0100)]
Remove Go 1.17 support

Go 1.18 had some breaking changes on source level meaning we cannot build on older Go versions anymore.

The improvements in Go 1.18 (e.g. `break` and `continue`)  were to good to pass on.

Note that you don't need Go (or Go 1.18) to run a pre-built binary.

Updates #9677

3 years agotpl: Sync go_templates for Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:48:16 +0000 (08:48 +0100)]
tpl: Sync go_templates for Go 1.18

Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774

Updates #9677

3 years agobuild: Bump to Go 1.18
Bjørn Erik Pedersen [Wed, 16 Mar 2022 07:43:18 +0000 (08:43 +0100)]
build: Bump to Go 1.18

Updates #9677

3 years agodartsass: Improve error message when no read access
Bjørn Erik Pedersen [Tue, 15 Mar 2022 07:54:56 +0000 (08:54 +0100)]
dartsass: Improve error message when no read access

Fixes #9662

3 years agoFix and refactor typos
Cathrine Paulsen [Thu, 10 Mar 2022 13:10:21 +0000 (14:10 +0100)]
Fix and refactor typos

3 years agoImprove server startup/shutdown
Bjørn Erik Pedersen [Mon, 14 Mar 2022 15:34:23 +0000 (16:34 +0100)]
Improve server startup/shutdown

Closes #9671

3 years agocommands: Improve server tests
Bjørn Erik Pedersen [Fri, 11 Mar 2022 07:07:37 +0000 (08:07 +0100)]
commands: Improve server tests

Updates #9647

3 years agoreleaser: Prepare repository for 0.95.0-DEV vanilla/release-0.94.2
hugoreleaser [Sat, 12 Mar 2022 11:02:38 +0000 (11:02 +0000)]
releaser: Prepare repository for 0.95.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.94.2 v0.94.2
hugoreleaser [Sat, 12 Mar 2022 10:28:41 +0000 (10:28 +0000)]
releaser: Bump versions for release of 0.94.2

[ci skip]

3 years agoreleaser: Add release notes for 0.94.2
hugoreleaser [Sat, 12 Mar 2022 10:28:41 +0000 (10:28 +0000)]
releaser: Add release notes for 0.94.2
[ci skip]

3 years agodeps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10
Bjørn Erik Pedersen [Sat, 12 Mar 2022 09:45:31 +0000 (10:45 +0100)]
deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10

Fixes #9658

3 years agoreleaser: Prepare repository for 0.95.0-DEV vanilla/release-0.94.1
hugoreleaser [Fri, 11 Mar 2022 14:30:03 +0000 (14:30 +0000)]
releaser: Prepare repository for 0.95.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.94.1 v0.94.1
hugoreleaser [Fri, 11 Mar 2022 13:53:32 +0000 (13:53 +0000)]
releaser: Bump versions for release of 0.94.1

[ci skip]

3 years agoreleaser: Add release notes for 0.94.1
hugoreleaser [Fri, 11 Mar 2022 13:53:32 +0000 (13:53 +0000)]
releaser: Add release notes for 0.94.1
[ci skip]

3 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Fri, 11 Mar 2022 13:47:27 +0000 (14:47 +0100)]
docs: Regenerate CLI docs

3 years agodeps: Fix Goldmark regression with HTML comments
Bjørn Erik Pedersen [Fri, 11 Mar 2022 12:13:18 +0000 (13:13 +0100)]
deps: Fix Goldmark regression with HTML comments

Fixes #9650

3 years agoRevert "Allow rendering static files to disk and dynamic to memory in server mode"
Bjørn Erik Pedersen [Fri, 11 Mar 2022 08:48:20 +0000 (09:48 +0100)]
Revert "Allow rendering static files to disk and dynamic to memory in server mode"

This reverts commit 7d8011ed63d587b87a7c182748914fe146590093.

Updates #9647

3 years agoRevert "Some minor adjustments to the new static filesystem logic"
Bjørn Erik Pedersen [Fri, 11 Mar 2022 08:48:09 +0000 (09:48 +0100)]
Revert "Some minor adjustments to the new static filesystem logic"

This reverts commit 63bb2a5b18193602fd442ebafdc85bc36fe05ad2.

3 years agoreleaser: Prepare repository for 0.95.0-DEV vanilla/release-0.94.0
hugoreleaser [Thu, 10 Mar 2022 10:25:00 +0000 (10:25 +0000)]
releaser: Prepare repository for 0.95.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.94.0 v0.94.0
hugoreleaser [Thu, 10 Mar 2022 09:46:35 +0000 (09:46 +0000)]
releaser: Bump versions for release of 0.94.0

[ci skip]

3 years agoreleaser: Add release notes for 0.94.0
hugoreleaser [Thu, 10 Mar 2022 09:46:35 +0000 (09:46 +0000)]
releaser: Add release notes for 0.94.0
[ci skip]

3 years agodocs: Regenerate docshelper
Bjørn Erik Pedersen [Thu, 10 Mar 2022 09:08:04 +0000 (10:08 +0100)]
docs: Regenerate docshelper

3 years agoRevert "markup/highlight: Add hl_inline option"
Bjørn Erik Pedersen [Thu, 10 Mar 2022 09:06:22 +0000 (10:06 +0100)]
Revert "markup/highlight: Add hl_inline option"

This reverts commit a360cab75a073c2a8d47dcd27f52a6847e8d8d13.

3 years agoFail with error when double-rendering text in markdownify/RenderString
Bjørn Erik Pedersen [Thu, 10 Mar 2022 07:19:03 +0000 (08:19 +0100)]
Fail with error when double-rendering text in markdownify/RenderString

This commit prevents the most commons case of infinite recursion in link render hooks when the `linkify` option is enabled (see below). This is always a user error, but getting a `stack overflow` (the current stack limit in Go is 1 GB on 64-bit, 250 MB on 32-bit) error isn't very helpful. This fix will not prevent all such errors, though, but we may do better once #9570 is in place.

So, these will fail:

```
<a href="{{ .Destination | safeURL }}" >{{ .Text | markdownify }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | .Page.RenderString }}</a>
```

`.Text` is already rendered to `HTML`. The above needs to be rewritten to:

```
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
<a href="{{ .Destination | safeURL }}" >{{ .Text | safeHTML }}</a>
```

Fixes #8959

3 years agomarkup/goldmark: Default to https for linkify
Bjørn Erik Pedersen [Wed, 9 Mar 2022 17:26:32 +0000 (18:26 +0100)]
markup/goldmark: Default to https for linkify

Fixes #9639

3 years agoAdd lang attribute to internal alias template
Joe Mooring [Wed, 2 Mar 2022 04:27:52 +0000 (20:27 -0800)]
Add lang attribute to internal alias template

Closes #9586

3 years agodocs: Regenerate docshelper
Bjørn Erik Pedersen [Wed, 9 Mar 2022 10:33:53 +0000 (11:33 +0100)]
docs: Regenerate docshelper

3 years agomarkup/highlight: Add hl_inline option
Bjørn Erik Pedersen [Wed, 9 Mar 2022 09:45:02 +0000 (10:45 +0100)]
markup/highlight: Add hl_inline option

If set to true, the highlighted code will not be wrapped in any div.

Closes #9442

3 years agominifiers: Make keepWhitespace = false default for HTML (note)
Joe Mooring [Wed, 9 Mar 2022 06:48:18 +0000 (22:48 -0800)]
minifiers: Make keepWhitespace = false default for HTML (note)

Closes #9456

3 years agomarkup/goldmark/codeblocks: Fix slice bounds out of range
Bjørn Erik Pedersen [Tue, 8 Mar 2022 19:10:19 +0000 (20:10 +0100)]
markup/goldmark/codeblocks: Fix slice bounds out of range

For the Position in code blocks we try to match the .Inner with the original source. This isn't always possible.

This commits avoids panics in these situations.

Fixes #9627

3 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Tue, 8 Mar 2022 18:40:50 +0000 (19:40 +0100)]
docs: Regenerate CLI docs

3 years agodocs: Regenerate docshelper
Bjørn Erik Pedersen [Tue, 8 Mar 2022 18:40:07 +0000 (19:40 +0100)]
docs: Regenerate docshelper

3 years agoMerge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
Bjørn Erik Pedersen [Tue, 8 Mar 2022 18:39:33 +0000 (19:39 +0100)]
Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'

3 years agoSquashed 'docs/' changes from 3f95a2ace..a393f4cf4
Bjørn Erik Pedersen [Tue, 8 Mar 2022 18:37:17 +0000 (19:37 +0100)]
Squashed 'docs/' changes from 3f95a2ace..a393f4cf4

a393f4cf4 Add a Spellcheck GitHub Action and config
8b6b1c381 netlify: Bump to Hugo 0.93.3
84515c183 Delete deployment-with-nanobox.md
dd45f9899 Fix typos in docs
e69de81a9 Update build-options.md
7745b7891 netlify: Hubo 0.93.2
037d63364 Clarify GitHub Pages Branches
94660c34b add missing %s
325de15e2 fix link to latest release note since the release notes were moved to GitHub: https://gohugo.io/news/no-more-releasenotes-here/
dbff41d01 Update introduction.md
0ecd627f7 netlify: Hugo 0.93.1
a74e16582 Update diagrams.md
33e310956 Add Goat example to test styling
fa0100a5b Update diagrams.md
64ac75367 Adjust diagram docs
f1d600044 Update theme
95bedff1a netlify: Bump to Hugo 0.93.0
849a8437f Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
c0c60c43c docs: Regenerate docs helper
2c63fe518 cod: Regen CLI docs
f33ba4e5a CodeblockContext method renames
979b47968 Move the Goat template to the correct place
2df37e9e8 Add Markdown diagrams and render hooks for code blocks
bd8037d43 Allow images to be cropped without being resized
8b2af4b49 modules: Add modules.Workspace config for Go 1.18
46b99dea1 Add --printUnusedTemplates
1285302c9 commands: Rename --i18n-warnings to printI18nWarnings
dea2242c6 commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
db782ea46 deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0

git-subtree-dir: docs
git-subtree-split: a393f4cf43829011e96d109de2f039a9b05b2d16

3 years agoCache reflect.MethodByName
Bjørn Erik Pedersen [Tue, 8 Mar 2022 09:06:12 +0000 (10:06 +0100)]
Cache reflect.MethodByName

The isolated benchmark for the function is obviously much faster:

```bash
name                old time/op    new time/op    delta
GetMethodByName-10    1.21µs ± 7%    0.23µs ± 5%   -81.42%  (p=0.029 n=4+4)

name                old alloc/op   new alloc/op   delta
GetMethodByName-10      680B ± 0%        0B       -100.00%  (p=0.029 n=4+4)

name                old allocs/op  new allocs/op  delta
GetMethodByName-10      20.0 ± 0%       0.0       -100.00%  (p=0.029 n=4+4)
```

But more pleasing is the overall performance looking at the site benchmarks:

```bash
name                                      old time/op    new time/op    delta
SiteNew/Regular_Bundle_with_image-10        6.25ms ± 2%    6.10ms ± 2%     ~     (p=0.057 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    6.30ms ± 2%    5.66ms ±11%     ~     (p=0.057 n=4+4)
SiteNew/Regular_Tags_and_categories-10      22.2ms ± 2%    17.4ms ± 1%  -21.88%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10             108ms ± 0%     107ms ± 0%   -1.20%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        36.1ms ± 1%    33.8ms ± 1%   -6.44%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        24.9ms ± 1%    22.6ms ± 1%   -9.30%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      17.9ms ± 1%    16.7ms ± 1%   -6.43%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         23.3ms ± 1%    22.0ms ± 0%   -5.58%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               8.00ms ± 1%    7.63ms ± 0%   -4.62%  (p=0.029 n=4+4)

name                                      old alloc/op   new alloc/op   delta
SiteNew/Regular_Bundle_with_image-10        2.10MB ± 0%    2.07MB ± 0%   -1.46%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10    1.88MB ± 0%    1.85MB ± 0%   -1.76%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10      13.5MB ± 0%    11.6MB ± 0%  -13.99%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10            96.1MB ± 0%    95.8MB ± 0%   -0.40%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10        28.4MB ± 0%    27.3MB ± 0%   -3.83%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10        16.9MB ± 0%    15.1MB ± 0%  -10.58%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10      8.98MB ± 0%    8.44MB ± 0%   -6.04%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10         17.1MB ± 0%    16.5MB ± 0%   -3.91%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10               3.92MB ± 0%    3.72MB ± 0%   -5.03%  (p=0.029 n=4+4)

name                                      old allocs/op  new allocs/op  delta
SiteNew/Regular_Bundle_with_image-10         25.8k ± 0%     24.9k ± 0%   -3.49%  (p=0.029 n=4+4)
SiteNew/Regular_Bundle_with_JSON_file-10     25.8k ± 0%     24.9k ± 0%   -3.49%  (p=0.029 n=4+4)
SiteNew/Regular_Tags_and_categories-10        288k ± 0%      233k ± 0%  -18.90%  (p=0.029 n=4+4)
SiteNew/Regular_Canonify_URLs-10              375k ± 0%      364k ± 0%   -2.80%  (p=0.029 n=4+4)
SiteNew/Regular_Deep_content_tree-10          314k ± 0%      283k ± 0%   -9.77%  (p=0.029 n=4+4)
SiteNew/Regular_TOML_front_matter-10          302k ± 0%      252k ± 0%  -16.55%  (p=0.029 n=4+4)
SiteNew/Regular_Many_HTML_templates-10        133k ± 0%      117k ± 0%  -11.81%  (p=0.029 n=4+4)
SiteNew/Regular_Page_collections-10           202k ± 0%      183k ± 0%   -9.55%  (p=0.029 n=4+4)
SiteNew/Regular_List_terms-10                55.6k ± 0%     49.8k ± 0%  -10.40%  (p=0.029 n=4+4)
```

Thanks to @quasilyte for the suggestion.

Fixes 9386

3 years agoreleaser: Remove the GitHub link syntax around release contributors
Bjørn Erik Pedersen [Tue, 8 Mar 2022 18:36:13 +0000 (19:36 +0100)]
releaser: Remove the GitHub link syntax around release contributors

Fixes #9581

3 years agoSome minor adjustments to the new static filesystem logic
Bjørn Erik Pedersen [Tue, 8 Mar 2022 16:43:48 +0000 (17:43 +0100)]
Some minor adjustments to the new static filesystem logic

Closes #9625

3 years agoAllow rendering static files to disk and dynamic to memory in server mode
SatowTakeshi [Sun, 18 Apr 2021 07:13:00 +0000 (16:13 +0900)]
Allow rendering static files to disk and dynamic to memory in server mode

Updates #9625

3 years agobuild(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9
dependabot[bot] [Thu, 3 Mar 2022 08:03:55 +0000 (08:03 +0000)]
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.9

Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/kyokomi/emoji/releases)
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.8...v2.2.9)

---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25
dependabot[bot] [Fri, 4 Mar 2022 08:04:06 +0000 (08:04 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.14.23 to 0.14.25

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.23 to 0.14.25.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.14.23...v0.14.25)

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

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2
dependabot[bot] [Fri, 4 Mar 2022 08:03:59 +0000 (08:03 +0000)]
build(deps): bump github.com/niklasfasching/go-org from 1.6.0 to 1.6.2

Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/niklasfasching/go-org/releases)
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.6.0...v1.6.2)

---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0
dependabot[bot] [Tue, 8 Mar 2022 08:03:40 +0000 (08:03 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.90.0 to 0.91.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.90.0...v0.91.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>
3 years agoreleaser: Prepare repository for 0.94.0-DEV vanilla/release-0.93.3
hugoreleaser [Tue, 8 Mar 2022 10:50:30 +0000 (10:50 +0000)]
releaser: Prepare repository for 0.94.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.93.3 v0.93.3
hugoreleaser [Tue, 8 Mar 2022 10:15:27 +0000 (10:15 +0000)]
releaser: Bump versions for release of 0.93.3

[ci skip]

3 years agoreleaser: Add release notes for 0.93.3
hugoreleaser [Tue, 8 Mar 2022 10:15:27 +0000 (10:15 +0000)]
releaser: Add release notes for 0.93.3
[ci skip]

3 years agoRemove the decorator from the fs used in ReadDir
Bjørn Erik Pedersen [Mon, 7 Mar 2022 17:08:39 +0000 (18:08 +0100)]
Remove the decorator from the fs used in ReadDir

There have been a site breakage reported in the wild after 0.93.1. With this commit we shoudl be back to how it behaved in 0.92.2.

Closes #9609

3 years agoUpdate stale.yml
Bjørn Erik Pedersen [Tue, 8 Mar 2022 08:09:38 +0000 (09:09 +0100)]
Update stale.yml

operations-per-run: 999

We need to get this done so the notification gets back to normal.

3 years agobuild(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8
dependabot[bot] [Mon, 7 Mar 2022 08:03:11 +0000 (08:03 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.7 to 1.4.8

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.7 to 1.4.8.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.7...v1.4.8)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoRemove the examples/ folder
Bjørn Erik Pedersen [Sat, 5 Mar 2022 14:47:59 +0000 (15:47 +0100)]
Remove the examples/ folder

These are not maintained and do not belong in this repository.

3 years agoreleaser: Prepare repository for 0.94.0-DEV vanilla/release-0.93.2
hugoreleaser [Fri, 4 Mar 2022 12:57:53 +0000 (12:57 +0000)]
releaser: Prepare repository for 0.94.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.93.2 v0.93.2
hugoreleaser [Fri, 4 Mar 2022 12:21:48 +0000 (12:21 +0000)]
releaser: Bump versions for release of 0.93.2

[ci skip]

3 years agoreleaser: Add release notes for 0.93.2
hugoreleaser [Fri, 4 Mar 2022 12:21:48 +0000 (12:21 +0000)]
releaser: Add release notes for 0.93.2
[ci skip]

3 years agotpl/os: Revert readDir in theme behaviour
Bjørn Erik Pedersen [Fri, 4 Mar 2022 06:07:11 +0000 (07:07 +0100)]
tpl/os: Revert readDir in theme behaviour

Fixes #9599

3 years agomarkup/goldmark: Escape image alt attribute
Joe Mooring [Wed, 2 Mar 2022 17:30:57 +0000 (09:30 -0800)]
markup/goldmark: Escape image alt attribute

Fixes #9594

3 years agoreleaser: Prepare repository for 0.94.0-DEV vanilla/release-0.93.1
hugoreleaser [Wed, 2 Mar 2022 12:52:43 +0000 (12:52 +0000)]
releaser: Prepare repository for 0.94.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.93.1 v0.93.1
hugoreleaser [Wed, 2 Mar 2022 12:16:06 +0000 (12:16 +0000)]
releaser: Bump versions for release of 0.93.1

[ci skip]

3 years agoreleaser: Add release notes for 0.93.1
hugoreleaser [Wed, 2 Mar 2022 12:16:06 +0000 (12:16 +0000)]
releaser: Add release notes for 0.93.1
[ci skip]

3 years agotpl/transform: Fix it when template.HTML is passes as option to Hightlight
Bjørn Erik Pedersen [Wed, 2 Mar 2022 09:44:29 +0000 (10:44 +0100)]
tpl/transform: Fix it when template.HTML is passes as option to Hightlight

Fixes #9591

3 years agotpl/partials: Fix partialCached deadlock regression
Bjørn Erik Pedersen [Wed, 2 Mar 2022 09:04:29 +0000 (10:04 +0100)]
tpl/partials: Fix partialCached deadlock regression

This is a rollback of  0927cf739fee9646c7fb917965799d9acf080922

We cannot do that change until we either completes #9570 or possibly also use the new TryLock in GO 1.18.

Fixes #9588
Opens #4086

3 years agotpl/collections: Fix apply when function have Context as first arg
Bjørn Erik Pedersen [Tue, 1 Mar 2022 10:30:11 +0000 (11:30 +0100)]
tpl/collections: Fix apply when function have Context as first arg

As introduced in `partial` and `partialCached` in Hugo 0.93.0.

Fixes #9585

3 years agoSquashed 'docs/' changes from 93f7baf80..3f95a2ace
Bjørn Erik Pedersen [Mon, 28 Feb 2022 09:37:27 +0000 (10:37 +0100)]
Squashed 'docs/' changes from 93f7baf80..3f95a2ace

3f95a2ace Update merge function examples (#1662)
e8d518011 requires -> require typo fix (#1666)
e714066cb Update GitLab deployment instructions (#1661)
11946a218 update GitLab CI/CD yaml syntax (#1649)
3568ddc03 Add explicit `contentDir` to module-config-mounts (#1658)
798ac8f68 Add default value to isHTML
d376565ce Create extensions.json

git-subtree-dir: docs
git-subtree-split: 3f95a2ace37b04851905d72e4444020e30996787

3 years agoMerge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
Bjørn Erik Pedersen [Mon, 28 Feb 2022 09:37:27 +0000 (10:37 +0100)]
Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'

3 years agoreleaser: Prepare repository for 0.94.0-DEV vanilla/release-0.93.0
hugoreleaser [Mon, 28 Feb 2022 09:05:08 +0000 (09:05 +0000)]
releaser: Prepare repository for 0.94.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.93.0 v0.93.0
hugoreleaser [Mon, 28 Feb 2022 08:30:42 +0000 (08:30 +0000)]
releaser: Bump versions for release of 0.93.0

[ci skip]

3 years agoreleaser: Add release notes for 0.93.0
hugoreleaser [Mon, 28 Feb 2022 08:30:42 +0000 (08:30 +0000)]
releaser: Add release notes for 0.93.0
[ci skip]