Fix docs linting issues
This commit is contained in:
parent
c1fc1de772
commit
e0996bd6f2
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
```javascript
|
||||||
m("brick-deck[selected-index=0]", [/* ... */]) // lowercase
|
m("brick-deck[selected-index=0]", [/* ... */]) // lowercase
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ var User = {
|
||||||
module.exports = 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.*
|
*Note: third-party cookies may have to be enabled for the REM endpoint to work.*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,7 @@ async function lintAll({useCache}) {
|
||||||
"**/changelog.md",
|
"**/changelog.md",
|
||||||
"**/migration-*.md",
|
"**/migration-*.md",
|
||||||
"**/node_modules/**",
|
"**/node_modules/**",
|
||||||
|
"**/recent-changes.md"
|
||||||
],
|
],
|
||||||
nodir: true,
|
nodir: true,
|
||||||
})
|
})
|
||||||
|
|
@ -309,6 +310,7 @@ if (require.main === module) {
|
||||||
"**/changelog.md",
|
"**/changelog.md",
|
||||||
"**/migration-*.md",
|
"**/migration-*.md",
|
||||||
"**/node_modules/**",
|
"**/node_modules/**",
|
||||||
|
"**/recent-changes.md"
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
.on("add", lintOne)
|
.on("add", lintOne)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue