From c28757f379fd1141c817b21ce2fe4dd86b29cd8c Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sun, 27 Sep 2020 03:12:33 -0700 Subject: [PATCH] docs: update GitHub doc links to use $CLI_VERSION (#7710) --- docs/getting_started/typescript.md | 2 +- docs/runtime.md | 10 +++++----- docs/standard_library.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md index ee799f844a..47f7505b44 100644 --- a/docs/getting_started/typescript.md +++ b/docs/getting_started/typescript.md @@ -33,7 +33,7 @@ To export a type in a different file use `import type` and `export type` where necessary by setting the `isolatedModules` TypeScript compiler option to `true`, and the `importsNotUsedAsValues` to `error`. You can see an example `tsconfig.json` with this option -[in the standard library](https://github.com/denoland/deno/blob/master/std/tsconfig_test.json). +[in the standard library](https://github.com/denoland/deno/blob/$CLI_VERSION/std/tsconfig_test.json). These settings will be enabled by default in the future. They are already the default in Deno 1.4 or above when using `--unstable`. diff --git a/docs/runtime.md b/docs/runtime.md index f035d75b44..010884968e 100644 --- a/docs/runtime.md +++ b/docs/runtime.md @@ -13,16 +13,16 @@ The detailed documentation for implemented Web APIs can be found on [doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.shared_globals.d.ts). Additionally, a full list of the Web APIs which Deno implements is also available -[in the repository](https://github.com/denoland/deno/blob/master/cli/rt/README.md). +[in the repository](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/rt/README.md). The TypeScript definitions for the implemented web APIs can be found in the -[`lib.deno.shared_globals.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.shared_globals.d.ts) +[`lib.deno.shared_globals.d.ts`](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/dts/lib.deno.shared_globals.d.ts) and -[`lib.deno.window.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.window.d.ts) +[`lib.deno.window.d.ts`](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/dts/lib.deno.window.d.ts) files. Definitions that are specific to workers can be found in the -[`lib.deno.worker.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.worker.d.ts) +[`lib.deno.worker.d.ts`](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/dts/lib.deno.worker.d.ts) file. ## `Deno` global @@ -32,7 +32,7 @@ It has the APIs for reading from files, opening TCP sockets, and executing subprocesses, etc. The TypeScript definitions for the Deno namespaces can be found in the -[`lib.deno.ns.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.ns.d.ts) +[`lib.deno.ns.d.ts`](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/dts/lib.deno.ns.d.ts) file. The documentation for all of the Deno specific APIs can be found on diff --git a/docs/standard_library.md b/docs/standard_library.md index 319b53b156..b2110b6eb4 100644 --- a/docs/standard_library.md +++ b/docs/standard_library.md @@ -69,7 +69,7 @@ deno run --allow-read --allow-write --unstable main.ts ``` To make sure that API producing error is unstable check -[`lib.deno.unstable.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.unstable.d.ts) +[`lib.deno.unstable.d.ts`](https://github.com/denoland/deno/blob/$CLI_VERSION/cli/dts/lib.deno.unstable.d.ts) declaration. This problem should be fixed in the near future. Feel free to omit the flag if