From e0996bd6f23fe6e469019c9d126bf8d95be15cff Mon Sep 17 00:00:00 2001 From: Pierre-Yves Date: Tue, 24 Jan 2023 16:12:25 +0100 Subject: [PATCH] Fix docs linting issues --- docs/hyperscript.md | 2 +- docs/simple-application.md | 2 +- scripts/lint-docs.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/hyperscript.md b/docs/hyperscript.md index 8528ba641..6f4fdfd36 100644 --- a/docs/hyperscript.md +++ b/docs/hyperscript.md @@ -219,7 +219,7 @@ m("a-scene", [ ]) ``` -And yes, this translates to both attributes and properties, and it works just like they would in the DOM. Using [Brick's `brick-deck`](http://brick.mozilla.io/docs/brick-deck) as an example, they have a `selected-index` attribute with a corresponding `selectedIndex` getter/setter property. +And yes, this translates to both attributes and properties, and it works just like they would in the DOM. Using Brick's `brick-deck` (DEAD LINK, FIXME: http //brick.mozilla.io/docs/brick-deck) as an example, they have a `selected-index` attribute with a corresponding `selectedIndex` getter/setter property. ```javascript m("brick-deck[selected-index=0]", [/* ... */]) // lowercase diff --git a/docs/simple-application.md b/docs/simple-application.md index 0e6b40fd8..1736e1b2c 100644 --- a/docs/simple-application.md +++ b/docs/simple-application.md @@ -80,7 +80,7 @@ var User = { module.exports = User ``` -Then we can add an `m.request` call to make an XHR request. For this tutorial, we'll make XHR calls to the [REM](https://rem-rest-api.herokuapp.com/) API, a mock REST API designed for rapid prototyping. This API returns a list of users from the `GET https://rem-rest-api.herokuapp.com/api/users` endpoint. Let's use `m.request` to make an XHR request and populate our data with the response of that endpoint. +Then we can add an `m.request` call to make an XHR request. For this tutorial, we'll make XHR calls to the REM (DEAD LINK, FIXME: https //rem-rest-api.herokuapp.com/) API, a mock REST API designed for rapid prototyping. This API returns a list of users from the `GET https://rem-rest-api.herokuapp.com/api/users` endpoint. Let's use `m.request` to make an XHR request and populate our data with the response of that endpoint. *Note: third-party cookies may have to be enabled for the REM endpoint to work.* diff --git a/scripts/lint-docs.js b/scripts/lint-docs.js index 693510847..1ac1c0f76 100644 --- a/scripts/lint-docs.js +++ b/scripts/lint-docs.js @@ -281,6 +281,7 @@ async function lintAll({useCache}) { "**/changelog.md", "**/migration-*.md", "**/node_modules/**", + "**/recent-changes.md" ], nodir: true, }) @@ -309,6 +310,7 @@ if (require.main === module) { "**/changelog.md", "**/migration-*.md", "**/node_modules/**", + "**/recent-changes.md" ], }) .on("add", lintOne)