Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/*: use hugo's "relref" wherever possible
This change makes sure that all markdown links that point towards another page on the site use Hugo's "relref" shortcode to resolve the target. cf. https://gohugo.io/content-management/cross-references/ This is done primarily to enforce build-time target-page existence checking. Whilst Hugo doesn't appear to be able to check that the target page contains the specific *fragment* being linked to, it does check that the page exists. Hugo's docs suggest that one can/should use it to point to a literal file on disk, but we use it to point to the containing directory because it works, and: 1. the file that Hugo sees and would need to have mentioned (index.md) is different from the one that our authors see in the content/ hierarchy ($lang.md); and 2. we currently store a single content file per directory, so there's no ambiguity or corner case where we might need to link to a /specific/ file in a directory. This also updates a few relref arguments to be relative (i.e. not starting with "/") from their current, absolute, form, for consistency. We can revisit this as & when required. Preview-Path: /docs/concept/code-generation-and-extraction-use-case/ Preview-Path: /docs/concept/data-validation-use-case/ Preview-Path: /docs/concept/modules-packages-instances/ Preview-Path: /docs/concept/schema-definition-use-case/ Preview-Path: /docs/howto/constrain-string-as-valid-integer/ Preview-Path: /docs/howto/constrain-the-length-of-a-string/ Preview-Path: /docs/howto/constrain-the-sum-of-a-list-of-numbers/ Preview-Path: /docs/howto/encode-json-yaml-with-cue/ Preview-Path: /docs/howto/mark-a-field-as-optional/ Preview-Path: /docs/howto/mark-a-field-as-required/ Preview-Path: /docs/howto/specify-a-default-value-for-a-field/ Preview-Path: /docs/howto/transform-json-with-cue/ Preview-Path: /docs/howto/transform-yaml-with-cue/ Preview-Path: /docs/howto/validate-json-using-cue/ Preview-Path: /docs/howto/validate-yaml-using-cue/ Preview-Path: /docs/integration/openapi/ Preview-Path: /docs/language-guide/data/maps-and-fields/ Preview-Path: /docs/language-guide/data/organizing-configuration/ Preview-Path: /docs/tour/ Preview-Path: /docs/tour/basics/next/ Preview-Path: /docs/tour/expressions/next/ Preview-Path: /docs/tour/packages/next/ Preview-Path: /docs/tour/references/next/ Preview-Path: /docs/tour/types/next/ Preview-Path: /docs/tour/types/stringlit/ Preview-Path: /docs/tutorial/validating-simple-yaml-files/ Signed-off-by: Jonathan Matthews <github@hello.jonathanmatthews.com> Change-Id: Ic0d8080a7f5aaf7d9db4456fd6895453df8bf689 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1173887 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information
1 parent
68e815a
commit 296e4fa
Showing
46 changed files
with
114 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.