From f4e76a8652d6f96112491752573b6106108f1d03 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 31 Jul 2018 15:46:27 -0400 Subject: [PATCH 01/14] Auto-generate components documentation manifest --- docs/tool/config.js | 24 ++++++++++++++++++++++-- docs/tool/index.js | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/tool/config.js b/docs/tool/config.js index 9b8f28d20b52b7..3c99a0f40c6304 100644 --- a/docs/tool/config.js +++ b/docs/tool/config.js @@ -3,15 +3,17 @@ */ const glob = require( 'glob' ).sync; const path = require( 'path' ); +const { upperFirst, camelCase } = require( 'lodash' ); const root = path.resolve( __dirname, '../../' ); +const baseRepoUrl = `https://raw.githubusercontent.com/WordPress/gutenberg/master/`; + // These are packages published to NPM as their own node modules. const npmReadyPackages = glob( 'packages/*/package.json' ) .map( ( fileName ) => fileName.split( '/' )[ 1 ] ); -// These are internal-only packages (for now), not yet published as standalone -// node modules. +// These are internal-only packages (for now), not yet published as standalone node modules. const gutenbergPackages = [ 'core-blocks', 'edit-post', @@ -65,5 +67,23 @@ module.exports = { }, rootManifest: path.resolve( __dirname, '../root-manifest.json' ), + componentsManifest: [ + { + title: 'Components', + slug: 'components', + markdown_source: `${ baseRepoUrl }packages/components.md`, + parent: null, + }, + ...glob( 'packages/components/src/*/README.md' ) + .map( ( filePath ) => { + const slug = filePath.split( '/' )[ 3 ]; + return { + title: upperFirst( camelCase( slug ) ), + slug, + markdown_source: `${ baseRepoUrl }${ filePath }`, + parent: 'components', + }; + } ), + ], manifestOutput: path.resolve( __dirname, '../manifest.json' ), }; diff --git a/docs/tool/index.js b/docs/tool/index.js index 9f6d752dd224ad..2ef974b2f383f6 100644 --- a/docs/tool/index.js +++ b/docs/tool/index.js @@ -18,5 +18,5 @@ const dataModuleManifest = getManifest( parsedModules, config.packages ); fs.writeFileSync( config.manifestOutput, - JSON.stringify( rootManifest.concat( dataModuleManifest ), undefined, '\t' ) + JSON.stringify( rootManifest.concat( config.componentsManifest, dataModuleManifest ), undefined, '\t' ) ); From 45d64fe811c88959ea232262c48207fd90e00185 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 31 Jul 2018 15:47:22 -0400 Subject: [PATCH 02/14] Ensure that the packages root doc is defined immediately before its children. --- docs/root-manifest.json | 6 ------ docs/tool/manifest.js | 31 ++++++++++++++++++++----------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/docs/root-manifest.json b/docs/root-manifest.json index 6707b70d8e7a82..a6ba988310e3a0 100644 --- a/docs/root-manifest.json +++ b/docs/root-manifest.json @@ -208,11 +208,5 @@ "slug": "resources", "markdown_source": "https:\/\/raw.githubusercontent.com\/WordPress\/gutenberg\/master\/docs\/outreach\/resources.md", "parent": "outreach" - }, - { - "title": "Packages", - "slug": "packages", - "markdown_source": "https:\/\/raw.githubusercontent.com\/WordPress\/gutenberg\/master\/docs\/packages.md", - "parent": null } ] diff --git a/docs/tool/manifest.js b/docs/tool/manifest.js index 1e5d0520b5108a..19f5a1f026e9e0 100644 --- a/docs/tool/manifest.js +++ b/docs/tool/manifest.js @@ -29,17 +29,26 @@ module.exports = function( parsedNamespaces, packagesConfig ) { } ) ); - const packagesManifest = Object.entries( packagesConfig ).map( ( [ folderName, config ] ) => { - const path = config.isNpmReady === false ? - `https://raw.githubusercontent.com/WordPress/gutenberg/master/${ folderName }/README.md` : - `https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/${ folderName }/README.md`; - return { - title: `@wordpress/${ folderName }`, - slug: `packages-${ folderName }`, - markdown_source: path, - parent: 'packages', - }; - } ); + const packagesManifest = [ + { + title: 'Packages', + slug: 'packages', + markdown_source: 'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/packages.md', + parent: null, + }, + ].concat( + Object.entries( packagesConfig ).map( ( [ folderName, config ] ) => { + const path = config.isNpmReady === false ? + `https://raw.githubusercontent.com/WordPress/gutenberg/master/${ folderName }/README.md` : + `https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/${ folderName }/README.md`; + return { + title: `@wordpress/${ folderName }`, + slug: `packages-${ folderName }`, + markdown_source: path, + parent: 'packages', + }; + } ) + ); return packagesManifest.concat( dataManifest ); }; From 6e6abd8cfbb28f66e8fbd8d43052e48c113fd6aa Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 31 Jul 2018 16:28:43 -0400 Subject: [PATCH 03/14] Ran `npm run docs:build` --- docs/data/data-core-editor.md | 2 +- docs/manifest.json | 198 ++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+), 1 deletion(-) diff --git a/docs/data/data-core-editor.md b/docs/data/data-core-editor.md index 299ebffa4e9644..2fd0940f1d5dcf 100644 --- a/docs/data/data-core-editor.md +++ b/docs/data/data-core-editor.md @@ -1435,4 +1435,4 @@ Returns an action object used in signalling that the editor settings have been u *Parameters* - * settings: Updated settings + * settings: Updated settings \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 8fad33d7258b56..a8e5349337a71e 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -209,6 +209,204 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/outreach/resources.md", "parent": "outreach" }, + { + "title": "Components", + "slug": "components", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components.md", + "parent": null + }, + { + "title": "Autocomplete", + "slug": "autocomplete", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/autocomplete/README.md", + "parent": "components" + }, + { + "title": "BaseControl", + "slug": "base-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/base-control/README.md", + "parent": "components" + }, + { + "title": "Button", + "slug": "button", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/button/README.md", + "parent": "components" + }, + { + "title": "CheckboxControl", + "slug": "checkbox-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/checkbox-control/README.md", + "parent": "components" + }, + { + "title": "DateTime", + "slug": "date-time", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/date-time/README.md", + "parent": "components" + }, + { + "title": "Disabled", + "slug": "disabled", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/disabled/README.md", + "parent": "components" + }, + { + "title": "Draggable", + "slug": "draggable", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/draggable/README.md", + "parent": "components" + }, + { + "title": "DropZone", + "slug": "drop-zone", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/drop-zone/README.md", + "parent": "components" + }, + { + "title": "DropdownMenu", + "slug": "dropdown-menu", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown-menu/README.md", + "parent": "components" + }, + { + "title": "Dropdown", + "slug": "dropdown", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown/README.md", + "parent": "components" + }, + { + "title": "FocusableIframe", + "slug": "focusable-iframe", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/focusable-iframe/README.md", + "parent": "components" + }, + { + "title": "FontSizePicker", + "slug": "font-size-picker", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/font-size-picker/README.md", + "parent": "components" + }, + { + "title": "FormTokenField", + "slug": "form-token-field", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/form-token-field/README.md", + "parent": "components" + }, + { + "title": "HigherOrder", + "slug": "higher-order", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/higher-order/README.md", + "parent": "components" + }, + { + "title": "KeyboardShortcuts", + "slug": "keyboard-shortcuts", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/keyboard-shortcuts/README.md", + "parent": "components" + }, + { + "title": "Modal", + "slug": "modal", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/modal/README.md", + "parent": "components" + }, + { + "title": "NavigableContainer", + "slug": "navigable-container", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/navigable-container/README.md", + "parent": "components" + }, + { + "title": "Notice", + "slug": "notice", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/notice/README.md", + "parent": "components" + }, + { + "title": "Popover", + "slug": "popover", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/popover/README.md", + "parent": "components" + }, + { + "title": "RadioControl", + "slug": "radio-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/radio-control/README.md", + "parent": "components" + }, + { + "title": "RangeControl", + "slug": "range-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/range-control/README.md", + "parent": "components" + }, + { + "title": "Sandbox", + "slug": "sandbox", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/sandbox/README.md", + "parent": "components" + }, + { + "title": "ScrollLock", + "slug": "scroll-lock", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/scroll-lock/README.md", + "parent": "components" + }, + { + "title": "SelectControl", + "slug": "select-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/select-control/README.md", + "parent": "components" + }, + { + "title": "ServerSideRender", + "slug": "server-side-render", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/server-side-render/README.md", + "parent": "components" + }, + { + "title": "SlotFill", + "slug": "slot-fill", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/slot-fill/README.md", + "parent": "components" + }, + { + "title": "TabPanel", + "slug": "tab-panel", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tab-panel/README.md", + "parent": "components" + }, + { + "title": "TextControl", + "slug": "text-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/text-control/README.md", + "parent": "components" + }, + { + "title": "TextareaControl", + "slug": "textarea-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/textarea-control/README.md", + "parent": "components" + }, + { + "title": "ToggleControl", + "slug": "toggle-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/toggle-control/README.md", + "parent": "components" + }, + { + "title": "Tooltip", + "slug": "tooltip", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tooltip/README.md", + "parent": "components" + }, + { + "title": "TreeSelect", + "slug": "tree-select", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tree-select/README.md", + "parent": "components" + }, { "title": "Packages", "slug": "packages", From 4d95a66caf51576387d6b8a15f341268415609a5 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 31 Jul 2018 16:39:33 -0400 Subject: [PATCH 04/14] Automated build of docs based on changes to the `root-manifest.json` file, any change to the docs tooling, and package files that would likely require rebuilding the docs. Also automated running of js and package.json linting. All occurs on a pre-commit hook. --- package-lock.json | 299 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 14 +++ 2 files changed, 313 insertions(+) diff --git a/package-lock.json b/package-lock.json index 38f56b2fc9a3ba..98de92d29b01fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2813,6 +2813,23 @@ } } }, + "@samverschueren/stream-to-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz", + "integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==", + "dev": true, + "requires": { + "any-observable": "^0.3.0" + }, + "dependencies": { + "any-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz", + "integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==", + "dev": true + } + } + }, "@sindresorhus/is": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", @@ -3896,6 +3913,12 @@ "normalize-path": "^2.1.1" } }, + "app-root-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.1.0.tgz", + "integrity": "sha1-mL9lmTJ+zqGZMJhm6BQDaP0uZGo=", + "dev": true + }, "append-transform": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-1.0.0.tgz", @@ -9711,6 +9734,12 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" }, + "get-own-enumerable-property-symbols": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-2.0.1.tgz", + "integrity": "sha512-TtY/sbOemiMKPRUDDanGCSgBYe7Mf0vbRsWnBZ+9yghpZ1MvcpSpuZFjHdEeY/LZjZy0vdLjS77L6HosisFiug==", + "dev": true + }, "get-pkg-repo": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz", @@ -10593,6 +10622,25 @@ "debug": "^3.1.0" } }, + "husky": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz", + "integrity": "sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA==", + "dev": true, + "requires": { + "is-ci": "^1.0.10", + "normalize-path": "^1.0.0", + "strip-indent": "^2.0.0" + }, + "dependencies": { + "normalize-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz", + "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=", + "dev": true + } + } + }, "iconv-lite": { "version": "0.4.23", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", @@ -11089,6 +11137,12 @@ "has": "^1.0.1" } }, + "is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=", + "dev": true + }, "is-resolvable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", @@ -13351,6 +13405,187 @@ "computed-style": "~0.1.3" } }, + "lint-staged": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-7.2.0.tgz", + "integrity": "sha512-jPoIMbmgtWMUrz/l0rhBVa1j6H71zr0rEoxDWBA333PZcaqBvELdg0Sf4tdGHlwrBM0GXaXMVgTRkLTm2vA7Jg==", + "dev": true, + "requires": { + "app-root-path": "^2.0.1", + "chalk": "^2.3.1", + "commander": "^2.14.1", + "cosmiconfig": "^5.0.2", + "debug": "^3.1.0", + "dedent": "^0.7.0", + "execa": "^0.9.0", + "find-parent-dir": "^0.3.0", + "is-glob": "^4.0.0", + "is-windows": "^1.0.2", + "jest-validate": "^23.0.0", + "listr": "^0.14.1", + "lodash": "^4.17.5", + "log-symbols": "^2.2.0", + "micromatch": "^3.1.8", + "npm-which": "^3.0.1", + "p-map": "^1.1.1", + "path-is-inside": "^1.0.2", + "pify": "^3.0.0", + "please-upgrade-node": "^3.0.2", + "staged-git-files": "1.1.1", + "string-argv": "^0.0.2", + "stringify-object": "^3.2.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "execa": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.9.0.tgz", + "integrity": "sha512-BbUMBiX4hqiHZUA5+JujIjNb6TyAlp2D5KLheMjMluwOuzcnylDL4AxZYLLn1n2AGB49eSWwyKvvEQoRpnAtmA==", + "dev": true, + "requires": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-observable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", + "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", + "dev": true, + "requires": { + "symbol-observable": "^1.1.0" + } + }, + "listr": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/listr/-/listr-0.14.1.tgz", + "integrity": "sha512-MSMUUVN1f8aRnPi4034RkOqdiUlpYW+FqwFE3aL0uYNPRavkt2S2SsSpDDofn8BDpqv2RNnsdOcCHWsChcq77A==", + "dev": true, + "requires": { + "@samverschueren/stream-to-observable": "^0.3.0", + "cli-truncate": "^0.2.1", + "figures": "^1.7.0", + "indent-string": "^2.1.0", + "is-observable": "^1.1.0", + "is-promise": "^2.1.0", + "is-stream": "^1.1.0", + "listr-silent-renderer": "^1.1.1", + "listr-update-renderer": "^0.4.0", + "listr-verbose-renderer": "^0.4.0", + "log-symbols": "^1.0.2", + "log-update": "^1.0.2", + "ora": "^0.2.3", + "p-map": "^1.1.1", + "rxjs": "^6.1.0", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "log-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", + "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", + "dev": true, + "requires": { + "chalk": "^1.0.0" + } + } + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "rxjs": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.2.2.tgz", + "integrity": "sha512-0MI8+mkKAXZUF9vMrEoPnaoHkfzBPP4IGwUYRJhIRJF6/w3uByO1e91bEHn8zd43RdkTMKiooYKmwz7RH6zfOQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, "listr": { "version": "0.13.0", "resolved": "https://registry.npmjs.org/listr/-/listr-0.13.0.tgz", @@ -15028,6 +15263,15 @@ } } }, + "npm-path": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/npm-path/-/npm-path-2.0.4.tgz", + "integrity": "sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw==", + "dev": true, + "requires": { + "which": "^1.2.10" + } + }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", @@ -15036,6 +15280,17 @@ "path-key": "^2.0.0" } }, + "npm-which": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/npm-which/-/npm-which-3.0.1.tgz", + "integrity": "sha1-kiXybsOihcIJyuZ8OxGmtKtxQKo=", + "dev": true, + "requires": { + "commander": "^2.9.0", + "npm-path": "^2.0.2", + "which": "^1.2.10" + } + }, "npmlog": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", @@ -15686,6 +15941,15 @@ "find-up": "^2.1.0" } }, + "please-upgrade-node": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", + "integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", + "dev": true, + "requires": { + "semver-compare": "^1.0.0" + } + }, "plur": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/plur/-/plur-3.0.1.tgz", @@ -18202,6 +18466,12 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", + "dev": true + }, "serialize-javascript": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.5.0.tgz", @@ -18651,6 +18921,12 @@ "integrity": "sha1-1PM6tU6OOHeLDKXP07OvsS22hiA=", "dev": true }, + "staged-git-files": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/staged-git-files/-/staged-git-files-1.1.1.tgz", + "integrity": "sha512-H89UNKr1rQJvI1c/PIR3kiAMBV23yvR7LItZiV74HWZwzt7f3YHuujJ9nJZlt58WlFox7XQsOahexwk7nTe69A==", + "dev": true + }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", @@ -18741,6 +19017,12 @@ "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", "dev": true }, + "string-argv": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.0.2.tgz", + "integrity": "sha1-2sMECGkMIfPDYwo/86BYd73L1zY=", + "dev": true + }, "string-length": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", @@ -18774,6 +19056,17 @@ "safe-buffer": "~5.1.0" } }, + "stringify-object": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.2.2.tgz", + "integrity": "sha512-O696NF21oLiDy8PhpWu8AEqoZHw++QW6mUv0UvKZe8gWSdSvMXkiLufK7OmnP27Dro4GU5kb9U7JIO0mBuCRQg==", + "dev": true, + "requires": { + "get-own-enumerable-property-symbols": "^2.0.1", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + } + }, "stringstream": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", @@ -19324,6 +19617,12 @@ } } }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", + "dev": true + }, "tty-browserify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", diff --git a/package.json b/package.json index 41db25ed2c0d27..7f7135a92fd8bd 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,9 @@ "espree": "3.5.4", "extract-text-webpack-plugin": "4.0.0-beta.0", "glob": "7.1.2", + "husky": "0.14.3", "lerna": "3.0.0-beta.21", + "lint-staged": "7.2.0", "mkdirp": "0.5.1", "node-sass": "4.9.2", "path-type": "3.0.0", @@ -161,6 +163,7 @@ "package-plugin": "./bin/build-plugin-zip.sh", "postinstall": "npm run build:packages", "pot-to-php": "./bin/pot-to-php.js", + "precommit": "lint-staged", "publish:check": "npm run build:packages && lerna updated", "publish:dev": "npm run build:packages && lerna publish --npm-tag next", "publish:prod": "npm run build:packages && lerna publish", @@ -176,5 +179,16 @@ "test-unit:watch": "npm run test-unit -- --watch", "test-unit-php": "docker-compose run --rm wordpress_phpunit phpunit", "test-unit-php-multisite": "docker-compose run -e WP_MULTISITE=1 --rm wordpress_phpunit phpunit" + }, + "lint-staged": { + "packages/*/package.json": [ + "wp-scripts lint-pkg-json" + ], + "*.js": [ + "eslint" + ], + "{docs/{root-manifest.json,tool/*.js},packages/{*/src/{actions,selectors}.js,components/src/*/README.md}}": [ + "npm run docs:build" + ] } } From c682113e8b344b675fd096dc0f8bdb375220241c Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Wed, 1 Aug 2018 10:32:12 -0400 Subject: [PATCH 05/14] Ensure that `packages/*/README.md` file changes also trigger docs generation. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f7135a92fd8bd..d588615e22685d 100644 --- a/package.json +++ b/package.json @@ -187,7 +187,7 @@ "*.js": [ "eslint" ], - "{docs/{root-manifest.json,tool/*.js},packages/{*/src/{actions,selectors}.js,components/src/*/README.md}}": [ + "{docs/{root-manifest.json,tool/*.js},packages/{*/README.md,*/src/{actions,selectors}.js,components/src/*/README.md}}": [ "npm run docs:build" ] } From 25dc1a2739b42c75ad7aa144e4383a0dcd3f3487 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Wed, 1 Aug 2018 10:32:45 -0400 Subject: [PATCH 06/14] Rename `Components` parent title to `Components Package Reference` --- docs/tool/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tool/config.js b/docs/tool/config.js index 3c99a0f40c6304..42b0490853fdd5 100644 --- a/docs/tool/config.js +++ b/docs/tool/config.js @@ -69,7 +69,7 @@ module.exports = { rootManifest: path.resolve( __dirname, '../root-manifest.json' ), componentsManifest: [ { - title: 'Components', + title: 'Components Package Reference', slug: 'components', markdown_source: `${ baseRepoUrl }packages/components.md`, parent: null, From e31f5615f25c6cec9d5e5c58d9b0ed87e6b6c396 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Wed, 1 Aug 2018 10:33:31 -0400 Subject: [PATCH 07/14] Ensure that `Packages` shows first, then `Data Package Reference`, then `Components Package Reference` --- docs/tool/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tool/index.js b/docs/tool/index.js index 2ef974b2f383f6..2b9e91e77b288e 100644 --- a/docs/tool/index.js +++ b/docs/tool/index.js @@ -18,5 +18,5 @@ const dataModuleManifest = getManifest( parsedModules, config.packages ); fs.writeFileSync( config.manifestOutput, - JSON.stringify( rootManifest.concat( config.componentsManifest, dataModuleManifest ), undefined, '\t' ) + JSON.stringify( rootManifest.concat( dataModuleManifest, config.componentsManifest ), undefined, '\t' ) ); From 12640781693ed238349c6505656f3004816ede3d Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Wed, 1 Aug 2018 10:34:22 -0400 Subject: [PATCH 08/14] Automatically ran `npm run docs:build` --- docs/manifest.json | 396 ++++++++++++++++++++++----------------------- 1 file changed, 198 insertions(+), 198 deletions(-) diff --git a/docs/manifest.json b/docs/manifest.json index a8e5349337a71e..4114aca5b3aef6 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -209,204 +209,6 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/outreach/resources.md", "parent": "outreach" }, - { - "title": "Components", - "slug": "components", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components.md", - "parent": null - }, - { - "title": "Autocomplete", - "slug": "autocomplete", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/autocomplete/README.md", - "parent": "components" - }, - { - "title": "BaseControl", - "slug": "base-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/base-control/README.md", - "parent": "components" - }, - { - "title": "Button", - "slug": "button", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/button/README.md", - "parent": "components" - }, - { - "title": "CheckboxControl", - "slug": "checkbox-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/checkbox-control/README.md", - "parent": "components" - }, - { - "title": "DateTime", - "slug": "date-time", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/date-time/README.md", - "parent": "components" - }, - { - "title": "Disabled", - "slug": "disabled", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/disabled/README.md", - "parent": "components" - }, - { - "title": "Draggable", - "slug": "draggable", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/draggable/README.md", - "parent": "components" - }, - { - "title": "DropZone", - "slug": "drop-zone", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/drop-zone/README.md", - "parent": "components" - }, - { - "title": "DropdownMenu", - "slug": "dropdown-menu", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown-menu/README.md", - "parent": "components" - }, - { - "title": "Dropdown", - "slug": "dropdown", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown/README.md", - "parent": "components" - }, - { - "title": "FocusableIframe", - "slug": "focusable-iframe", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/focusable-iframe/README.md", - "parent": "components" - }, - { - "title": "FontSizePicker", - "slug": "font-size-picker", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/font-size-picker/README.md", - "parent": "components" - }, - { - "title": "FormTokenField", - "slug": "form-token-field", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/form-token-field/README.md", - "parent": "components" - }, - { - "title": "HigherOrder", - "slug": "higher-order", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/higher-order/README.md", - "parent": "components" - }, - { - "title": "KeyboardShortcuts", - "slug": "keyboard-shortcuts", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/keyboard-shortcuts/README.md", - "parent": "components" - }, - { - "title": "Modal", - "slug": "modal", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/modal/README.md", - "parent": "components" - }, - { - "title": "NavigableContainer", - "slug": "navigable-container", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/navigable-container/README.md", - "parent": "components" - }, - { - "title": "Notice", - "slug": "notice", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/notice/README.md", - "parent": "components" - }, - { - "title": "Popover", - "slug": "popover", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/popover/README.md", - "parent": "components" - }, - { - "title": "RadioControl", - "slug": "radio-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/radio-control/README.md", - "parent": "components" - }, - { - "title": "RangeControl", - "slug": "range-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/range-control/README.md", - "parent": "components" - }, - { - "title": "Sandbox", - "slug": "sandbox", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/sandbox/README.md", - "parent": "components" - }, - { - "title": "ScrollLock", - "slug": "scroll-lock", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/scroll-lock/README.md", - "parent": "components" - }, - { - "title": "SelectControl", - "slug": "select-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/select-control/README.md", - "parent": "components" - }, - { - "title": "ServerSideRender", - "slug": "server-side-render", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/server-side-render/README.md", - "parent": "components" - }, - { - "title": "SlotFill", - "slug": "slot-fill", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/slot-fill/README.md", - "parent": "components" - }, - { - "title": "TabPanel", - "slug": "tab-panel", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tab-panel/README.md", - "parent": "components" - }, - { - "title": "TextControl", - "slug": "text-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/text-control/README.md", - "parent": "components" - }, - { - "title": "TextareaControl", - "slug": "textarea-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/textarea-control/README.md", - "parent": "components" - }, - { - "title": "ToggleControl", - "slug": "toggle-control", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/toggle-control/README.md", - "parent": "components" - }, - { - "title": "Tooltip", - "slug": "tooltip", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tooltip/README.md", - "parent": "components" - }, - { - "title": "TreeSelect", - "slug": "tree-select", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tree-select/README.md", - "parent": "components" - }, { "title": "Packages", "slug": "packages", @@ -694,5 +496,203 @@ "slug": "data-core-viewport", "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-viewport.md", "parent": "data" + }, + { + "title": "Components Package Reference", + "slug": "components", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components.md", + "parent": null + }, + { + "title": "Autocomplete", + "slug": "autocomplete", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/autocomplete/README.md", + "parent": "components" + }, + { + "title": "BaseControl", + "slug": "base-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/base-control/README.md", + "parent": "components" + }, + { + "title": "Button", + "slug": "button", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/button/README.md", + "parent": "components" + }, + { + "title": "CheckboxControl", + "slug": "checkbox-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/checkbox-control/README.md", + "parent": "components" + }, + { + "title": "DateTime", + "slug": "date-time", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/date-time/README.md", + "parent": "components" + }, + { + "title": "Disabled", + "slug": "disabled", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/disabled/README.md", + "parent": "components" + }, + { + "title": "Draggable", + "slug": "draggable", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/draggable/README.md", + "parent": "components" + }, + { + "title": "DropZone", + "slug": "drop-zone", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/drop-zone/README.md", + "parent": "components" + }, + { + "title": "DropdownMenu", + "slug": "dropdown-menu", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown-menu/README.md", + "parent": "components" + }, + { + "title": "Dropdown", + "slug": "dropdown", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown/README.md", + "parent": "components" + }, + { + "title": "FocusableIframe", + "slug": "focusable-iframe", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/focusable-iframe/README.md", + "parent": "components" + }, + { + "title": "FontSizePicker", + "slug": "font-size-picker", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/font-size-picker/README.md", + "parent": "components" + }, + { + "title": "FormTokenField", + "slug": "form-token-field", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/form-token-field/README.md", + "parent": "components" + }, + { + "title": "HigherOrder", + "slug": "higher-order", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/higher-order/README.md", + "parent": "components" + }, + { + "title": "KeyboardShortcuts", + "slug": "keyboard-shortcuts", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/keyboard-shortcuts/README.md", + "parent": "components" + }, + { + "title": "Modal", + "slug": "modal", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/modal/README.md", + "parent": "components" + }, + { + "title": "NavigableContainer", + "slug": "navigable-container", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/navigable-container/README.md", + "parent": "components" + }, + { + "title": "Notice", + "slug": "notice", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/notice/README.md", + "parent": "components" + }, + { + "title": "Popover", + "slug": "popover", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/popover/README.md", + "parent": "components" + }, + { + "title": "RadioControl", + "slug": "radio-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/radio-control/README.md", + "parent": "components" + }, + { + "title": "RangeControl", + "slug": "range-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/range-control/README.md", + "parent": "components" + }, + { + "title": "Sandbox", + "slug": "sandbox", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/sandbox/README.md", + "parent": "components" + }, + { + "title": "ScrollLock", + "slug": "scroll-lock", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/scroll-lock/README.md", + "parent": "components" + }, + { + "title": "SelectControl", + "slug": "select-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/select-control/README.md", + "parent": "components" + }, + { + "title": "ServerSideRender", + "slug": "server-side-render", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/server-side-render/README.md", + "parent": "components" + }, + { + "title": "SlotFill", + "slug": "slot-fill", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/slot-fill/README.md", + "parent": "components" + }, + { + "title": "TabPanel", + "slug": "tab-panel", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tab-panel/README.md", + "parent": "components" + }, + { + "title": "TextControl", + "slug": "text-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/text-control/README.md", + "parent": "components" + }, + { + "title": "TextareaControl", + "slug": "textarea-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/textarea-control/README.md", + "parent": "components" + }, + { + "title": "ToggleControl", + "slug": "toggle-control", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/toggle-control/README.md", + "parent": "components" + }, + { + "title": "Tooltip", + "slug": "tooltip", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tooltip/README.md", + "parent": "components" + }, + { + "title": "TreeSelect", + "slug": "tree-select", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tree-select/README.md", + "parent": "components" } ] \ No newline at end of file From 34db1daa42abe1a6f14d01f9bf6196a3d2c9047c Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 7 Aug 2018 15:44:36 -0400 Subject: [PATCH 09/14] Split up manifest.js into separate functions and removed code that generated manifest from config.js. Regenerated docs. --- docs/data/data-core.md | 72 +++++++++++++++++- docs/manifest.json | 168 ++++++++++++++++++++++++++++++----------- docs/tool/config.js | 22 +----- docs/tool/index.js | 9 ++- docs/tool/manifest.js | 103 +++++++++++++++---------- 5 files changed, 267 insertions(+), 107 deletions(-) diff --git a/docs/data/data-core.md b/docs/data/data-core.md index 7dd17fa91a664f..8a033f4f195e53 100644 --- a/docs/data/data-core.md +++ b/docs/data/data-core.md @@ -50,6 +50,20 @@ otherwise. Whether a request is in progress for categories. +### isRequestingEmbedPreview + +Returns true if a request is in progress for embed preview data, or false +otherwise. + +*Parameters* + + * state: Data state. + * url: URL the preview would be for. + +*Returns* + +Whether a request is in progress for an embed preview. + ### getAuthors Returns all available authors. @@ -104,6 +118,21 @@ Returns the Entity's record object by key. Record. +### getEntityRecords + +Returns the Entity's records. + +*Parameters* + + * state: State tree + * kind: Entity kind. + * name: Entity name. + * query: Optional terms query. + +*Returns* + +Records. + ### getThemeSupports Return theme supports data in the index. @@ -116,6 +145,36 @@ Return theme supports data in the index. Index data. +### getEmbedPreview + +Returns the embed preview for the given URL. + +*Parameters* + + * state: Data state. + * url: Embedded URL. + +*Returns* + +Undefined if the preview has not been fetched, otherwise, the preview fetched from the embed preview API. + +### isPreviewEmbedFallback + +Determines if the returned preview is an oEmbed link fallback. + +WordPress can be configured to return a simple link to a URL if it is not embeddable. +We need to be able to determine if a URL is embeddable or not, based on what we +get back from the oEmbed preview API. + +*Parameters* + + * state: Data state. + * url: Embedded URL. + +*Returns* + +Is the preview for the URL an oEmbed link fallback. + ## Actions ### receiveTerms @@ -154,6 +213,7 @@ Returns an action object used in signalling that entity records have been receiv * kind: Kind of the received entity. * name: Name of the received entity. * records: Records received. + * query: Query Object. ### receiveThemeSupportsFromIndex @@ -161,4 +221,14 @@ Returns an action object used in signalling that the index has been received. *Parameters* - * index: Index received. \ No newline at end of file + * index: Index received. + +### receiveEmbedPreview + +Returns an action object used in signalling that the preview data for +a given URl has been received. + +*Parameters* + + * url: URL to preview the embed for. + * preview: Preview data. \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 4114aca5b3aef6..fc80a03c295e04 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -59,6 +59,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/extensibility/extending-blocks.md", "parent": "extensibility" }, + { + "title": "Extending Editor", + "slug": "extending-editor", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/extensibility/extending-editor.md", + "parent": "extensibility" + }, { "title": "Meta Boxes", "slug": "meta-box", @@ -413,6 +419,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/postcss-themes/README.md", "parent": "packages" }, + { + "title": "@wordpress/redux-routine", + "slug": "packages-redux-routine", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/redux-routine/README.md", + "parent": "packages" + }, { "title": "@wordpress/scripts", "slug": "packages-scripts", @@ -455,48 +467,6 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/edit-post/README.md", "parent": "packages" }, - { - "title": "Data Package Reference", - "slug": "data", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/README.md", - "parent": null - }, - { - "title": "WordPress Core Data", - "slug": "data-core", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core.md", - "parent": "data" - }, - { - "title": "Block Types Data", - "slug": "data-core-blocks", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-blocks.md", - "parent": "data" - }, - { - "title": "The Editor’s Data", - "slug": "data-core-editor", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-editor.md", - "parent": "data" - }, - { - "title": "The Editor’s UI Data", - "slug": "data-core-edit-post", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-edit-post.md", - "parent": "data" - }, - { - "title": "The NUX (New User Experience) Data", - "slug": "data-core-nux", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-nux.md", - "parent": "data" - }, - { - "title": "The Viewport Data", - "slug": "data-core-viewport", - "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-viewport.md", - "parent": "data" - }, { "title": "Components Package Reference", "slug": "components", @@ -515,6 +485,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/base-control/README.md", "parent": "components" }, + { + "title": "ButtonGroup", + "slug": "button-group", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/button-group/README.md", + "parent": "components" + }, { "title": "Button", "slug": "button", @@ -527,6 +503,30 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/checkbox-control/README.md", "parent": "components" }, + { + "title": "ClipboardButton", + "slug": "clipboard-button", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/clipboard-button/README.md", + "parent": "components" + }, + { + "title": "ColorIndicator", + "slug": "color-indicator", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/color-indicator/README.md", + "parent": "components" + }, + { + "title": "ColorPalette", + "slug": "color-palette", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/color-palette/README.md", + "parent": "components" + }, + { + "title": "Dashicon", + "slug": "dashicon", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dashicon/README.md", + "parent": "components" + }, { "title": "DateTime", "slug": "date-time", @@ -563,6 +563,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/dropdown/README.md", "parent": "components" }, + { + "title": "ExternalLink", + "slug": "external-link", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/external-link/README.md", + "parent": "components" + }, { "title": "FocusableIframe", "slug": "focusable-iframe", @@ -575,6 +581,18 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/font-size-picker/README.md", "parent": "components" }, + { + "title": "FormFileUpload", + "slug": "form-file-upload", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/form-file-upload/README.md", + "parent": "components" + }, + { + "title": "FormToggle", + "slug": "form-toggle", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/form-toggle/README.md", + "parent": "components" + }, { "title": "FormTokenField", "slug": "form-token-field", @@ -587,12 +605,36 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/higher-order/README.md", "parent": "components" }, + { + "title": "IconButton", + "slug": "icon-button", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/icon-button/README.md", + "parent": "components" + }, { "title": "KeyboardShortcuts", "slug": "keyboard-shortcuts", "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/keyboard-shortcuts/README.md", "parent": "components" }, + { + "title": "MenuGroup", + "slug": "menu-group", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/menu-group/README.md", + "parent": "components" + }, + { + "title": "MenuItem", + "slug": "menu-item", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/menu-item/README.md", + "parent": "components" + }, + { + "title": "MenuItemsChoice", + "slug": "menu-items-choice", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/menu-items-choice/README.md", + "parent": "components" + }, { "title": "Modal", "slug": "modal", @@ -694,5 +736,47 @@ "slug": "tree-select", "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/tree-select/README.md", "parent": "components" + }, + { + "title": "Data Package Reference", + "slug": "data", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/README.md", + "parent": null + }, + { + "title": "WordPress Core Data", + "slug": "data-core", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core.md", + "parent": "data" + }, + { + "title": "Block Types Data", + "slug": "data-core-blocks", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-blocks.md", + "parent": "data" + }, + { + "title": "The Editor’s Data", + "slug": "data-core-editor", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-editor.md", + "parent": "data" + }, + { + "title": "The Editor’s UI Data", + "slug": "data-core-edit-post", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-edit-post.md", + "parent": "data" + }, + { + "title": "The NUX (New User Experience) Data", + "slug": "data-core-nux", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-nux.md", + "parent": "data" + }, + { + "title": "The Viewport Data", + "slug": "data-core-viewport", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-viewport.md", + "parent": "data" } ] \ No newline at end of file diff --git a/docs/tool/config.js b/docs/tool/config.js index 42b0490853fdd5..83c6a5ef0dccc8 100644 --- a/docs/tool/config.js +++ b/docs/tool/config.js @@ -3,12 +3,9 @@ */ const glob = require( 'glob' ).sync; const path = require( 'path' ); -const { upperFirst, camelCase } = require( 'lodash' ); const root = path.resolve( __dirname, '../../' ); -const baseRepoUrl = `https://raw.githubusercontent.com/WordPress/gutenberg/master/`; - // These are packages published to NPM as their own node modules. const npmReadyPackages = glob( 'packages/*/package.json' ) .map( ( fileName ) => fileName.split( '/' )[ 1 ] ); @@ -20,6 +17,7 @@ const gutenbergPackages = [ ]; module.exports = { + componentPaths: glob( 'packages/components/src/*/README.md' ), dataNamespaces: { core: { title: 'WordPress Core Data', @@ -67,23 +65,5 @@ module.exports = { }, rootManifest: path.resolve( __dirname, '../root-manifest.json' ), - componentsManifest: [ - { - title: 'Components Package Reference', - slug: 'components', - markdown_source: `${ baseRepoUrl }packages/components.md`, - parent: null, - }, - ...glob( 'packages/components/src/*/README.md' ) - .map( ( filePath ) => { - const slug = filePath.split( '/' )[ 3 ]; - return { - title: upperFirst( camelCase( slug ) ), - slug, - markdown_source: `${ baseRepoUrl }${ filePath }`, - parent: 'components', - }; - } ), - ], manifestOutput: path.resolve( __dirname, '../manifest.json' ), }; diff --git a/docs/tool/index.js b/docs/tool/index.js index 2b9e91e77b288e..f653b8c809ed96 100644 --- a/docs/tool/index.js +++ b/docs/tool/index.js @@ -9,14 +9,17 @@ const fs = require( 'fs' ); const config = require( './config' ); const parser = require( './parser' ); const generator = require( './generator' ); -const getManifest = require( './manifest' ); +const { getPackageManifest, getComponentManifest, getDataManifest } = require( './manifest' ); const parsedModules = parser( config.dataNamespaces ); generator( parsedModules, config.dataDocsOutput ); + const rootManifest = require( config.rootManifest ); -const dataModuleManifest = getManifest( parsedModules, config.packages ); +const packageManifest = getPackageManifest( config.packages ); +const componentManifest = getComponentManifest( config.componentPaths ); +const dataManifest = getDataManifest( parsedModules ); fs.writeFileSync( config.manifestOutput, - JSON.stringify( rootManifest.concat( dataModuleManifest, config.componentsManifest ), undefined, '\t' ) + JSON.stringify( rootManifest.concat( packageManifest, componentManifest, dataManifest ), undefined, '\t' ) ); diff --git a/docs/tool/manifest.js b/docs/tool/manifest.js index 19f5a1f026e9e0..f241477c3c00b8 100644 --- a/docs/tool/manifest.js +++ b/docs/tool/manifest.js @@ -1,7 +1,9 @@ /** * Node dependencies */ -const { kebabCase } = require( 'lodash' ); +const { camelCase, kebabCase, upperFirst } = require( 'lodash' ); + +const baseRepoUrl = `https://raw.githubusercontent.com/WordPress/gutenberg/master`; /** * Generates the manifest for the given namespaces. @@ -11,44 +13,65 @@ const { kebabCase } = require( 'lodash' ); * * @return {Array} manifest. */ -module.exports = function( parsedNamespaces, packagesConfig ) { - const dataManifest = [ { - title: 'Data Package Reference', - slug: 'data', - markdown_source: 'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/README.md', - parent: null, - } ].concat( - Object.values( parsedNamespaces ).map( ( parsedNamespace ) => { - const slug = `data-${ kebabCase( parsedNamespace.name ) }`; - return { - title: parsedNamespace.title, - slug, - markdown_source: `https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/${ slug }.md`, - parent: 'data', - }; - } ) - ); - - const packagesManifest = [ - { - title: 'Packages', - slug: 'packages', - markdown_source: 'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/packages.md', +module.exports = { + getPackageManifest: function( packagesConfig ) { + return [ + { + title: 'Packages', + slug: 'packages', + markdown_source: `${ baseRepoUrl }/docs/packages.md`, + parent: null, + }, + ].concat( + Object.entries( packagesConfig ).map( ( [ folderName, config ] ) => { + const path = config.isNpmReady === false ? + `${ baseRepoUrl }/${ folderName }/README.md` : + `${ baseRepoUrl }/packages/${ folderName }/README.md`; + return { + title: `@wordpress/${ folderName }`, + slug: `packages-${ folderName }`, + markdown_source: path, + parent: 'packages', + }; + } ) + ); + }, + getComponentManifest: function( componentPaths ) { + return [ + { + title: 'Components Package Reference', + slug: 'components', + markdown_source: `${ baseRepoUrl }/packages/components.md`, + parent: null, + }, + ...componentPaths + .map( ( filePath ) => { + const slug = filePath.split( '/' )[ 3 ]; + return { + title: upperFirst( camelCase( slug ) ), + slug, + markdown_source: `${ baseRepoUrl }/${ filePath }`, + parent: 'components', + }; + } ), + ]; + }, + getDataManifest: function( parsedNamespaces ) { + return [ { + title: 'Data Package Reference', + slug: 'data', + markdown_source: `${ baseRepoUrl }/docs/data/README.md`, parent: null, - }, - ].concat( - Object.entries( packagesConfig ).map( ( [ folderName, config ] ) => { - const path = config.isNpmReady === false ? - `https://raw.githubusercontent.com/WordPress/gutenberg/master/${ folderName }/README.md` : - `https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/${ folderName }/README.md`; - return { - title: `@wordpress/${ folderName }`, - slug: `packages-${ folderName }`, - markdown_source: path, - parent: 'packages', - }; - } ) - ); - - return packagesManifest.concat( dataManifest ); + } ].concat( + Object.values( parsedNamespaces ).map( ( parsedNamespace ) => { + const slug = `data-${ kebabCase( parsedNamespace.name ) }`; + return { + title: parsedNamespace.title, + slug, + markdown_source: `${ baseRepoUrl }/docs/data/${ slug }.md`, + parent: 'data', + }; + } ) + ); + }, }; From 260cb62d1c69a824db01764834bdf9ce40d87267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Wed, 8 Aug 2018 11:36:31 +0200 Subject: [PATCH 10/14] Update package-lock.json --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 59c1ba1ec3916e..ac5ae13ae6aa32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18462,7 +18462,7 @@ "safe-buffer": "~5.1.0" } }, - "stringify-entities": { + "stringify-entities": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-1.3.2.tgz", "integrity": "sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A==", @@ -18472,8 +18472,8 @@ "character-entities-legacy": "^1.0.0", "is-alphanumerical": "^1.0.0", "is-hexadecimal": "^1.0.0" - }, - }, + } + }, "stringify-object": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.2.2.tgz", From 9ee1205d90e04a13a318953c23c969327fef32f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Wed, 8 Aug 2018 12:46:12 +0200 Subject: [PATCH 11/14] Update data-core.md --- docs/data/data-core.md | 74 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/docs/data/data-core.md b/docs/data/data-core.md index d3f37e54c82d8f..b232e447f591b8 100644 --- a/docs/data/data-core.md +++ b/docs/data/data-core.md @@ -2,6 +2,68 @@ ## Selectors +### getTerms + +Returns all the available terms for the given taxonomy. + +*Parameters* + + * state: Data state. + * taxonomy: Taxonomy name. + +### getCategories + +Returns all the available categories. + +*Parameters* + + * state: Data state. + +*Returns* + +Categories list. + +### isRequestingTerms + +Returns true if a request is in progress for terms data of a given taxonomy, +or false otherwise. + +*Parameters* + + * state: Data state. + * taxonomy: Taxonomy name. + +*Returns* + +Whether a request is in progress for taxonomy's terms. + +### isRequestingCategories + +Returns true if a request is in progress for categories data, or false +otherwise. + +*Parameters* + + * state: Data state. + +*Returns* + +Whether a request is in progress for categories. + +### isRequestingEmbedPreview + +Returns true if a request is in progress for embed preview data, or false +otherwise. + +*Parameters* + + * state: Data state. + * url: URL the preview would be for. + +*Returns* + +Whether a request is in progress for an embed preview. + ### getAuthors Returns all available authors. @@ -115,6 +177,16 @@ Is the preview for the URL an oEmbed link fallback. ## Actions +### receiveTerms + +Returns an action object used in signalling that terms have been received +for a given taxonomy. + +*Parameters* + + * taxonomy: Taxonomy name. + * terms: Terms received. + ### receiveUserQuery Returns an action object used in signalling that authors have been received. @@ -159,4 +231,4 @@ a given URl has been received. *Parameters* * url: URL to preview the embed for. - * preview: Preview data. \ No newline at end of file + * preview: Preview data. From 2ab9aa05f28494db5b7dbd4db55b977eba5e3947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Wed, 8 Aug 2018 12:46:40 +0200 Subject: [PATCH 12/14] Update manifest.json --- docs/manifest.json | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/manifest.json b/docs/manifest.json index fc80a03c295e04..03df48b367fd63 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -653,12 +653,30 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/notice/README.md", "parent": "components" }, + { + "title": "Panel", + "slug": "panel", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/panel/README.md", + "parent": "components" + }, + { + "title": "Placeholder", + "slug": "placeholder", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/placeholder/README.md", + "parent": "components" + }, { "title": "Popover", "slug": "popover", "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/popover/README.md", "parent": "components" }, + { + "title": "QueryControls", + "slug": "query-controls", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/query-controls/README.md", + "parent": "components" + }, { "title": "RadioControl", "slug": "radio-control", @@ -671,6 +689,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/range-control/README.md", "parent": "components" }, + { + "title": "ResponsiveWrapper", + "slug": "responsive-wrapper", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/responsive-wrapper/README.md", + "parent": "components" + }, { "title": "Sandbox", "slug": "sandbox", @@ -701,6 +725,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/slot-fill/README.md", "parent": "components" }, + { + "title": "Spinner", + "slug": "spinner", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/spinner/README.md", + "parent": "components" + }, { "title": "TabPanel", "slug": "tab-panel", @@ -725,6 +755,12 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/toggle-control/README.md", "parent": "components" }, + { + "title": "Toolbar", + "slug": "toolbar", + "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/components/src/toolbar/README.md", + "parent": "components" + }, { "title": "Tooltip", "slug": "tooltip", @@ -779,4 +815,4 @@ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/data/data-core-viewport.md", "parent": "data" } -] \ No newline at end of file +] From e4c90e600df4843b3505719cb76e087b2737c1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Wed, 8 Aug 2018 13:02:32 +0200 Subject: [PATCH 13/14] Update data-core-editor.md --- docs/data/data-core-editor.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/data/data-core-editor.md b/docs/data/data-core-editor.md index 2fd0940f1d5dcf..4e421f6a51d4f1 100644 --- a/docs/data/data-core-editor.md +++ b/docs/data/data-core-editor.md @@ -1435,4 +1435,5 @@ Returns an action object used in signalling that the editor settings have been u *Parameters* - * settings: Updated settings \ No newline at end of file + * settings: Updated settings + From e2814c2d1557a5a8dbba02ace1607ef996fa91c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Wed, 8 Aug 2018 13:04:22 +0200 Subject: [PATCH 14/14] Update manifest.json