From 08cb9dde3c1a9a4820028d53d7889d4f93d46d49 Mon Sep 17 00:00:00 2001 From: "@beer" <47961062+iiio2@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:30:09 +0600 Subject: [PATCH 1/3] docs: fix link for `Nitro` auto imports --- docs/1.guide/1.utils.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/1.guide/1.utils.md b/docs/1.guide/1.utils.md index 7a03f49c2f..48127f80b0 100644 --- a/docs/1.guide/1.utils.md +++ b/docs/1.guide/1.utils.md @@ -58,8 +58,8 @@ Nitro also exposes several built-in utils: - `nitroPlugin(plugin)`{lang=ts} - `getRouteRules(event)`{lang=ts} -::read-more{to="https://github.com/unjs/nitro/blob/main/src/imports.ts"} -Check [the source code](https://github.com/unjs/nitro/blob/main/src/imports.ts) for list of available Nitro auto imports. +::read-more{to="https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts"} +Check [the source code](https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts) for list of available Nitro auto imports. :: ::read-more{to="/guide/typescript"} From 6946c33a89e62b8e8791207a19f3b83c168e574f Mon Sep 17 00:00:00 2001 From: "@beer" <47961062+iiio2@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:01:15 +0600 Subject: [PATCH 2/3] docs: fix link for `Nitro` auto imports --- docs/1.guide/1.utils.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/1.guide/1.utils.md b/docs/1.guide/1.utils.md index 48127f80b0..c5642804e4 100644 --- a/docs/1.guide/1.utils.md +++ b/docs/1.guide/1.utils.md @@ -58,8 +58,8 @@ Nitro also exposes several built-in utils: - `nitroPlugin(plugin)`{lang=ts} - `getRouteRules(event)`{lang=ts} -::read-more{to="https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts"} -Check [the source code](https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts) for list of available Nitro auto imports. +::read-more{to="https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts#L58"} +Check [the source code](https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts#L58) for list of available Nitro auto imports. :: ::read-more{to="/guide/typescript"} From 7f844e5603b952c61178c0ca32cda878f9315a46 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 22 Aug 2024 23:57:26 +0200 Subject: [PATCH 3/3] Apply suggestions from code review --- docs/1.guide/1.utils.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/1.guide/1.utils.md b/docs/1.guide/1.utils.md index c5642804e4..e7fcbecd5b 100644 --- a/docs/1.guide/1.utils.md +++ b/docs/1.guide/1.utils.md @@ -58,8 +58,8 @@ Nitro also exposes several built-in utils: - `nitroPlugin(plugin)`{lang=ts} - `getRouteRules(event)`{lang=ts} -::read-more{to="https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts#L58"} -Check [the source code](https://github.com/unjs/nitro/blob/main/src/core/config/resolvers/imports.ts#L58) for list of available Nitro auto imports. +::read-more{to="https://github.com/unjs/nitro/blob/v2/src/core/config/resolvers/imports.ts#L58"} +Check [the source code](https://github.com/unjs/nitro/blob/v2/src/core/config/resolvers/imports.ts#L58) for list of available Nitro auto imports. :: ::read-more{to="/guide/typescript"}