Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block-editor: set up auto-generated API docs #14285

Merged
merged 2 commits into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set up auto-docs
  • Loading branch information
oandregal committed Mar 7, 2019
commit d3da143eaa33fd1a8f2d75f23280bedf7bd2bcf6
2 changes: 1 addition & 1 deletion bin/update-readmes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const packages = [
'a11y',
'autop',
'blob',
//'block-editor',
'block-editor',
'block-library',
//'block-serialization-default-parser',
//'blocks',
Expand Down
21 changes: 21 additions & 0 deletions packages/block-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ _This package assumes that your code will run in an **ES2015+** environment. If

Undocumented declaration.

### SETTINGS_DEFAULTS

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

The default editor settings

alignWide boolean Enable/Disable Wide/Full Alignments
colors Array Palette colors
disableCustomColors boolean Whether or not the custom colors are disabled
fontSizes Array Available font sizes
disableCustomFontSizes boolean Whether or not the custom font sizes are disabled
imageSizes Array Available image sizes
maxWidth number Max width to constraint resizing
allowedBlockTypes boolean|Array Allowed block types
hasFixedToolbar boolean Whether or not the editor toolbar is fixed
focusMode boolean Whether the focus mode is enabled or not
styles Array Editor Styles
isRTL boolean Whether the editor is in RTL mode
bodyPlaceholder string Empty post placeholder
titlePlaceholder string Empty title placeholder


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

Expand Down
6 changes: 0 additions & 6 deletions packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@
"refx": "^3.0.0",
"rememo": "^3.0.0"
},
"devDependencies": {
"@wordpress/docgen": "file:../docgen"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"docs:generate": "docgen ./src/index.js --output ./README.md --to-token"
}
}