Skip to content

Commit 131ebf6

Browse files
committed
Manifest: add extra docs
1 parent d9796b6 commit 131ebf6

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

build/core.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
"description": "The core of jQuery UI, required for all interactions and widgets.",
44
"homepage": "http://jqueryui.com/",
55
"demo": "http://jqueryui.com/",
6-
"docs": "http://api.jqueryui.com/category/ui-core/"
6+
"docs": "http://api.jqueryui.com/category/ui-core/",
7+
"_": {
8+
"docs": [
9+
"http://api.jqueryui.com/data-selector/",
10+
"http://api.jqueryui.com/disableSelection/",
11+
"http://api.jqueryui.com/enableSelection/",
12+
"http://api.jqueryui.com/focus/",
13+
"http://api.jqueryui.com/focusable-selector/",
14+
"http://api.jqueryui.com/jQuery.ui.keyCode/",
15+
"http://api.jqueryui.com/removeUniqueId/",
16+
"http://api.jqueryui.com/scrollParent/",
17+
"http://api.jqueryui.com/tabbable-selector/",
18+
"http://api.jqueryui.com/uniqueId/",
19+
"http://api.jqueryui.com/zIndex/"
20+
]
21+
}
722
},
823
"datepicker": {
924
"description": "Displays a calendar from an input or inline for selecting dates.",
@@ -31,7 +46,20 @@
3146
"category": "effect",
3247
"homepage": "http://jqueryui.com/",
3348
"demo": "http://jqueryui.com/effect/",
34-
"docs": "http://api.jqueryui.com/category/effects-core/"
49+
"docs": "http://api.jqueryui.com/category/effects-core/",
50+
"_": {
51+
"docs": [
52+
"http://api.jqueryui.com/addClass/",
53+
"http://api.jqueryui.com/color-animation/",
54+
"http://api.jqueryui.com/effect/",
55+
"http://api.jqueryui.com/hide/",
56+
"http://api.jqueryui.com/removeClass/",
57+
"http://api.jqueryui.com/show/",
58+
"http://api.jqueryui.com/switchClass/",
59+
"http://api.jqueryui.com/toggle/",
60+
"http://api.jqueryui.com/toggleClass/"
61+
]
62+
}
3563
},
3664
"position": {
3765
"description": "Positions elements relative to other elements.",

build/manifest.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ flatten = function( flat, arr ) {
3232

3333
pkg = require( "../package.json" );
3434

35-
manifest = function() {
35+
manifest = function( options ) {
36+
options = options || {};
37+
3638
return Object.keys( categories ).map(function( category ) {
3739
var baseManifest = categories[ category ],
3840
plugins = require( "./" + category );
@@ -72,6 +74,12 @@ manifest = function() {
7274
category: data.category || category
7375
};
7476

77+
if ( options.extra ) {
78+
Object.keys( data._ || {} ).forEach(function( prop ) {
79+
manifest[ prop ] = data._[ prop ];
80+
});
81+
}
82+
7583
(baseManifest.dependencies || [])
7684
.concat(data.dependencies || [])
7785
.forEach(function( dependency ) {

0 commit comments

Comments
 (0)