Skip to content

Commit

Permalink
Fix docs linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pygy committed Jan 24, 2023
1 parent c1fc1de commit e0996bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/hyperscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/simple-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.*

Expand Down
2 changes: 2 additions & 0 deletions scripts/lint-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ async function lintAll({useCache}) {
"**/changelog.md",
"**/migration-*.md",
"**/node_modules/**",
"**/recent-changes.md"
],
nodir: true,
})
Expand Down Expand Up @@ -309,6 +310,7 @@ if (require.main === module) {
"**/changelog.md",
"**/migration-*.md",
"**/node_modules/**",
"**/recent-changes.md"
],
})
.on("add", lintOne)
Expand Down

0 comments on commit e0996bd

Please sign in to comment.