From 5ad9e6937710ad3267951ce72d7d2adcc29dd5ca Mon Sep 17 00:00:00 2001 From: Allo Date: Fri, 24 Nov 2023 14:37:42 +0800 Subject: [PATCH] chore: remove localhost links --- .markdownlint.jsonc | 15 +++++++-------- .../your_own_automation_environment/index.md | 2 +- files/ko/webassembly/rust_to_wasm/index.md | 6 +++--- .../server-side/express_nodejs/routes/index.md | 16 ++++++++-------- 4 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc index 97720557a6f467..e3b99afaab5cf6 100644 --- a/.markdownlint.jsonc +++ b/.markdownlint.jsonc @@ -212,15 +212,14 @@ "searchPattern": "/\\]\\(https:\\/\\/developer.mozilla.org\\/(?!en-US\\/blog\\/)/g", "replace": "](/", "searchScope": "text" + }, + { + "name": "localhost-links", + "message": "Don't use localhost for links", + "searchPattern": "/\\]\\(https?:\\/\\/localhost:\\d+\\//g", + "replace": "](/", + "searchScope": "text" } - // XXX Many instances still found in translated content - // { - // "name": "localhost-links", - // "message": "Don't use localhost for links", - // "searchPattern": "/\\]\\(https?:\\/\\/localhost:\\d+\\//g", - // "replace": "](/", - // "searchScope": "text" - // } ] } } diff --git a/files/ja/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md b/files/ja/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md index 7c21f88795c36d..fdad88c284a39c 100644 --- a/files/ja/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md +++ b/files/ja/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md @@ -681,7 +681,7 @@ If you don't want to use a service like Sauce Labs or BrowserStack, you can alwa (update the `.jar` filename) so it matches exactly what file you've got. -4. The server will run on [`http://localhost:4444/wd/hub`](http://localhost:4444/wd/hub) — try going there now to see what you get. +4. The server will run on `http://localhost:4444/wd/hub` — try going there now to see what you get. Now we've got the server running, let's create a demo test that will run on the remote selenium server. diff --git a/files/ko/webassembly/rust_to_wasm/index.md b/files/ko/webassembly/rust_to_wasm/index.md index 1480b7d0ef55e4..29d15161f61924 100644 --- a/files/ko/webassembly/rust_to_wasm/index.md +++ b/files/ko/webassembly/rust_to_wasm/index.md @@ -311,11 +311,11 @@ npm 계정명을 한번 더 입력해야 합니다. 파일들을 모두 만들었으니, 한번 보도록 합시다. ```bash - npm install - npm run serve +npm install +npm run serve ``` -이것은 간단한 웹 서버를 시작합니다. [http://localhost:8080](http://localhost:8080/)을 열면 화면에 `Hello, WebAssembly!` 라고 쓰여진 alert box가 나타납니다. 우리는 성공적으로 JavaScript로부터 Rust를, Rust로부터 JavaScript를 호출하였습니다. +이것은 간단한 웹 서버를 시작합니다. `http://localhost:8080` 을 열면 화면에 `Hello, WebAssembly!` 라고 쓰여진 alert box가 나타납니다. 우리는 성공적으로 JavaScript로부터 Rust를, Rust로부터 JavaScript를 호출하였습니다. ## 결론 diff --git a/files/ru/learn/server-side/express_nodejs/routes/index.md b/files/ru/learn/server-side/express_nodejs/routes/index.md index 9fd65b61667de6..d4f9554eed46d0 100644 --- a/files/ru/learn/server-side/express_nodejs/routes/index.md +++ b/files/ru/learn/server-side/express_nodejs/routes/index.md @@ -613,14 +613,14 @@ app.use("/catalog", catalogRouter); // Add catalog routes to middleware chain. После запуска перейдите к совокупности URL нашей LocalLibrary, и проверьте, что не появляется страница ошибки (HTTP 404). Небольшая часть наших URL для удобства приводится ниже: -- -- -- -- -- -- -- [http://localhost:3000/catalog/book/5846437593935e2f8c2aa226](http://localhost:3000/catalog/book/5846437593935e2f8c2aa226/) -- +- `http://localhost:3000/` +- `http://localhost:3000/catalog` +- `http://localhost:3000/catalog/books` +- `http://localhost:3000/catalog/bookinstances/` +- `http://localhost:3000/catalog/authors/` +- `http://localhost:3000/catalog/genres/` +- `http://localhost:3000/catalog/book/5846437593935e2f8c2aa226` +- `http://localhost:3000/catalog/book/create` ## Итог