-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/*: replace manual fenced code blocks
This removes several uses of "```" to format code on the page, and replaces them with "{{{with code ...}}}". This benefits us by increasing automated "cue fmt" coverage of the examples on the site, and by engaging syntax highlighting without manual language markers. Some examples of "```" remain, such as where an environment variable is being demonstrated; or inside the language guide and spec, which aren't being updated on the master branch currently. One example in the modules reference triggers cue-lang/cue#722, and ends up with a leading comment being incorrectly indented; this issue is fixed, and the example will have its #nofmt removed after the site is updated to use CUE v0.10.0 or later. One page (list-no-duplicates) loses the highlighting of specific lines in some examples. This is acceptable in light of the changes anticipated by cue-lang/docs-and-content#171, which are likely to result in this page being completely rewritten or subsumed into another howto guide. Preview-Path: /docs/howto/list-no-duplicates/ Preview-Path: /docs/introduction/ Preview-Path: /docs/reference/modules/ Signed-off-by: Jonathan Matthews <[email protected]> Change-Id: I1a15a52ddf979ad6ee44bc8950d5e67892bfeb2f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1198345 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
1 parent
5f144a0
commit 7815e00
Showing
9 changed files
with
106 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package site | ||
{ | ||
content: { | ||
docs: { | ||
howto: { | ||
"list-no-duplicates": { | ||
page: { | ||
cache: { | ||
code: { | ||
strings: "tUA4fTPKEfvNHRV8lR2+DQ+u7Jep+R1iwOPHmQBNsGc=" | ||
ints: "FlhuhgcOgDeEB8phKrYSGuddNzrSJRCH9gFwsSg1lnc=" | ||
"struct from map": "YVLF55Zn+ViilTYvvbyv+sJIw39SdTz8yU3euB02mMw=" | ||
"auxiliary field": "gH/VIz4swoyPEZzH7oh1CGX7X1ptmFNUI5eX6ma0Jeg=" | ||
"multiple keys": "WUEtLdYf78zDNNuaX3ghuuvGZI0lSl6WF5qZkjzVG3s=" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package site | ||
{ | ||
content: { | ||
docs: { | ||
reference: { | ||
modules: { | ||
page: { | ||
cache: { | ||
code: { | ||
"module.cue schema": "uJoDP+C60NnJWdKp3+GaPNkgmYAupxIjfBdVM+8lzAo=" | ||
"module.cue example": "ErBNI5DX2Nx+54qTxPdnaD8TKQeCHPhcLD+LQW7apv0=" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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