-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/howto: fix fetch-data-over-http flake
This updates /docs/howto/fetch-json-data-http so that it fetches its example JSON data from a local server whilst displaying a publically-available URL on the rendered page. The preprocessor pattern/replacement system is used to perform the switch, instead of swapping out the file with a hidden upload behind the scenes, in order to ensure that the tool file presented is being tested in CI. Fixes cue-lang/cue#3359 Preview-Path: /docs/howto/fetch-json-data-http/ Signed-off-by: Jonathan Matthews <[email protected]> Change-Id: Idc532da6cc8a40c1f1c793b2c4c26ae1db436bd8 Dispatch-Trailer: {"type":"trybot","CL":1199216,"patchset":1,"ref":"refs/changes/16/1199216/1","targetBranch":"master"}
- Loading branch information
1 parent
590f6a5
commit d1259f0
Showing
4 changed files
with
115 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
package site | ||
|
||
content: docs: howto: "fetch-json-data-http": page: _ | ||
content: docs: howto: "fetch-json-data-http": page: { | ||
vars: { | ||
HOSTPORT: "127.1.2.3:4567" | ||
URI: { | ||
pattern: "http://\(HOSTPORT)/" | ||
replacement: "https://proxy.golang.org/cached-only/cuelang.org/go/@v/v0.8.2.info" | ||
} | ||
} | ||
} |
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