File tree Expand file tree Collapse file tree 5 files changed +29
-18
lines changed Expand file tree Collapse file tree 5 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 8
8
"disqus" :" " ,
9
9
"tags" : {
10
10
"allowUnknownTags" : true ,
11
- "linkdoc-leaflet" :" http://leafletjs.com/reference-1.0.3.html" ,
12
- "linkdoc-htmlExtension" :true
11
+ "linkdoc-leaflet" :" http://leafletjs.com/reference-1.0.3.html"
13
12
},
14
13
"source" : {
15
14
"includePattern" : " .+\\ .js?$" ,
Original file line number Diff line number Diff line change 7
7
"disqus" :" " ,
8
8
"tags" : {
9
9
"allowUnknownTags" : true ,
10
- "linkdoc-openlayers" :" https://openlayers.org/en/latest/apidoc/" ,
11
- "linkdoc-htmlExtension" :true
10
+ "linkdoc-openlayers" :" https://openlayers.org/en/latest/apidoc/"
12
11
},
13
12
"source" : {
14
13
"includePattern" : " .+\\ .js?$" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exports.handlers = {
8
8
for ( var i = 0 ; i < e . doclet . augments . length ; i ++ ) {
9
9
var a = e . doclet . augments [ i ] ;
10
10
if ( a . indexOf ( "@linkdoc" ) ) {
11
- var reg = new RegExp ( "@(.*?)/" ) ;
11
+ var reg = new RegExp ( "@(linkdoc .*?)/" ) ;
12
12
var match = a . match ( reg ) ;
13
13
if ( match ) {
14
14
e . doclet . augments [ i ] = a . replace ( "@" + match [ 1 ] + "/" , env . conf . tags [ match [ 1 ] ] ) ;
@@ -20,5 +20,18 @@ exports.handlers = {
20
20
}
21
21
}
22
22
}
23
+ if ( e . doclet . params ) {
24
+ for ( var i = 0 ; i < e . doclet . params . length ; i ++ ) {
25
+ var a = e . doclet . params [ i ] . description ;
26
+ if ( a && a . indexOf ( "@linkdoc" ) ) {
27
+ var reg = new RegExp ( "@(linkdoc.*?)/" ) ;
28
+ var match = a . match ( reg ) ;
29
+ if ( match ) {
30
+ var str = "@" + match [ 1 ] + "/" ;
31
+ e . doclet . params [ i ] . description = a . replace ( new RegExp ( str , 'g' ) , "@link " + env . conf . tags [ match [ 1 ] ] ) ;
32
+ }
33
+ }
34
+ }
35
+ }
23
36
}
24
37
} ;
Original file line number Diff line number Diff line change @@ -206,10 +206,12 @@ function attachModuleSymbols(doclets, modules) {
206
206
function buildNav ( members ) {
207
207
var nav = [ ] ;
208
208
209
- if ( members . namespaces . length ) {
210
- _ . each ( members . namespaces , function ( v ) {
209
+
210
+
211
+ if ( members . classes . length ) {
212
+ _ . each ( members . classes , function ( v ) {
211
213
nav . push ( {
212
- type : 'namespace ' ,
214
+ type : 'class ' ,
213
215
longname : v . longname ,
214
216
name : v . name ,
215
217
members : find ( {
@@ -231,11 +233,10 @@ function buildNav(members) {
231
233
} ) ;
232
234
} ) ;
233
235
}
234
-
235
- if ( members . classes . length ) {
236
- _ . each ( members . classes , function ( v ) {
236
+ if ( members . namespaces . length ) {
237
+ _ . each ( members . namespaces , function ( v ) {
237
238
nav . push ( {
238
- type : 'class ' ,
239
+ type : 'namespace ' ,
239
240
longname : v . longname ,
240
241
name : v . name ,
241
242
members : find ( {
@@ -257,7 +258,6 @@ function buildNav(members) {
257
258
} ) ;
258
259
} ) ;
259
260
}
260
-
261
261
return nav ;
262
262
}
263
263
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import L from "leaflet";
7
7
* @extends L.TileLayer{@linkdoc-leaflet/#tilelayer }
8
8
* @param url -{string} 切片地址
9
9
* @param options -{Object} 切片参数。如:<br>
10
- * minZoom - {number} 最小缩放级别
11
- * maxZoom - {number} 最大缩放级别
12
- * bounds - {L.bounds} 显示范围
13
- * retina - {L.Browser} 浏览器显示分辨率
14
- * attribution - {string} 版权信息
10
+ * minZoom - {number} 最小缩放级别 <br>
11
+ * maxZoom - {number} 最大缩放级别 <br>
12
+ * bounds - {[L.LatLngBounds]{ @linkdoc -leaflet/#latlngbounds}} 显示范围 <br>
13
+ * retina - {[ L.Browser]{ @linkdoc -leaflet/#browser}} 浏览器显示分辨率 <br>
14
+ * attribution - {string} 版权信息 <br>
15
15
*/
16
16
export var BaiduTileLayer = L . TileLayer . extend ( {
17
17
You can’t perform that action at this time.
0 commit comments