summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-03-01tpl/strings: Add BenchmarkTruncateBjørn Erik Pedersen
2023-03-01cods: Regen docs helperBjørn Erik Pedersen
2023-03-01Move the Related doc counter to prevent a raceBjørn Erik Pedersen
Closes #10768
2023-03-01Misc ioutil deprecation adjustmentsBjørn Erik Pedersen
To make the tests pass. * Replace io => os.ReadFile in magefile.go * Adjust failing image test vs fs.DirEntry * Adjust poller test See #10732
2023-03-01Replace deprecated ioutil with io and osOleksandr Redko
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
2023-03-01Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'Bjørn Erik Pedersen
2023-03-01Squashed 'docs/' changes from 36dd5483f..6e32d0591Bjørn Erik Pedersen
6e32d0591 Update quick-start.md (#1984) eddd25ff4 Mermaid: reflect latest docs specifications b2a23b6f5 Mermaid: switch to ESM import 43d83c131 Update index.md git-subtree-dir: docs git-subtree-split: 6e32d05910fb9d623ef26b647def10ea0e00cd15
2023-03-01build(deps): bump github.com/tdewolff/parse/v2 from 2.6.4 to 2.6.5dependabot[bot]
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse) from 2.6.4 to 2.6.5. - [Release notes](https://github.com/tdewolff/parse/releases) - [Commits](https://github.com/tdewolff/parse/compare/v2.6.4...v2.6.5) --- updated-dependencies: - dependency-name: github.com/tdewolff/parse/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27build(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17dependabot[bot]
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.16 to 0.0.17. - [Release notes](https://github.com/mattn/go-isatty/releases) - [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17) --- updated-dependencies: - dependency-name: github.com/mattn/go-isatty dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27build(deps): bump golang.org/x/imagedependabot[bot]
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.0.0-20211028202545-6944b10bf410 to 0.5.0. - [Release notes](https://github.com/golang/image/releases) - [Commits](https://github.com/golang/image/commits/v0.5.0) --- updated-dependencies: - dependency-name: golang.org/x/image dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27Remove unused temp directoryOleksandr Redko
2023-02-26exif: Return the proper exposure time value in some special casesWaltCuller
Return value in float64 if exposure time is int or greater than 1, otherwise return in fraction. Fixes #10738
2023-02-25Add a page template funcBjørn Erik Pedersen
Fixes #9339
2023-02-24dartsass: Import CSS without extension at compile timeJoe Mooring
Applicable to Dart Sass only: - Sass imports with the .css extension indicate a plain CSS @import. - Sass imports without the .css extension are imported at compile time. Fixes #10592
2023-02-24Split parse and render for GoldmarkBjørn Erik Pedersen
This also speeds up situations where you only need the fragments/toc and not the rendered content, e.g. Related with fragments type indexing: ```bash name old time/op new time/op delta RelatedSite-10 12.3ms ± 2% 10.7ms ± 1% -12.95% (p=0.029 n=4+4) name old alloc/op new alloc/op delta RelatedSite-10 38.6MB ± 0% 38.2MB ± 0% -1.08% (p=0.029 n=4+4) name old allocs/op new allocs/op delta RelatedSite-10 117k ± 0% 115k ± 0% -1.36% (p=0.029 n=4+4) ``` Fixes #10750
2023-02-23related: Add config option cardinalityThresholdBjørn Erik Pedersen
Fixes #10744
2023-02-23 docs: Another fix related docs exampleBjørn Erik Pedersen
2023-02-23docs: Fix related docs exampleBjørn Erik Pedersen
2023-02-23build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0dependabot[bot]
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23Fix shortcode error when closing without .InnerBjørn Erik Pedersen
Fixes #10672
2023-02-23Throw an error when shortcode is expected to be closedBjørn Erik Pedersen
Fixes #10675
2023-02-23Add some shortcode testcasesBjørn Erik Pedersen
Closes #10671
2023-02-23sass: Remove some unused leftover codeBjørn Erik Pedersen
2023-02-23resources/sass: Remove debug statementsJoe Mooring
Closes #10470
2023-02-23Squashed 'docs/' changes from 1214f6ffb..36dd5483fBjørn Erik Pedersen
36dd5483f Clarify placement of 404 template 6f0a5f3f0 Update urls.Parse.md c8070e578 Remove reference to Internet Explorer conditional comments (#1975) 3e3458f09 Describe default source map behavior for js.build (#1974) 08c9ed09a Simplify ordinal abbreviation example... (#1970) b5aa8d598 docs(markdownify): mention a context limitation (#1968) 596af47f5 Fixing typo in configuration.md doc (#1966) c47cadfcb Fix `hardWraps` config spelling (#1964) 5739a174e Add detail to tabWidth highlighting option 73a4bcd1f doc: Add hugo-lyra search engine (#1959) 6cc9ebdfd Update uniq function example (#1963) 686a65cf6 Update uniq.md 096f794d0 Update uniq.md 914ca0c38 remove `version` from SVG example (#1957) 58347d41f Update theme 7c806371f Fix 404 error for CloudCannon community learn docs (#1955) 58e42b03d Update theme fd0385ee2 Update theme 513b7a43a Update findRe.md 4d39137ef Update configuration.md b1c3b58a7 Update configuration.md f827cce8d Update configuration.md 3d72ed8fb netlify: Hugo 0.110.0 e6f969c87 Merge branch 'feat/config-rename' 4c0b5a0b5 dos: Regen CLI docs 05d9db705 docs: Regen docshelper f73bdb6e5 Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382' e83141f88 Format config 4cadf795e Rename config.toml -> hugo.toml c8aa8617f Move config/_default/config.toml -> config.toml 2943c031a Add fill HTTP Response info into .Data in resources.GetRemote git-subtree-dir: docs git-subtree-split: 36dd5483fb8efb6db4488bbaca5f6ac855f8ffea
2023-02-23Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'Bjørn Erik Pedersen
2023-02-22page: Move the cache double check right after the lockBjørn Erik Pedersen
2023-02-22page: Add some concurrency to the building of the related page indexBjørn Erik Pedersen
But only in the case where we know that we will need to access the Page fragments/tableofcontents. In normal situations this will spread naturally across the CPU cores, but not in the situation where `site.RegularPages.Related` gets called as part of e.g. the single template. ```bash name old time/op new time/op delta RelatedSite-10 18.0ms ± 2% 11.9ms ± 1% -34.17% (p=0.029 n=4+4) name old alloc/op new alloc/op delta RelatedSite-10 38.6MB ± 0% 38.6MB ± 0% ~ (p=0.114 n=4+4) name old allocs/op new allocs/op delta RelatedSite-10 117k ± 0% 117k ± 0% +0.23% (p=0.029 n=4+4) ``` See #10711
2023-02-22related: Adjust benchmarkBjørn Erik Pedersen
2023-02-22create: Fix typo in error messageAaron Hooper
2023-02-22tocss: Simplify the hugo:vars type handlingBjørn Erik Pedersen
Instead of maintaing a list of all CSS units and functions this commit: * Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types. * These regexps may have some false positives -- e.g. strings that needs to be quoted. * For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted` * For the opposite case: `"32" | css.Unquoted` Updates #10632
2023-02-22resource_transformers/tocss: Fixed hugo:vars castingAcClassic
Variables passed via the hugo:vars function where passed as type string. This caused problems when using the variables in sass functions because these expect a specific type. Now we check if the passed variables have to be quoted and therefore are of type string or if they should not be quoted and let the type interpretation up to the sass compiler. Fixes #10632
2023-02-22Adjust tests for GO 1.20Bjørn Erik Pedersen
Updates #10691
2023-02-22tpl/internal: Sync Go template src to Go 1.20Bjørn Erik Pedersen
Updates #10691
2023-02-22build: Update to Go 1.20Bjørn Erik Pedersen
Updates #10691
2023-02-21Add page fragments support to RelatedBjørn Erik Pedersen
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`. You can do this by: * Configure one or more indices with type `fragments` * The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link page<->fragment and page<->page. * This also will index all the fragments (heading identifiers) of the pages. It's also possible to use type `fragments` indices in shortcode, e.g.: ``` {{ $related := site.RegularPages.Related .Page }} ``` But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts. This commit also: * Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with index type `fragments` and `enableFilter` set to true. * Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument. * Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will soon become usefil, e.g. in #9339. Closes #10711 Updates #9339 Updates #10725
2023-02-21related: Adjust benchmarkBjørn Erik Pedersen
To make it easier to compare.
2023-02-21related: Add benchmarkBjørn Erik Pedersen
2023-02-08tpl/collections: Improve error message in IndexBjørn Erik Pedersen
2023-02-07Make the HTML collector parsing more robustBjørn Erik Pedersen
Most notably better handling self-closing elements Closes #10698
2023-02-05Revert "build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0"Bjørn Erik Pedersen
This reverts commit 87c78bd3e918f258bc1a4b0e8acdcec11b69bd35. There seem to be some breaking changes in the above that needs to be looked into.
2023-02-05deps: Upgrade github.com/yuin/goldmark v1.5.3 => v1.5.4Joe Mooring
Closes #10661
2023-02-05tpl/strings: Add strings.ContainsNonSpaceBjørn Erik Pedersen
2023-02-05build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.114.0dependabot[bot]
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.110.0 to 0.114.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.110.0...v0.114.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-02-05deps: Upgrade github.com/alecthomas/chroma v2.4.0 => v2.5.0Joe Mooring
Fixes #9890 Fixes #10692
2023-02-05markup: Fix linenos codeblock hl option case regressionKhayyam Saleem
This fixes a regression introduced in v0.93.0 where previously, a mixed-case key for lineNos would be successfully parsed. This change moves the configuration key lowercasing step into the configuration normalization stage, which is called whether the highlighting config is being parsed from a `string` or a `map`. Fixes #10682
2023-02-05Fix slow HTML elements collector for the pre caseBjørn Erik Pedersen
``` name old time/op new time/op delta ElementsCollectorWriterPre-10 25.2µs ± 1% 3.4µs ± 0% -86.54% (p=0.029 n=4+4) name old alloc/op new alloc/op delta ElementsCollectorWriterPre-10 624B ± 0% 142B ± 0% -77.18% (p=0.029 n=4+4) name old allocs/op new allocs/op delta ElementsCollectorWriterPre-10 16.0 ± 0% 6.0 ± 0% -62.50% (p=0.029 n=4+4) ``` Fixes #10698
2023-02-05publisher: Add benchmarkBjørn Erik Pedersen
2023-02-03snap: Install dart-sass-embedded for 32-bit ARM (armhf) tooAnthony Fok
See https://github.com/sass/dart-sass-embedded/releases/tag/1.54.7 which "Add[ed] support for 32-bit ARM releases on Linux" on 2022-08-30.
2023-02-03snap: Add read access for ~/.gitconfig.local and ~/.config/git/* tooAnthony Fok
in hugo:gitconfig plug (personal-files interface) in case end users need the flexibility of using additional custom git config files. Fixes #10337