diff --git a/docs/manifest.json b/docs/manifest.json index f1d91901cfdac5..5d71772ac69dd1 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1307,12 +1307,6 @@ "markdown_source": "../packages/a11y/README.md", "parent": "packages" }, - { - "title": "@wordpress/admin-manifest", - "slug": "packages-admin-manifest", - "markdown_source": "../packages/admin-manifest/README.md", - "parent": "packages" - }, { "title": "@wordpress/annotations", "slug": "packages-annotations", @@ -1505,12 +1499,6 @@ "markdown_source": "../packages/e2e-tests/README.md", "parent": "packages" }, - { - "title": "@wordpress/edit-navigation", - "slug": "packages-edit-navigation", - "markdown_source": "../packages/edit-navigation/README.md", - "parent": "packages" - }, { "title": "@wordpress/edit-post", "slug": "packages-edit-post", @@ -1721,24 +1709,6 @@ "markdown_source": "../packages/react-i18n/README.md", "parent": "packages" }, - { - "title": "@wordpress/react-native-aztec", - "slug": "packages-react-native-aztec", - "markdown_source": "../packages/react-native-aztec/README.md", - "parent": "packages" - }, - { - "title": "@wordpress/react-native-bridge", - "slug": "packages-react-native-bridge", - "markdown_source": "../packages/react-native-bridge/README.md", - "parent": "packages" - }, - { - "title": "@wordpress/react-native-editor", - "slug": "packages-react-native-editor", - "markdown_source": "../packages/react-native-editor/README.md", - "parent": "packages" - }, { "title": "@wordpress/readable-js-assets-webpack-plugin", "slug": "packages-readable-js-assets-webpack-plugin", diff --git a/docs/tool/manifest.js b/docs/tool/manifest.js index 07cea30db41b61..02be0f6e1b5c6b 100644 --- a/docs/tool/manifest.js +++ b/docs/tool/manifest.js @@ -4,6 +4,7 @@ const { camelCase, nth, upperFirst } = require( 'lodash' ); const fs = require( 'fs' ); const glob = require( 'glob' ).sync; +const { join } = require( 'path' ); const baseRepoUrl = '..'; const componentPaths = glob( 'packages/components/src/*/**/README.md', { @@ -14,9 +15,13 @@ const componentPaths = glob( 'packages/components/src/*/**/README.md', { 'packages/components/src/view/README.md', ], } ); -const packagePaths = glob( 'packages/*/package.json' ).map( - ( fileName ) => fileName.split( '/' )[ 1 ] -); +const packagePaths = glob( 'packages/*/package.json' ) + .filter( + // Ignore private packages. + ( fileName ) => + ! require( join( __dirname, '..', '..', fileName ) ).private + ) + .map( ( fileName ) => fileName.split( '/' )[ 1 ] ); /** * Generates the package manifest. diff --git a/packages/admin-manifest/package.json b/packages/admin-manifest/package.json index 1282dc528c0325..140b1651915f9a 100644 --- a/packages/admin-manifest/package.json +++ b/packages/admin-manifest/package.json @@ -2,6 +2,7 @@ "name": "@wordpress/admin-manifest", "version": "1.0.0", "description": "Dynamically creates a Web App manifest and registers the service worker for the admin.", + "private": true, "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", "keywords": [