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

Admin PWA: make readme private #33216

Merged
merged 3 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
30 changes: 0 additions & 30 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1301,12 +1301,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",
Expand Down Expand Up @@ -1499,12 +1493,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",
Expand Down Expand Up @@ -1715,24 +1703,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",
Expand Down
11 changes: 8 additions & 3 deletions docs/tool/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions packages/admin-manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down