@wordpress/docgen 2.52.0 → 2.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -6
- package/lib/engine.js +0 -7
- package/lib/get-intermediate-representation.js +0 -3
- package/lib/get-jsdoc-from-token.js +0 -7
- package/lib/get-type-annotation.js +0 -3
- package/lib/index.js +0 -7
- package/lib/is-symbol-ignore.js +0 -3
- package/lib/is-symbol-private.js +0 -3
- package/lib/markdown/formatter.js +0 -7
- package/lib/markdown/index.js +1 -8
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Internal dependencies
|
|
5
|
-
*/
|
|
6
|
-
const docgen = require( '../lib' );
|
|
7
|
-
|
|
8
2
|
const optionator = require( 'optionator' )( {
|
|
9
3
|
prepend: 'Usage: node <path-to-docgen> <relative-path-to-entry-point>',
|
|
10
4
|
options: [
|
|
@@ -55,6 +49,7 @@ const optionator = require( 'optionator' )( {
|
|
|
55
49
|
},
|
|
56
50
|
],
|
|
57
51
|
} );
|
|
52
|
+
const docgen = require( '../lib' );
|
|
58
53
|
|
|
59
54
|
const options = optionator.parseArgv( process.argv );
|
|
60
55
|
process.exit( docgen( options._[ 0 ], options ) );
|
package/lib/engine.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
const commentParser = require( 'comment-parser' );
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
2
|
const getLeadingComments = require( './get-leading-comments' );
|
|
10
3
|
const getTypeAnnotation = require( './get-type-annotation' );
|
|
11
4
|
|
package/lib/index.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
const fs = require( 'fs' );
|
|
5
2
|
const path = require( 'path' );
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
3
|
const engine = require( './engine' );
|
|
11
4
|
const defaultMarkdownFormatter = require( './markdown' );
|
|
12
5
|
const isSymbolPrivate = require( './is-symbol-private' );
|
package/lib/is-symbol-ignore.js
CHANGED
package/lib/is-symbol-private.js
CHANGED
package/lib/markdown/index.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
1
|
+
const fs = require( 'fs' );
|
|
4
2
|
const remark = require( 'remark' );
|
|
5
3
|
const unified = require( 'unified' );
|
|
6
4
|
const remarkParser = require( 'remark-parse' );
|
|
7
5
|
const inject = require( 'mdast-util-inject' );
|
|
8
|
-
const fs = require( 'fs' );
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal dependencies
|
|
12
|
-
*/
|
|
13
6
|
const formatter = require( './formatter' );
|
|
14
7
|
const embed = require( './embed' );
|
|
15
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/docgen",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.54.0",
|
|
4
4
|
"description": "Autogenerate public API documentation from exports and JSDoc comments.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5ef24f60261976bb198ad035db24bf81c1fb92b4"
|
|
52
52
|
}
|