Skip to content

Commit 4977e81

Browse files
committed
all: Keep links in sync with new docs site structure
1 parent fe64a68 commit 4977e81

File tree

26 files changed

+51
-54
lines changed

26 files changed

+51
-54
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

@@ -82,10 +82,10 @@ Encode to the WebP format when [processing images]. You can decode WebP images w
8282
[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:
8383
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:
8484

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

9090
Unless your specific deployment needs require the extended/deploy edition, we recommend the extended edition.
9191

‎commands/commandeer.go‎

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

528528
cmd.Long = strings.ReplaceAll(cmd.Long, "COMMAND_NAME", commandName)
529529

‎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
@@ -167,7 +167,7 @@ url: %s
167167
short: "Generate Markdown documentation for the Hugo CLI",
168168
long: `Generate Markdown documentation for the Hugo CLI.
169169
This command is, mostly, used to create up-to-date documentation
170-
of Hugo's command-line interface for https://gohugo.io/.
170+
of Hugo's command-line interface for https://gohugo.io/docs/.
171171
172172
It creates one Markdown file per command with front matter suitable
173173
for rendering in Hugo.`,

‎commands/hugo_windows.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ func init() {
2727
2828
Hugo is a command-line tool for generating static websites.
2929
30-
You need to open PowerShell and run Hugo from there.
31-
32-
Visit https://gohugo.io/ for more information.`
30+
You need to open PowerShell and run Hugo from there.`
3331
}

‎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
@@ -223,7 +223,7 @@ func (c *newCommand) newSiteNextStepsText(path string, format string) string {
223223
nextStepsText.WriteString(`".
224224
5. Start the embedded web server with the command "hugo server --buildDrafts".
225225
226-
See documentation at https://gohugo.io/.`)
226+
See documentation at https://gohugo.io/docs/.`)
227227

228228
return nextStepsText.String()
229229
}

‎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/filesystems/basefs.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,10 @@ func (b *sourceFilesystemsBuilder) createOverlayFs(
709709

710710
patterns, hasLegacyIncludes, hasLegacyExcludes := mount.FilesToFilter()
711711
if hasLegacyIncludes {
712-
hugo.Deprecate("module.mounts.includeFiles", "Replaced by the simpler 'files' setting, see https://gohugo.io/configuration/module/#files", "v0.153.0")
712+
hugo.Deprecate("module.mounts.includeFiles", "Replaced by the simpler 'files' setting, see https://gohugo.io/docs/reference/configuration/modules/#files", "v0.153.0")
713713
}
714714
if hasLegacyExcludes {
715-
hugo.Deprecate("module.mounts.excludeFiles", "Replaced by the simpler 'files' setting, see https://gohugo.io/configuration/module/#files", "v0.153.0")
715+
hugo.Deprecate("module.mounts.excludeFiles", "Replaced by the simpler 'files' setting, see https://gohugo.io/docs/reference/configuration/modules/#files", "v0.153.0")
716716
}
717717

718718
inclusionFilter, err := hglob.NewFilenameFilterV2(patterns)

0 commit comments

Comments
 (0)