Skip to content

Commit eec87d0

Browse files
committed
【API】优化jsdoc模板
1 parent 0a7c5ef commit eec87d0

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

build/jsdocs/template/publish.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ exports.publish = function (taffyData, opts, tutorials) {
493493
data().each(function (doclet) {
494494

495495
doclet.ancestors = getAncestorLinks(doclet);
496-
497496
if (doclet.kind === 'member') {
498497
addSignatureTypes(doclet);
499498
}
@@ -510,10 +509,17 @@ exports.publish = function (taffyData, opts, tutorials) {
510509

511510
var members = helper.getMembers(data);
512511
members.tutorials = tutorials.children;
512+
var extendLinkto = function (longname, linkText, cssClass, fragmentId) {
513+
if (longname && view.typeLinks && view.typeLinks[longname]) {
514+
linkText = longname;
515+
longname = view.typeLinks[longname];
516+
}
517+
return linkto(longname, linkText, cssClass, fragmentId);
513518

519+
}
514520
// add template helpers
515521
view.find = find;
516-
view.linkto = linkto;
522+
view.linkto = extendLinkto;
517523
view.resolveAuthorLinks = resolveAuthorLinks;
518524
view.tutoriallink = tutoriallink;
519525
view.htmlsafe = htmlsafe;

build/jsdocs/template/tmpl/type.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
data.forEach(function(name, i) { ?>
55
<span class="param-type"><?js=
66
function(){
7-
if(name&&self.typeLinks&&self.typeLinks[name]){
8-
return self.linkto(self.typeLinks[name],name);
9-
} else{
107
return self.linkto(name, self.htmlsafe(name))
11-
}
128
}()
139
?></span>
1410
<?js if (i < data.length-1) { ?>|<?js } ?>

build/jsdocs/template/typeLinkExt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var typeLinks = {
88
"ol.geom.Polygon": olapi + "ol.geom.Polygon.html",
99
"ol.geom.Point": olapi + "ol.geom.Point.html",
1010
"ol.format.GeoJSON": olapi + "ol.format.GeoJSON.html",
11-
"L.bounds": lfapi + "#bounds",
11+
"L.Bounds": lfapi + "#bounds",
1212
"L.Polygon": lfapi + "#polygon",
1313
"L.Point": lfapi + "#point",
1414
"L.LatLng": lfapi + "#latlng",

src/common/iServer/BufferSetting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {BufferDistance} from './BufferDistance';
55

66
/**
77
* @class SuperMap.BufferSetting
8-
* @category iServer SpatialAnalyst Buffer
8+
* @category iServer SpatialAnalyst BufferAnalyst
99
* @classdesc 缓冲区分析通用设置类。
1010
* @param {Object} options - 参数。<br>
1111
* @param {SuperMap.BufferEndType} options.endType - 缓冲区端点枚举值。<br>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy