Skip to content

Commit

Permalink
Autogenerated docs and setup for dom-ready
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 6, 2019
1 parent 7d98658 commit ba00cbb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
23 changes: 22 additions & 1 deletion packages/dom-ready/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@ domReady( function() {

## Browser support

See https://make.wordpress.org/design/handbook/design-guide/browser-support/
See <https://make.wordpress.org/design/handbook/design-guide/browser-support/>

## API

<!-- START TOKEN(Autogenerated API docs) -->

### default

[src/index.js#L20-L20](src/index.js#L20-L20)

Specify a function to execute when the DOM is fully loaded.

**Parameters**

- **callback** `Function`: A function to execute after the DOM is ready.

**Returns**

`void`


<!-- END TOKEN(Autogenerated API docs) -->

<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
6 changes: 6 additions & 0 deletions packages/dom-ready/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
"dependencies": {
"@babel/runtime": "^7.3.1"
},
"devDependencies": {
"@wordpress/docgen": "file:../docgen"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"docs:generate": "docgen ./src/index.js --output ./README.md --to-token"
}
}

0 comments on commit ba00cbb

Please sign in to comment.