]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
all: Fix typos and some URLs
authorChristian Oliff <christianoliff@pm.me>
Sun, 18 Feb 2024 11:16:30 +0000 (20:16 +0900)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 11:16:30 +0000 (12:16 +0100)
18 files changed:
helpers/general.go
hugofs/component_fs.go
hugolib/content_map_page.go
hugolib/dates_test.go
hugolib/hugo_sites_build.go
hugolib/page__meta.go
hugolib/page__paths.go
hugolib/pagebundler_test.go
hugolib/rebuild_test.go
hugolib/shortcode.go
hugolib/site.go
hugolib/site_render.go
livereload/connection.go
markup/blackfriday/anchors.go
modules/client.go
parser/pageparser/doc.go
resources/transform_test.go
watcher/batcher.go

index 859d1ead79982730e7dcbb069a2b6724cac684fc..c7d9fcd85ed1d177c158b820822893acbb7f06d5 100644 (file)
@@ -188,7 +188,7 @@ func ReaderContains(r io.Reader, subslice []byte) bool {
 //
 // - "Go" (strings.Title)
 // - "AP" (see https://www.apstylebook.com/)
-// - "Chicago" (see http://www.chicagomanualofstyle.org/home.html)
+// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
 // - "FirstUpper" (only the first character is upper case)
 // - "None" (no transformation)
 //
index b6eeb89e5bd6ba9ebfce62ef26fb2472c9095188..f491d4d0fa27ea849dbe2f3a520fcdbf405a0e70 100644 (file)
@@ -59,7 +59,7 @@ type componentFsDir struct {
        fs   *componentFs
 }
 
-// ReadDir reads count entries from this virtual directorie and
+// ReadDir reads count entries from this virtual directory and
 // sorts the entries according to the component filesystem rules.
 func (f *componentFsDir) ReadDir(count int) ([]iofs.DirEntry, error) {
        fis, err := f.DirOnlyOps.(iofs.ReadDirFile).ReadDir(-1)
index d9cbddfba62b055b4b2ba2f5fd834b62a77ea773..ae7468b0ae02519e8a7dcd1826384f8a9ee495af 100644 (file)
@@ -103,16 +103,16 @@ type pageMap struct {
 }
 
 // pageTrees holds pages and resources in a tree structure for all sites/languages.
-// Eeach site gets its own tree set via the Shape method.
+// Each site gets its own tree set via the Shape method.
 type pageTrees struct {
        // This tree contains all Pages.
-       // This include regular pages, sections, taxonimies and so on.
+       // This include regular pages, sections, taxonomies and so on.
        // Note that all of these trees share the same key structure,
        // so you can take a leaf Page key and do a prefix search
        // with key + "/" to get all of its resources.
        treePages *doctree.NodeShiftTree[contentNodeI]
 
-       // This tree contains Resoures bundled in pages.
+       // This tree contains Resources bundled in pages.
        treeResources *doctree.NodeShiftTree[contentNodeI]
 
        // All pages and resources.
@@ -1012,7 +1012,7 @@ func (h *HugoSites) resolveAndClearStateForIdentities(
                                seen := map[string]bool{
                                        change.IdentifierBase(): true,
                                }
-                               // Print the top level dependenies.
+                               // Print the top level dependencies.
                                identity.WalkIdentitiesDeep(change, func(level int, id identity.Identity) bool {
                                        if level > 1 {
                                                return true
index 5443e58521d9b0f4ce80f36f5584f92d4990d3e1..784fc101c615ece552b481f6483db8643b172531 100644 (file)
@@ -169,7 +169,7 @@ ExpiryDate: 2099-07-13 15:28:01 +0000 UTC`
        // have date literals.
 
        // YAML
-       // Note: This is with go-yaml v2, I suspect v3 will fail with the unquouted values.
+       // Note: This is with go-yaml v2, I suspect v3 will fail with the unquoted values.
        b.AssertFileContent("public/en/short-date-yaml-unqouted/index.html", expectShortDateEn)
        b.AssertFileContent("public/nn/short-date-yaml-unqouted/index.html", expectShortDateNn)
        b.AssertFileContent("public/en/short-date-yaml-qouted/index.html", expectShortDateEn)
index 3a046df3b1b278eb8e0241db15143d0947da53cf..93acdbf6bfa2e2606369fc5320242cee940ae873 100644 (file)
@@ -236,7 +236,7 @@ func (h *HugoSites) process(ctx context.Context, l logg.LevelLogger, config *Bui
        return h.processFull(ctx, l, *config)
 }
 
-// assemble creates missing sections, applies agregate values (e.g. dates, cascading params),
+// assemble creates missing sections, applies aggregate values (e.g. dates, cascading params),
 // removes disabled pages etc.
 func (h *HugoSites) assemble(ctx context.Context, l logg.LevelLogger, bcfg *BuildCfg) error {
        l = l.WithField("step", "assemble")
index 34fd096bd1829f625ed81a3469bbcb47dee3d554..03f4d4d196510dcf8834672944c4fa07690ca18e 100644 (file)
@@ -92,7 +92,7 @@ type pageMetaParams struct {
 
 // From page front matter.
 type pageMetaFrontMatter struct {
-       configuredOutputFormats output.Formats // outputs defiend in front matter.
+       configuredOutputFormats output.Formats // outputs defined in front matter.
 }
 
 func (m *pageMetaParams) init(preserveOringal bool) {
@@ -333,7 +333,7 @@ func (ps *pageState) setMetaPost(cascade map[page.PageMatcher]maps.Params) error
 
        }
 
-       // Apply cascades first so they can be overriden later.
+       // Apply cascades first so they can be overridden later.
        if cascade != nil {
                if ps.m.pageConfig.Cascade != nil {
                        for k, v := range cascade {
index 6ae68aa254a2ff69cc28ca6c005d9ce863732bb7..d89388f81e0de64eef9df39fc0293e27d67c2634 100644 (file)
@@ -150,7 +150,7 @@ func createTargetPathDescriptor(p *pageState) (page.TargetPathDescriptor, error)
                opath, _ = url.QueryUnescape(opath)
                if strings.HasSuffix(opath, "//") {
                        // When rewriting the _index of the section the permalink config is applied to,
-                       // we get douple slashes at the end sometimes; clear them up here
+                       // we get double slashes at the end sometimes; clear them up here
                        opath = strings.TrimSuffix(opath, "/")
                }
 
index e4d1248a5ec21627306df552308ffcb2ede22d0a..9f5255c747737bb02e0e909f5aa1cf10437b7685 100644 (file)
@@ -516,7 +516,7 @@ baseURL = "https://example.org"
 disableKinds = ["taxonomy", "term"]
 disableLiveReload = true
 [outputs]
-# This looks odd, but it triggers the behaviour in #5858
+# This looks odd, but it triggers the behavior in #5858
 # The total output formats list gets sorted, so CSS before HTML.
 home = [ "CSS" ]
 -- content/mybundle/index.md --
index 6e43a4570d2767c72231b266a8f76a291c767d48..f599d640dc2d6b56f7603e8be94e0bb7a8e6c6bf 100644 (file)
@@ -462,7 +462,7 @@ func TestRebuildVariations(t *testing.T) {
        files := `
 -- hugo.toml --
 baseURL = "https://example.com"
-disdableKinds = ["term", "taxonomy"]
+disableKinds = ["term", "taxonomy"]
 disableLiveReload = true
 defaultContentLanguage = "nn"
 paginate = 20
@@ -597,7 +597,7 @@ Codeblock Include: {{ .Title }}|
        // - Edit content file direct
        // - Edit content file transitive shortcode
        // - Edit content file transitive render hook
-       // - Rename one languge version of a content file
+       // - Rename one language version of a content file
        // - Delete content file, check site.RegularPages and section.RegularPagesRecursive (length)
        // - Add content file (see above).
        // - Edit shortcode
@@ -1284,7 +1284,7 @@ func benchmarkFilesEdit(count int) string {
        files := `
 -- hugo.toml --
 baseURL = "https://example.com"
-disdableKinds = ["term", "taxonomy"]
+disableKinds = ["term", "taxonomy"]
 disableLiveReload = true
 -- layouts/_default/single.html --
 Single: {{ .Title }}|{{ .Content }}|
index 0ec5d5ce462c8aca9e67349d4e9fdd1e5744717e..7cc2cba278bc7d1aabeb1121ac76c784edee07ec 100644 (file)
@@ -206,7 +206,7 @@ type shortcode struct {
        // Before Hug0 0.55 we didn't send any shortcode output to the markup
        // renderer, and this flag told Hugo to process the {{ .Inner }} content
        // separately.
-       // The old behaviour can be had by starting your shortcode template with:
+       // The old behavior can be had by starting your shortcode template with:
        //    {{ $_hugo_config := `{ "version": 1 }`}}
        doMarkup bool
 
@@ -422,7 +422,7 @@ func doRenderShortcode(
                        }
                }
 
-               // Pre Hugo 0.55 this was the behaviour even for the outer-most
+               // Pre Hugo 0.55 this was the behavior even for the outer-most
                // shortcode.
                if sc.doMarkup && (level > 0 || sc.configVersion() == 1) {
                        var err error
index 8ae09dd0f6e9d7aa3b990c767786666230069d6a..5a58e837318e70c53243c35f57efbb813ba9ab41 100644 (file)
@@ -479,7 +479,7 @@ func (h *HugoSites) fileEventsContentPaths(p []pathChange) []pathChange {
                }
        }
 
-       // Remve all files below dir.
+       // Remove all files below dir.
        if len(dirs) > 0 {
                n := 0
                for _, d := range dirs {
@@ -877,7 +877,7 @@ func (s *Site) render(ctx *siteRenderContext) (err error) {
        if ctx.outIdx == 0 {
                // Note that even if disableAliases is set, the aliases themselves are
                // preserved on page. The motivation with this is to be able to generate
-               // 301 redirects in a .htacess file and similar using a custom output format.
+               // 301 redirects in a .htaccess file and similar using a custom output format.
                if !s.conf.DisableAliases {
                        // Aliases must be rendered before pages.
                        // Some sites, Hugo docs included, have faulty alias definitions that point
index ef3e3aeefdb7800348e0d448ab52993be6f0e52d..1cf4b9a61b4ba1c39ca3c4e86e9f7d668d5f7369 100644 (file)
@@ -47,7 +47,7 @@ type siteRenderContext struct {
 }
 
 // Whether to render 404.html, robotsTXT.txt and similar.
-// These are useually rendered once in the root of public.
+// These are usually rendered once in the root of public.
 func (s siteRenderContext) shouldRenderStandalonePage(kind string) bool {
        if s.multihost || kind == kinds.KindSitemap {
                // 1 per site
index 4e94e2ee0cf6ec6b894b9370ae855d39e717b4fd..0c6c6e1089abbb2218741f4444798b8dd32344d8 100644 (file)
@@ -28,7 +28,7 @@ type connection struct {
        send chan []byte
 
        // There is a potential data race, especially visible with large files.
-       // This is protected by synchronisation of the send channel's close.
+       // This is protected by synchronization of the send channel's close.
        closer sync.Once
 }
 
index 987f46fc6fcc8a2803d2bc9dbc15d5d468decfec..7b0b418545d55d8f76ce55af80580bc2f96a1fb7 100644 (file)
@@ -11,7 +11,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// Package blackfriday holds some copmpability functions for the old Blackfriday v1 Markdown engine.
+// Package blackfriday holds some compability functions for the old Blackfriday v1 Markdown engine.
 package blackfriday
 
 import "unicode"
index 26117fbcf9ef7f1c3d6e804d4d4b2f024fecec14..c3371e0d48cc59af445eebfa138c44411e26350f 100644 (file)
@@ -141,7 +141,7 @@ type Client struct {
        goBinaryStatus goBinaryStatus
 }
 
-// Graph writes a module dependenchy graph to the given writer.
+// Graph writes a module dependency graph to the given writer.
 func (c *Client) Graph(w io.Writer) error {
        mc, coll := c.collect(true)
        if coll.err != nil {
index 43907f3cdc1983f780ff7d683f8e84e311f427ac..96dfb7ce23fecf44e993e23d9adf892638e07a48 100644 (file)
@@ -14,5 +14,5 @@
 // Package pageparser provides a parser for Hugo content files (Markdown, HTML etc.) in Hugo.
 // This implementation is highly inspired by the great talk given by Rob Pike called "Lexical Scanning in Go"
 // It's on YouTube, Google it!.
-// See slides here: http://cuddle.googlecode.com/hg/talk/lex.html
+// See slides here: https://go.dev/talks/2011/lex.slide#1
 package pageparser
index fd152a47c5fdc469911c96aba882ede65a78cc6b..7f91360f190e0bc8a3e621fb7a630a2c085e0fdd 100644 (file)
@@ -185,7 +185,7 @@ func TestTransform(t *testing.T) {
 
                spec := newTestResourceSpec(specDescriptor{c: c})
 
-               // Two transformations with same id, different behaviour.
+               // Two transformations with same id, different behavior.
                t1 := createContentReplacer("t1", "blue", "green")
                t2 := createContentReplacer("t1", "color", "car")
 
index f293552fefb048687bee1dc25af5bf411d2f3fe0..f88f820d2d41426d61e77327dfc3dcc260bb16e9 100644 (file)
@@ -30,7 +30,7 @@ type Batcher struct {
 }
 
 // New creates and starts a Batcher with the given time interval.
-// It will fall back to a poll based watcher if native isn's supported.
+// It will fall back to a poll based watcher if native isn't supported.
 // To always use polling, set poll to true.
 func New(intervalBatcher, intervalPoll time.Duration, poll bool) (*Batcher, error) {
        var err error