From eb2ecd699e4451e0284f62764d145abdd14040e2 Mon Sep 17 00:00:00 2001 From: Jonathan Matthews Date: Mon, 29 Jan 2024 18:24:37 +0000 Subject: [PATCH] docs: use github issue link shortcode This replaces 3 manual/markdown links to specific cue-lang/cue issues with links generated by the "issue" Hugo shortcode. Preview-Path: /docs/howto/constrain-the-length-of-a-string/ Preview-Path: /docs/howto/list-no-duplicates/ Preview-Path: /docs/reference/cli/ Signed-off-by: Jonathan Matthews Change-Id: Id6bc04e1ac1ba5ec970577938f460af11e0d05dc Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1176165 Reviewed-by: Paul Jolly TryBot-Result: CUEcueckoo --- content/docs/howto/constrain-the-length-of-a-string/en.md | 2 +- content/docs/howto/list-no-duplicates/en.md | 3 +-- content/docs/reference/cli/_en.md | 4 ++-- .../en/docs/howto/constrain-the-length-of-a-string/index.md | 2 +- hugo/content/en/docs/howto/list-no-duplicates/index.md | 3 +-- hugo/content/en/docs/reference/cli/_index.md | 4 ++-- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/content/docs/howto/constrain-the-length-of-a-string/en.md b/content/docs/howto/constrain-the-length-of-a-string/en.md index bd9b34e76..0cc0a0268 100644 --- a/content/docs/howto/constrain-the-length-of-a-string/en.md +++ b/content/docs/howto/constrain-the-length-of-a-string/en.md @@ -103,5 +103,5 @@ their fields to be of type `string` whilst *also* allowing their byte lengths to be constrained. This pattern will be obsoleted by the `must()` directive, which is tracked -in this CUE Issue: . +in {{< issue 575 />}}. {{< /info >}} diff --git a/content/docs/howto/list-no-duplicates/en.md b/content/docs/howto/list-no-duplicates/en.md index 99426c42b..c19030b61 100644 --- a/content/docs/howto/list-no-duplicates/en.md +++ b/content/docs/howto/list-no-duplicates/en.md @@ -32,8 +32,7 @@ items: list.UniqueItems {{< warning >}} Note that this approach does not work correctly on non-integer values. -See [issue 2192](https://github.com/cue-lang/cue/issues/2192) -for details. +See {{< issue 2192 />}} for details. {{< /warning >}} ## Structs diff --git a/content/docs/reference/cli/_en.md b/content/docs/reference/cli/_en.md index a9ea27837..52ecc7e1f 100644 --- a/content/docs/reference/cli/_en.md +++ b/content/docs/reference/cli/_en.md @@ -6,7 +6,7 @@ toc_hide: false The `cue` CLI's various subcommands display a variety of help texts. -These texts are presented here as plain text, pending changes proposed in issue -[`cue-lang/cue#9`](https://github.com/cue-lang/cue/issues/9). +These texts are presented here as plain text, pending changes proposed in +{{< issue 9 />}}. ## Available help texts diff --git a/hugo/content/en/docs/howto/constrain-the-length-of-a-string/index.md b/hugo/content/en/docs/howto/constrain-the-length-of-a-string/index.md index 37fac6ca1..f1dbea185 100644 --- a/hugo/content/en/docs/howto/constrain-the-length-of-a-string/index.md +++ b/hugo/content/en/docs/howto/constrain-the-length-of-a-string/index.md @@ -103,5 +103,5 @@ their fields to be of type `string` whilst *also* allowing their byte lengths to be constrained. This pattern will be obsoleted by the `must()` directive, which is tracked -in this CUE Issue: . +in {{< issue 575 />}}. {{< /info >}} diff --git a/hugo/content/en/docs/howto/list-no-duplicates/index.md b/hugo/content/en/docs/howto/list-no-duplicates/index.md index 99426c42b..c19030b61 100644 --- a/hugo/content/en/docs/howto/list-no-duplicates/index.md +++ b/hugo/content/en/docs/howto/list-no-duplicates/index.md @@ -32,8 +32,7 @@ items: list.UniqueItems {{< warning >}} Note that this approach does not work correctly on non-integer values. -See [issue 2192](https://github.com/cue-lang/cue/issues/2192) -for details. +See {{< issue 2192 />}} for details. {{< /warning >}} ## Structs diff --git a/hugo/content/en/docs/reference/cli/_index.md b/hugo/content/en/docs/reference/cli/_index.md index a9ea27837..52ecc7e1f 100644 --- a/hugo/content/en/docs/reference/cli/_index.md +++ b/hugo/content/en/docs/reference/cli/_index.md @@ -6,7 +6,7 @@ toc_hide: false The `cue` CLI's various subcommands display a variety of help texts. -These texts are presented here as plain text, pending changes proposed in issue -[`cue-lang/cue#9`](https://github.com/cue-lang/cue/issues/9). +These texts are presented here as plain text, pending changes proposed in +{{< issue 9 />}}. ## Available help texts