From bafe5f21586ca29522fc118313a58cb354d9a551 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 14 Jul 2023 10:11:58 -0700 Subject: [PATCH 1/6] Ensure relative links have a starting slash --- .markdownlint-cli2.jsonc | 14 ++++++------ files/es/glossary/wrapper/index.md | 2 +- .../canvas_api/tutorial/basic_usage/index.md | 4 ++-- files/es/web/api/indexeddb_api/index.md | 2 +- files/es/web/http/cors/index.md | 2 +- .../asynchronous/introducing_workers/index.md | 4 ++-- .../index.md | 2 +- .../web/api/extendablemessageevent/index.md | 2 +- files/fr/web/html/element/blockquote/index.md | 2 +- .../tutorials/js13kgames/loading/index.md | 2 +- .../contactsmanager/getproperties/index.md | 4 ++-- files/ja/web/api/contactsmanager/index.md | 2 +- .../web/api/contactsmanager/select/index.md | 2 +- files/pt-br/glossary/api/index.md | 2 +- .../css/css_layout/responsive_design/index.md | 2 +- .../mozilla/firefox/releases/1.5/index.md | 2 +- files/pt-br/web/api/worker/index.md | 2 +- .../web/css/_doublecolon_selection/index.md | 2 +- .../using_media_queries/index.md | 2 +- files/pt-br/web/css/width/index.md | 2 +- files/pt-br/web/http/cors/index.md | 2 +- .../guide/working_with_objects/index.md | 4 ++-- .../reference/global_objects/weakset/index.md | 2 +- files/ru/learn/css/css_layout/index.md | 2 +- .../howto/creating_moving_deleting/index.md | 2 +- .../ru/mozilla/firefox/releases/1.5/index.md | 2 +- .../understanding_wcag/perceivable/index.md | 2 +- files/ru/web/api/element/animate/index.md | 2 +- files/ru/web/api/settimeout/index.md | 2 +- files/ru/web/api/webgl_api/index.md | 22 +++++++++---------- files/ru/web/api/websocket/index.md | 4 ++-- .../index.md | 2 +- files/ru/web/html/element/area/index.md | 2 +- .../http/basics_of_http/mime_types/index.md | 2 +- .../guide/indexed_collections/index.md | 2 +- .../guide/working_with_objects/index.md | 4 ++-- .../operators/operator_precedence/index.md | 2 +- .../media/formats/codecs_parameter/index.md | 2 +- files/zh-cn/glossary/node.js/index.md | 2 +- .../images_media_form_elements/index.md | 2 +- .../learn/html/introduction_to_html/index.md | 2 +- .../responsive_images/index.md | 2 +- .../build_your_own_function/index.md | 4 ++-- .../first_steps/what_is_javascript/index.md | 2 +- .../objects/object_building_practice/index.md | 2 +- .../development_environment/index.md | 2 +- .../express_nodejs/routes/index.md | 2 +- files/zh-cn/mozilla/firefox/index.md | 2 +- .../index.md | 2 +- files/zh-cn/web/accessibility/index.md | 2 +- .../document_object_model/whitespace/index.md | 2 +- files/zh-cn/web/css/_doublecolon_cue/index.md | 2 +- .../zh-cn/web/css/margin-inline-end/index.md | 2 +- .../web/css/margin-inline-start/index.md | 2 +- files/zh-cn/web/css/text-transform/index.md | 2 +- files/zh-cn/web/html/element/bdo/index.md | 2 +- .../guide/grammar_and_types/index.md | 2 +- .../guide/indexed_collections/index.md | 2 +- .../reference/global_objects/array/index.md | 4 ++-- .../global_objects/array/lastindexof/index.md | 2 +- .../global_objects/array/toreversed/index.md | 2 +- .../global_objects/array/with/index.md | 2 +- .../reference/global_objects/nan/index.md | 2 +- .../destructuring_assignment/index.md | 2 +- .../reference/operators/void/index.md | 2 +- .../using_web_workers/index.md | 2 +- files/zh-tw/web/http/cors/index.md | 2 +- 67 files changed, 91 insertions(+), 91 deletions(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index aaffae2c888017..0ee686d43e77fc 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -171,13 +171,13 @@ // "replace": " — ", // "searchScope": "text" // }, - // { - // "name": "relative-link", - // "message": "Internal links should start with '/'", - // "searchPattern": "/([\\(\"])[\\w\\-]+\\/docs/g", - // "replace": "$1/en-US/docs", - // "searchScope": "text" - // }, + { + "name": "relative-link", + "message": "Internal links should start with '/'", + "searchPattern": "/([\\(\"])([\\w\\-]+)\\/docs/g", + "replace": "$1/$2/docs", + "searchScope": "text" + }, { "name": "relative-link-path", "message": "Don't use relative paths", diff --git a/files/es/glossary/wrapper/index.md b/files/es/glossary/wrapper/index.md index 02aafdd1039f4d..c9f7e599fab215 100644 --- a/files/es/glossary/wrapper/index.md +++ b/files/es/glossary/wrapper/index.md @@ -15,7 +15,7 @@ Por ejemplo, las librerías SDK de AWS son un ejemplo de wrappers.