mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
misc: Remove duplicate words in comments
Closes #14936 Closes #14950 Closes #14965
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
28d882ab70
commit
45c00b7c16
@@ -1,7 +1,7 @@
|
||||
package hiter
|
||||
|
||||
// Common iterator functions.
|
||||
// Some of these are are based on this discsussion: https://github.com/golang/go/issues/61898
|
||||
// Some of these are based on this discsussion: https://github.com/golang/go/issues/61898
|
||||
|
||||
import "iter"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"github.com/gohugoio/hugo/docshelper"
|
||||
)
|
||||
|
||||
// This is is just some helpers used to create some JSON used in the Hugo docs.
|
||||
// This is just a helper used to create some JSON used in the Hugo docs.
|
||||
func init() {
|
||||
docsProvider := func() docshelper.DocProvider {
|
||||
cfg := config.New()
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/gohugoio/hugo/docshelper"
|
||||
)
|
||||
|
||||
// This is is just some helpers used to create some JSON used in the Hugo docs.
|
||||
// This is just a helper used to create some JSON used in the Hugo docs.
|
||||
func init() {
|
||||
docsProvider := func() docshelper.DocProvider {
|
||||
var chromaLexers []any
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/gohugoio/hugo/docshelper"
|
||||
)
|
||||
|
||||
// This is is just some helpers used to create some JSON used in the Hugo docs.
|
||||
// This is just a helper used to create some JSON used in the Hugo docs.
|
||||
func init() {
|
||||
docsProvider := func() docshelper.DocProvider {
|
||||
return docshelper.DocProvider{
|
||||
|
||||
@@ -33,7 +33,7 @@ var (
|
||||
rightDelimScNoMarkup = []byte(">}}")
|
||||
leftDelimScWithMarkup = []byte("{{%")
|
||||
rightDelimScWithMarkup = []byte("%}}")
|
||||
leftComment = []byte("/*") // comments in this context us used to to mark shortcodes as "not really a shortcode"
|
||||
leftComment = []byte("/*") // comments in this context are used to mark shortcodes as "not really a shortcode"
|
||||
rightComment = []byte("*/")
|
||||
)
|
||||
|
||||
|
||||
@@ -331,7 +331,7 @@ type SearchOpts struct {
|
||||
// The indices to search in.
|
||||
Indices []string
|
||||
|
||||
// Fragments holds a a list of special keywords that is used
|
||||
// Fragments holds a list of special keywords that is used
|
||||
// for indices configured as type "fragments".
|
||||
// This will match the fragment identifiers of the documents.
|
||||
Fragments []string
|
||||
|
||||
@@ -395,7 +395,7 @@ func (p *PageConfigEarly) CompileForPagesFromDataPre(basePath string, logger log
|
||||
|
||||
// Note that NormalizePathStringBasic will make sure that we don't preserve the unnormalized path.
|
||||
// We do that when we create pages from the file system; mostly for backward compatibility,
|
||||
// but also because people tend to use use the filename to name their resources (with spaces and all),
|
||||
// but also because people tend to use the filename to name their resources (with spaces and all),
|
||||
// and this isn't relevant when creating resources from an API where it's easy to add textual meta data.
|
||||
p.Path = paths.NormalizePathStringBasic(p.Path)
|
||||
|
||||
@@ -499,7 +499,7 @@ func (rc *ResourceConfig) Compile(basePath string, fim hugofs.FileMetaInfo, conf
|
||||
|
||||
// Note that NormalizePathStringBasic will make sure that we don't preserve the unnormalized path.
|
||||
// We do that when we create resources from the file system; mostly for backward compatibility,
|
||||
// but also because people tend to use use the filename to name their resources (with spaces and all),
|
||||
// but also because people tend to use the filename to name their resources (with spaces and all),
|
||||
// and this isn't relevant when creating resources from an API where it's easy to add textual meta data.
|
||||
rc.Path = paths.NormalizePathStringBasic(path.Join(basePath, rc.Path))
|
||||
rc.PathInfo = conf.PathParser().Parse(files.ComponentFolderContent, rc.Path)
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ func NewEmpty() Chain {
|
||||
}
|
||||
|
||||
// Implements contentTransformer
|
||||
// Content is read from the from-buffer and rewritten to to the to-buffer.
|
||||
// Content is read from the from-buffer and rewritten to the to-buffer.
|
||||
type fromToBuffer struct {
|
||||
from *bytes.Buffer
|
||||
to *bytes.Buffer
|
||||
|
||||
Reference in New Issue
Block a user