Skip to content

Commit 8fa6f94

Browse files
committed
all: Keep links in sync with new docs site structure
1 parent 52561d5 commit 8fa6f94

File tree

20 files changed

+50
-51
lines changed

20 files changed

+50
-51
lines changed

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ organization, tutorials, blog posts, bug reports, issues, feature requests,
77
feature implementations, pull requests, answering questions on the forum,
88
helping to manage issues, etc.
99

10-
The Hugo community and maintainers are [very active](https://github.com/gohugoio/hugo/pulse/monthly) and helpful, and the project benefits greatly from this activity. We created a [step by step guide](https://gohugo.io/tutorials/how-to-contribute-to-hugo/) if you're unfamiliar with GitHub or contributing to open source projects in general.
10+
The Hugo community and maintainers are [very active](https://github.com/gohugoio/hugo/pulse/monthly) and helpful, and the project benefits greatly from this activity. We created a [step by step guide](https://gohugo.io/docs/contribute/development/) if you're unfamiliar with GitHub or contributing to open source projects in general.
1111

1212
*Note that this repository only contains the actual source code of Hugo. For **only** documentation-related pull requests / issues please refer to the [hugoDocs](https://github.com/gohugoio/hugoDocs) repository.*
1313

‎README.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
[contributing]: CONTRIBUTING.md
44
[create a proposal]: https://github.com/gohugoio/hugo/issues/new?labels=Proposal%2C+NeedsTriage&template=feature_request.md
55
[documentation repository]: https://github.com/gohugoio/hugoDocs
6-
[documentation]: https://gohugo.io/documentation
7-
[dragonfly bsd, freebsd, netbsd, and openbsd]: https://gohugo.io/installation/bsd
6+
[documentation]: https://gohugo.io/docs/
7+
[dragonfly bsd, freebsd, netbsd, and openbsd]: https://gohugo.io/docs/installation/bsd/
88
[features]: https://gohugo.io/about/features/
99
[forum]: https://discourse.gohugo.io
1010
[friends]: https://github.com/gohugoio/hugo/graphs/contributors
1111
[go]: https://go.dev/
12-
[hugo modules]: https://gohugo.io/hugo-modules/
13-
[installation]: https://gohugo.io/installation
12+
[modules]: https://gohugo.io/docs/concepts/modules/
13+
[installation]: https://gohugo.io/docs/installation/
1414
[issue queue]: https://github.com/gohugoio/hugo/issues
15-
[linux]: https://gohugo.io/installation/linux
16-
[macos]: https://gohugo.io/installation/macos
15+
[linux]: https://gohugo.io/docs/installation/linux/
16+
[macos]: https://gohugo.io/docs/installation/macos/
1717
[prebuilt binary]: https://github.com/gohugoio/hugo/releases/latest
1818
[requesting help]: https://discourse.gohugo.io/t/requesting-help/9132
1919
[spf13]: https://github.com/spf13
2020
[static site generator]: https://en.wikipedia.org/wiki/Static_site_generator
2121
[support]: https://discourse.gohugo.io
2222
[themes]: https://themes.gohugo.io/
2323
[website]: https://gohugo.io
24-
[windows]: https://gohugo.io/installation/windows
24+
[windows]: https://gohugo.io/docs/installation/windows/
2525

26-
<a href="https://gohugo.io/"><img src="https://raw.githubusercontent.com/gohugoio/gohugoioTheme/master/static/images/hugo-logo-wide.svg?sanitize=true" alt="Hugo" width="565"></a>
26+
<a href="https://gohugo.io/"><img src="https://gohugo.io/images/hugo-logo-wide.svg" alt="Hugo" width="565"></a>
2727

2828
A fast and flexible static site generator built with love by [bep], [spf13], and [friends] in [Go].
2929

@@ -57,7 +57,7 @@ Hugo's fast asset pipelines include:
5757
- Sass processing &ndash; Transpile Sass to CSS, bundle, tree shake, minify, create source maps, perform SRI hashing, and integrate with PostCSS
5858
- Tailwind CSS processing &ndash; Compile Tailwind CSS utility classes into standard CSS, bundle, tree shake, optimize, minify, perform SRI hashing, and integrate with PostCSS
5959

60-
And with [Hugo Modules], you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.
60+
And with Hugo [modules], you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.
6161

6262
See the [features] section of the documentation for a comprehensive summary of Hugo's capabilities.
6363

@@ -80,10 +80,10 @@ Encode to the WebP format when [processing images]. You can decode WebP images w
8080
[Transpile Sass to CSS] using the embedded LibSass transpiler. You can use the [Dart Sass] transpiler with any edition.|:heavy_check_mark:|:heavy_check_mark:
8181
Deploy your site directly to a Google Cloud Storage bucket, an AWS S3 bucket, or an Azure Storage container. See&nbsp;[details].|:x:|:heavy_check_mark:
8282

83-
[dart sass]: https://gohugo.io/functions/css/sass/#dart-sass
84-
[processing images]: https://gohugo.io/content-management/image-processing/
85-
[transpile sass to css]: https://gohugo.io/functions/css/sass/
86-
[details]: https://gohugo.io/hosting-and-deployment/hugo-deploy/
83+
[dart sass]: https://gohugo.io/docs/reference/functions/css/sass/#dart-sass
84+
[processing images]: https://gohugo.io/docs/guides/asset-pipelines/imaging/
85+
[transpile sass to css]: https://gohugo.io/docs/reference/functions/css/sass
86+
[details]: https://gohugo.io/docs/guides/host-and-deploy/deploy-with-hugo-deploy/
8787

8888
Unless your specific deployment needs require the extended/deploy edition, we recommend the extended edition.
8989

‎commands/commandeer.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (r *rootCommand) initRootCommand(subCommandName string, cd *simplecobra.Com
525525
Hugo is a Fast and Flexible Static Site Generator
526526
built with love by spf13 and friends in Go.
527527
528-
Complete documentation is available at https://gohugo.io/.`
528+
Complete documentation is available at https://gohugo.io/docs/.`
529529

530530
cmd.Long = strings.ReplaceAll(cmd.Long, "COMMAND_NAME", commandName)
531531

‎commands/deploy.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ func newDeployCommand() simplecobra.Commander {
3030
short: "Deploy your site to a cloud provider",
3131
long: `Deploy your site to a cloud provider
3232
33-
See https://gohugo.io/hosting-and-deployment/hugo-deploy/ for detailed
34-
documentation.
33+
See https://gohugo.io/docs/guides/host-and-deploy/deploy-with-hugo-deploy/ for detailed documentation.
3534
`,
3635
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
3736
h, err := r.Hugo(flagsToCfgWithAdditionalConfigBase(cd, nil, "deployment"))

‎commands/gen.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ url: %s
162162
short: "Generate Markdown documentation for the Hugo CLI",
163163
long: `Generate Markdown documentation for the Hugo CLI.
164164
This command is, mostly, used to create up-to-date documentation
165-
of Hugo's command-line interface for https://gohugo.io/.
165+
of Hugo's command-line interface for https://gohugo.io/docs/.
166166
167167
It creates one Markdown file per command with front matter suitable
168168
for rendering in Hugo.`,

‎commands/mod.go‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Note that Hugo will always start out by resolving the components defined in the
3030
configuration, provided by a _vendor directory (if no --ignoreVendorPaths flag provided),
3131
Go Modules, or a folder inside the themes directory, in that order.
3232
33-
See https://gohugo.io/hugo-modules/ for more information.
33+
See https://gohugo.io/docs/concepts/modules/ for more information.
3434
3535
`
3636

@@ -82,12 +82,12 @@ so this may/will change in future versions of Hugo.
8282
name: "init",
8383
short: "Initialize this project as a Hugo Module",
8484
long: `Initialize this project as a Hugo Module.
85-
It will try to guess the module path, but you may help by passing it as an argument, e.g:
85+
It will try to guess the module path, but you may help by passing it as an argument, e.g.:
8686
87-
hugo mod init github.com/gohugoio/testshortcodes
87+
hugo mod init github.com/gohugoio/testshortcodes
8888
89-
Note that Hugo Modules supports multi-module projects, so you can initialize a Hugo Module
90-
inside a subfolder on GitHub, as one example.
89+
Note that Hugo Modules supports multi-module projects, so you can initialize a Hugo Module
90+
inside a subfolder on GitHub, as one example.
9191
`,
9292
withc: func(cmd *cobra.Command, r *rootCommand) {
9393
cmd.ValidArgsFunction = cobra.NoFileCompletions
@@ -154,7 +154,7 @@ Note that for vendored modules, that is the version listed and not the one from
154154
withc: func(cmd *cobra.Command, r *rootCommand) {
155155
cmd.ValidArgsFunction = cobra.NoFileCompletions
156156
applyLocalFlagsBuildConfig(cmd, r)
157-
cmd.Flags().StringVarP(&pattern, "pattern", "", "", `pattern matching module paths to clean (all if not set), e.g. "**hugo*"`)
157+
cmd.Flags().StringVarP(&pattern, "pattern", "", "", `pattern matching module paths to clean (all if not set), e.g., "**hugo*"`)
158158
_ = cmd.RegisterFlagCompletionFunc("pattern", cobra.NoFileCompletions)
159159
cmd.Flags().BoolVarP(&all, "all", "", false, "clean entire module cache")
160160
},
@@ -330,7 +330,7 @@ func (c *modCommands) Init(cd *simplecobra.Commandeer) error {
330330
cmd := cd.CobraCommand
331331
cmd.Short = "Manage modules"
332332
cmd.Long = `Various helpers to help manage the modules in your project's dependency graph.
333-
Most operations here requires a Go version installed on your system (>= Go 1.12) and the relevant VCS client (typically Git).
333+
Most operations here require a Go version installed on your system (>= Go 1.18) and the relevant VCS client (typically Git).
334334
This is not needed if you only operate on modules inside /themes or if you have vendored them via "hugo mod vendor".
335335
336336
` + commonUsageMod

‎commands/new.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (c *newCommand) newSiteNextStepsText(path string, format string) string {
218218
nextStepsText.WriteString(`".
219219
5. Start the embedded web server with the command "hugo server --buildDrafts".
220220
221-
See documentation at https://gohugo.io/.`)
221+
See documentation at https://gohugo.io/docs/.`)
222222

223223
return nextStepsText.String()
224224
}

‎common/herrors/error_locator.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type ErrorContext struct {
8686
Position text.Position
8787

8888
// The lexer to use for syntax highlighting.
89-
// https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages
89+
// https://gohugo.io/docs/concepts/syntax-highlighting/#languages
9090
ChromaLexer string
9191
}
9292

‎hugolib/cascade_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ defaultContentLanguageInSubDir = false
515515
createContentFiles("en")
516516

517517
b.WithTemplates("index.html", `
518-
518+
519519
{{ range .Site.Pages }}
520520
{{- .Weight }}|{{ .Kind }}|{{ .Path }}|{{ .Title }}|{{ .Params.icon }}|{{ .Type }}|{{ range .OutputFormats }}{{ .Name }}-{{ end }}|
521521
{{ end }}
@@ -749,7 +749,7 @@ title: "Post 1"
749749
`
750750
b, err := TestE(t, files)
751751
b.Assert(err, qt.IsNotNil)
752-
b.AssertLogContains(`cascade target path "/posts/post-1.de.md" looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see https://gohugo.io/methods/page/path/`)
752+
b.AssertLogContains(`cascade target path "/posts/post-1.de.md" looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see https://gohugo.io/docs/reference/methods/page/path/`)
753753
}
754754

755755
func TestCascadeExtensionInPathIgnore(t *testing.T) {

‎hugolib/hugo_sites_build.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ func (h *HugoSites) render(l logg.LevelLogger, config *BuildCfg) error {
357357
// with the more general try.
358358
if strings.Contains(err.Error(), "can't evaluate field Err in type") {
359359
if strings.Contains(err.Error(), "resource.Resource") {
360-
return fmt.Errorf("%s: Resource.Err was removed in Hugo v0.141.0 and replaced with a new try keyword, see https://gohugo.io/functions/go-template/try/", err)
360+
return fmt.Errorf("%s: Resource.Err was removed in Hugo v0.141.0 and replaced with a new try keyword, see https://gohugo.io/docs/reference/functions/go-template/try/", err)
361361
} else if strings.Contains(err.Error(), "template.HTML") {
362-
return fmt.Errorf("%s: the return type of transform.ToMath was changed in Hugo v0.141.0 and the error handling replaced with a new try keyword, see https://gohugo.io/functions/go-template/try/", err)
362+
return fmt.Errorf("%s: the return type of transform.ToMath was changed in Hugo v0.141.0 and the error handling replaced with a new try keyword, see https://gohugo.io/docs/reference/functions/go-template/try/", err)
363363
}
364364
}
365365
return err

0 commit comments

Comments
 (0)