Skip to content

Commit

Permalink
Use new script
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 6, 2019
1 parent ed38a2f commit 81e3ecf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bin/update-readmes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const packages = [
//'blocks',
//'compose',
//'data',
//'date',
'date',
//'deprecated',
//'dom',
//'dom-ready',
Expand Down
14 changes: 7 additions & 7 deletions packages/date/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Formats a date (like `date()` in PHP), in the site's timezone.

**Returns**

`string` Formatted date.
`string`: Formatted date.

### dateI18n

Expand All @@ -45,7 +45,7 @@ Formats a date (like `dateI18n()` in PHP).

**Returns**

`string` Formatted date.
`string`: Formatted date.

### format

Expand All @@ -60,7 +60,7 @@ Formats a date. Does not alter the date's timezone.

**Returns**

`string` Formatted date.
`string`: Formatted date.

### getDate

Expand All @@ -74,7 +74,7 @@ Create and return a JavaScript Date Object from a date string in the WP timezone

**Returns**

`Date` Date
`Date`: Date

### gmdate

Expand All @@ -89,7 +89,7 @@ Formats a date (like `date()` in PHP), in the UTC timezone.

**Returns**

`string` Formatted date.
`string`: Formatted date.

### isInTheFuture

Expand All @@ -103,7 +103,7 @@ Check whether a date is considered in the future according to the WordPress sett

**Returns**

`boolean` Is in the future.
`boolean`: Is in the future.

### setSettings

Expand All @@ -123,7 +123,7 @@ Returns the currently defined date settings.

**Returns**

`Object` Settings, including locale data.
`Object`: Settings, including locale data.


<!-- END TOKEN(Autogenerated API docs) -->
Expand Down
6 changes: 0 additions & 6 deletions packages/date/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@
"moment": "^2.22.1",
"moment-timezone": "^0.5.16"
},
"devDependencies": {
"@wordpress/docgen": "file:../docgen"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"docs:generate": "docgen ./src/index.js --output ./README.md --to-token"
}
}

0 comments on commit 81e3ecf

Please sign in to comment.