From 107c25b79a70385481c0f29f2b03a3b6e43029a7 Mon Sep 17 00:00:00 2001 From: Matt Nield <64328730+matthewjnield@users.noreply.github.com> Date: Thu, 15 May 2025 13:24:27 -0400 Subject: [PATCH] chore: Update links (#2956) This commit updates several links which are outdated and now redirect to different URLs on the updated Deno website and documentation. There are a few dozen instances of URLs starting with `https:://deno.land/x` and `https:://deno.land/std`. I left these alone since they are dependencies. Would it make sense to update these from the versions hosted at `deno.land` to their JSR equivalents, since that is the new and preferred location of the Deno Standard Library packages as well as other JavaScript/TypeScript packages used by Deno projects? For example, the latest version of the Deno Standard Library is now hosted at `https://jsr.io/@std` instead of `https://deno.land/std`. ![image](https://github.com/user-attachments/assets/7416da3b-3867-4d8f-9a1a-79e6a11ddb46) --------- Co-authored-by: Marvin Hagemeister --- README.md | 2 +- docs/latest/concepts/server-configuration.md | 8 ++++---- docs/latest/getting-started/create-a-project.md | 4 ++-- docs/latest/getting-started/index.md | 4 ++-- docs/latest/getting-started/running-locally.md | 2 +- init/src/init.ts | 3 ++- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index eb7d3553..e52dcfae 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The [documentation](https://fresh.deno.dev/docs/introduction) is available on ## 🚀 Getting started -Install the latest [Deno CLI](https://deno.land/) version. +Install the latest [Deno CLI](https://deno.com/) version. You can scaffold a new project by running the Fresh init script. To scaffold a project run the following: diff --git a/docs/latest/concepts/server-configuration.md b/docs/latest/concepts/server-configuration.md index 77407a20..7e6a35b8 100644 --- a/docs/latest/concepts/server-configuration.md +++ b/docs/latest/concepts/server-configuration.md @@ -167,10 +167,10 @@ The `basePath` is also applied to the `src` and `srcset` attribute of ## Server -Now that Deno has stabilized [Deno.serve](https://deno.land/api?s=Deno.serve) -and Fresh has switched to using this API, all server configuration options are -embedded in `server` inside the `FreshConfig`. The fully expanded set of -parameters looks like this: +Now that Deno has stabilized +[Deno.serve](https://docs.deno.com/api/deno/~/Deno.serve) and Fresh has switched +to using this API, all server configuration options are embedded in `server` +inside the `FreshConfig`. The fully expanded set of parameters looks like this: ```ts server: { diff --git a/docs/latest/getting-started/create-a-project.md b/docs/latest/getting-started/create-a-project.md index 61397584..b8433cdc 100644 --- a/docs/latest/getting-started/create-a-project.md +++ b/docs/latest/getting-started/create-a-project.md @@ -55,6 +55,6 @@ respectively: Finally a **`static/`** folder is created that contains static files that are automatically served "as is". [Learn more about static files][static-files]. -[import-map]: https://docs.deno.com/runtime/manual/basics/import_maps -[task-runner]: https://deno.land/manual/tools/task_runner +[import-map]: https://docs.deno.com/runtime/fundamentals/modules +[task-runner]: https://docs.deno.com/runtime/reference/cli/task [static-files]: ../concepts/static-files diff --git a/docs/latest/getting-started/index.md b/docs/latest/getting-started/index.md index 8e36e58d..61cc8aa0 100644 --- a/docs/latest/getting-started/index.md +++ b/docs/latest/getting-started/index.md @@ -20,5 +20,5 @@ nice with Deno. Documentation for this can also be found [in the manual][manual-editors]. [deno-deploy]: https://deno.com/deploy -[manual-installation]: https://deno.land/manual/getting_started/installation -[manual-editors]: https://deno.land/manual/getting_started/setup_your_environment +[manual-installation]: https://docs.deno.com/runtime/getting_started/installation +[manual-editors]: https://docs.deno.com/runtime/getting_started/setup_your_environment diff --git a/docs/latest/getting-started/running-locally.md b/docs/latest/getting-started/running-locally.md index c0e86429..ca6c7439 100644 --- a/docs/latest/getting-started/running-locally.md +++ b/docs/latest/getting-started/running-locally.md @@ -61,4 +61,4 @@ If you now visit http://localhost:8000, you can see the running project. Try change some of the text in `routes/index.tsx` and see how the page updates automatically when you save the file. -[--watch]: https://deno.land/manual/getting_started/command_line_interface#watch-mode +[--watch]: https://docs.deno.com/runtime/getting_started/command_line_interface/#watch-mode diff --git a/init/src/init.ts b/init/src/init.ts index aa16d6c7..7e7c9065 100644 --- a/init/src/init.ts +++ b/init/src/init.ts @@ -603,7 +603,8 @@ Started" guide here: https://fresh.deno.dev/docs/getting-started ### Usage -Make sure to install Deno: https://deno.land/manual/getting_started/installation +Make sure to install Deno: +https://docs.deno.com/runtime/getting_started/installation Then start the project in development mode: