Skip to content

Commit

Permalink
docs/reference: fix link on modules guide
Browse files Browse the repository at this point in the history
This corrects a same-page link that 404s on the modules reference guide.
It was missed due to Hugo not checking fragment-based link targets on
the same page, and the page being created before we had strong guidance
about using the `relref` shortcode.

For cue-lang/cue#3542.

Preview-Path: /docs/reference/modules/
Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: Ie90731a1ba5a860b011587dd8d73b0bbaba80025
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1205225
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
jpluscplusm committed Dec 4, 2024
1 parent af18aba commit fc84287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/docs/reference/modules/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ package `foo.example/a/b` is imported, and the module `foo.example/a` is in the
build list, CUE will check whether `foo.example/a` contains the
package, in the directory `b`. At least one file with the `.cue` extension must
be present in a directory for it to be considered a package. [Build
constraints](/pkg/go/build/#hdr-Build_Constraints) are not applied for this
constraints](#glos-build-constraint) are not applied for this
purpose. If exactly one module in the build list provides the package, that
module is used. If no modules provide the package or if two or more modules
provide the package, CUE reports an error. The `cue mod tidy` command
Expand Down
2 changes: 1 addition & 1 deletion hugo/content/en/docs/reference/modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ package `foo.example/a/b` is imported, and the module `foo.example/a` is in the
build list, CUE will check whether `foo.example/a` contains the
package, in the directory `b`. At least one file with the `.cue` extension must
be present in a directory for it to be considered a package. [Build
constraints](/pkg/go/build/#hdr-Build_Constraints) are not applied for this
constraints](#glos-build-constraint) are not applied for this
purpose. If exactly one module in the build list provides the package, that
module is used. If no modules provide the package or if two or more modules
provide the package, CUE reports an error. The `cue mod tidy` command
Expand Down

0 comments on commit fc84287

Please sign in to comment.